Skip to content
This repository has been archived by the owner on Jun 4, 2020. It is now read-only.

Step by step setup guide (bug fixes) for Mac users

Bob edited this page Aug 17, 2018 · 5 revisions

Thanks to user @ Zurchi#3349 for writing this!

Tips to fix Bobs GUI on Mac:

  1. 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

  2. Delete All Versions of Python 3 from the Applications Folder From the Finder ~ Command + Shift + A "Applications" look for Python folders and delete them.

  3. 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

  4. (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

  5. Install Python 3.6 https://www.python.org/ftp/python/3.6.0/python-3.6.0-macosx10.6.pkg

Restart

  1. Download pyenv from Homebrew (from Terminal Prompt), type in the following command into Terminal
    1. brew update {press enter}
    2. brew install pyenv {press enter}
  2. 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
  1. Install Python 3.7 using PYENV. (open Terminal)

    pyenv install 3.7.0

  2. 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

  3. In Terminal type in the following commands:

python3 -m pip install requests pyopenssl request tqdm unidecode Pillow beautifulsoup4 <press enter>
  1. 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)

  1. 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
Clone this wiki locally