-
Notifications
You must be signed in to change notification settings - Fork 51
Step by step setup guide (bug fixes) for Mac users
Thanks to user @ Zurchi#3349 for writing this!
Tips to fix Bobs GUI on Mac:
-
Delete the Python.Framework from the Library/Frameworks folder. To do this from the Finder (Go-to-Folder) Command + Shift + G Type "/Library/Frameworks" Delete the Python.Framework
-
Delete All Versions of Python 3 from the Applications Folder From the Finder ~ Command + Shift + A "Applications" look for Python folders and delete them.
-
Make sure your bash_profile has no PATHS to python From the Terminal Appplication. "sudo nano ~/.bash_profile" Enter your password. Ctrl + V (page down) look at the bottom for Python Path entries, delete them all. Ctrl + O to Save (hit enter to overwrite). Ctrl + X to exit
-
(Isn't required if you can do the step above in Terminal) If you'd rather edit your bash_profile using a GUI then download VS Code for Mac for free and make sure "show hidden files" is enabled on your mac so you can see your bash_profile
-
Install Python 3.6 https://www.python.org/ftp/python/3.6.0/python-3.6.0-macosx10.6.pkg
Restart
- Download pyenv from Homebrew (from Terminal Prompt), type in the following command into Terminal
-
brew update
{press enter} -
brew install pyenv
{press enter}
-
- Open your Terminal and type "sudo nano ~/.bash_profile" Enter your password. Ctrl + V (page down) look at the bottom for Python Path entries, make sure it looks like this (at the bottom of the file) . If you'd rather edit your bash_profile using a GUI then download VS Code for Mac for free and make sure "show hidden files" is enabled on your mac so you can see your bash_profile
--- start below this line ---
# Setting PATH for Python 3.6
# The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.6/bin:${PATH}"
export PATH
if command -v pyenv 1>/dev/null 2>&1; then
eval "$(pyenv init -)"
fi
--- finish above this line ---
Ctrl + O to Save (hit enter to overwrite).
Ctrl + X to exit
-
Install Python 3.7 using PYENV. (open Terminal)
pyenv install 3.7.0
-
Unzip Bobs GUI in a fresh folder and CD to that GUI in the Terminal. from the Root of the GUI py script in Terminal type
pyenv local 3.7.0
-
In Terminal type in the following commands:
python3 -m pip install requests pyopenssl request tqdm unidecode Pillow beautifulsoup4 <press enter>
- Change your current directory (cd) to the directory of your GUI folder, for example if your GUI is located at your Desktop inside the GUI folder called "CDNSP-GUI-v4.1" then in Terminal you would type in:
cd "Users/{username} (whatever your username is)/Desktop/CDNSP-GUI-v4.1" (The quotation mark is important)
- Now run the script as normal using the python3 command. E.g. for v4.1 the script is called CDNSP-GUI-Bob-v4.1.py, therefore in Terminal you would type in:
python3 CDNSP-GUI-Bob-v4.1.py