Rod-Persky / investoscope-easy-update

Updates Investoscope 3 end of day quotes
GNU General Public License v3.0
6 stars 3 forks source link

Wrong python3 location for macOS Catalina #19

Open jashsayani opened 4 years ago

jashsayani commented 4 years ago
Screen Shot 2020-01-19 at 4 22 28 PM

macOS Catalina comes with Python 3. It is at /usr/bin/python3.

jashsayani commented 4 years ago

Would be nice to change the default location in the script or detect OS version and use the correct path for Catalina for 10.15.x

charlietomo commented 4 years ago

Are you still having issues with this? I upgraded to Catalina and it has continued to work with no error?

jashsayani commented 4 years ago

I had the issue, which got fixed when I changed the python location.

Kusine commented 3 years ago

Hello, I am still getting a similar issue and error message despite updating line 3 in the script to /usr/bin/python3. I also tried out /usr/bin/python and that does not work either.

Screen Shot 2021-02-07 at 20 55 29

charlietomo commented 3 years ago

Just confirming on 10.15.7 I have PYTHON="/usr/bin/python3" in my script file and it works (with non critical errors). I am not aware I did anything special with Python to get this to work. What OS version are you running?

Kusine commented 3 years ago

Thanks for your reply, yes I am running 10.15.7 and on line 3 of the script file, I have PYTHON="/usr/bin/python3". I am confused. I installed the latest Python via Homebrew.

charlietomo commented 3 years ago

I am no expert here but it seems we have similar setups and mine is working. So I will try and help! What is the response if you run which python3 in the terminal?

Kusine commented 3 years ago

Thank you @charlietomo for your willingness to help me out, I appreciate it! If I do which python3 I get /usr/local/bin/python3. If I do which python I get /usr/bin/python3.

KhaineBOT commented 3 years ago
Screen Shot 2020-01-19 at 4 22 28 PM

macOS Catalina comes with Python 3. It is at /usr/bin/python3.

No it doesn't. MacOS comes with python2. You need to install python3 separately. See https://installpython3.com/mac/