Skip to content

Commit f70e1ed

Browse files
committed
#86 - initial fix for homebrew openssl issue
see #86 for more details
1 parent 5d8ed11 commit f70e1ed

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# TagUI for Python :snake:
22

3-
[**Use Cases**](#use-cases) | [**API Reference**](#api-reference) | [**About & Credits**](#about--credits) | [**PyCon Video**](https://www.youtube.com/watch?v=F2aQKWx_EAE) | [**Free Starbucks \***](#api-reference) | [**v1.17**](https://github.com/tebelorg/TagUI-Python/releases)
3+
[**Use Cases**](#use-cases) | [**API Reference**](#api-reference) | [**About & Credits**](#about--credits) | [**PyCon Video**](https://www.youtube.com/watch?v=F2aQKWx_EAE) | [**Free Starbucks \***](#api-reference) | [**v1.18**](https://github.com/tebelorg/TagUI-Python/releases)
44

55
![TagUI for Python demo in Jupyter notebook](https://raw.githubusercontent.com/tebelorg/Tump/master/tagui_python.gif)
66

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name='tagui',
5-
version='1.17.2',
5+
version='1.18.0',
66
py_modules=['tagui'],
77
author='Ken Soh',
88
author_email='[email protected]',

tagui.py

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Apache License 2.0, Copyright 2019 Tebel.Automation Private Limited
33
# https://github.com/tebelorg/TagUI-Python/blob/master/LICENSE.txt
44
__author__ = 'Ken Soh <[email protected]>'
5-
__version__ = '1.17.2'
5+
__version__ = '1.18.0'
66

77
import subprocess
88
import os
@@ -368,7 +368,9 @@ def setup():
368368
if not os.path.isfile('/usr/local/opt/openssl/lib/libssl.1.0.0.dylib'):
369369

370370
# if openssl is missing, first attempt to install using homebrew
371-
os.system('brew install openssl > /dev/null 2>&1')
371+
os.system('brew uninstall openssl > /dev/null 2>&1')
372+
os.system('brew uninstall openssl > /dev/null 2>&1')
373+
os.system('brew install https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb > /dev/null 2>&1')
372374

373375
# if it is still missing, attempt again by first installing homebrew
374376
if not os.path.isfile('/usr/local/opt/openssl/lib/libssl.1.0.0.dylib'):
@@ -377,16 +379,21 @@ def setup():
377379
print('[TAGUI][INFO] - you may be prompted for login password to continue')
378380
print('')
379381
os.system('echo | /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"')
380-
os.system('brew install openssl')
382+
os.system('brew uninstall openssl > /dev/null 2>&1')
383+
os.system('brew uninstall openssl > /dev/null 2>&1')
384+
os.system('brew install https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb')
381385

382386
# if it is still missing, prompt user to install homebrew and openssl
383387
if not os.path.isfile('/usr/local/opt/openssl/lib/libssl.1.0.0.dylib'):
384388
print('[TAGUI][INFO] - OpenSSL was not able to be installed automatically')
385-
print('[TAGUI][INFO] - run below 2 commands in your terminal to install manually')
389+
print('[TAGUI][INFO] - run below commands in your terminal to install manually')
386390
print('[TAGUI][INFO] - after that, TagUI ready for use in your Python environment')
387391
print('')
388392
print('/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"')
389-
print('brew install openssl')
393+
print('brew uninstall openssl; brew uninstall openssl; brew install https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb')
394+
print('')
395+
print('[TAGUI][INFO] - if there is an issue running brew command, check the solution below')
396+
print('[TAGUI][INFO] - https://github.com/kelaberetiv/TagUI/issues/86#issuecomment-532466727')
390397
print('')
391398
return False
392399

0 commit comments

Comments
 (0)