Page 2 of 2

Re: Python 3 installation in 2022.1

PostPosted: Thu Jun 01, 2023 9:12 am
by jay (support)
hamw wrote:
Jay, if nothing should’ve changed, do you have any idea why the plug-in appears to work but doesn’t see the boards?


No idea.

hamw wrote:
Also, I am glad to hear you all are not completely ditching python 2.7. It’s really hard to keep changing things.


Clarification: starting in 2023.1, Indigo will no longer use Python 2 for anything (plugins that still use Python 2 will not work). We will not remove the python 2 install that any previous version of Indigo installed, but it will not use it.

Re: Python 3 installation in 2022.1

PostPosted: Thu Jun 01, 2023 10:33 am
by kyphos
@hamw
My Phidgets program, written in Python2, is in a file named Furnace.py located in a folder on the Desktop (/Desktop/PhidgetsCode).
I launch the program with a command shell script (logging.command) containing three lines:
Code: Select all
#!  /bin/tsch
cd /Users/Kyphos/Desktop/PhidgetsCode
Furnace.py

After migrating to 2022.1, I had to explicitly change the shell script to point to the 'default' macOS installation of Python 2.7.
Thus:
Code: Select all
#!  /bin/tsch
cd /Users/Kyphos/Desktop/PhidgetsCode
/usr/bin/python Furnace.py

There may be a more elegant way to accomplish the redirect, but this worked for me.

As best I can tell, /usr/bin is where macOS installs its variant of Python2.
Indigo used to install its variant of Python2 in /usr/local/bin.
Having moved to Python3, the Indigo 2022.x installer places Py3 somewhere else, but apparently leaves any prior install of Py2 (at /usr/local/bin) alone.

Re: Python 3 installation in 2022.1

PostPosted: Thu Jun 01, 2023 7:49 pm
by hamw
Kyphos,

I'm going to post over in the Phidgets thread. Would appreciate if you would take a look.

thanks!