Jun-21-2018, 12:54 AM
Thanks snippsat! This definitely put me in the right direction. The problem does indeed stem from Mac OS's preference for the version of Python 2 that comes preinstalled. I thought installing the latest version from the official Python site would've been enough for it to take precedence, but no.
The linked instructions proved to be a bit more than what I needed. But for anyone else who stumbles upon this thread, I found I was able to launch my script with Python 3 by changing the cd command in my launch code from
Thanks again!
The linked instructions proved to be a bit more than what I needed. But for anyone else who stumbles upon this thread, I found I was able to launch my script with Python 3 by changing the cd command in my launch code from
/usr/bin/pythonw
to /Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6
. A little clunky, but it proved easier to just change the Python version used for launching this script then to change things globally. Using Python 3 allowed my script to find the urllib module it could't find in Python 2.Thanks again!