transferred indigo to new mac and python scripts

Posted on
Fri Jan 06, 2023 4:34 pm
wamartei offline
Posts: 13
Joined: May 29, 2019

transferred indigo to new mac and python scripts

hi,
i transferred indigo to new mac and can no longer run python scripts. The user is the same and the file path is the same, but the python scripts won't run through indigo. new mac is on ventura

thanks

Posted on
Fri Jan 06, 2023 4:53 pm
jay (support) offline
Site Admin
User avatar
Posts: 18220
Joined: Mar 19, 2008
Location: Austin, Texas

Re: transferred indigo to new mac and python scripts

Did you follow all the steps in the Moving Indigo to another Mac section of the docs? And you're running Indigo 2022.1.x?

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Fri Jan 06, 2023 8:03 pm
wamartei offline
Posts: 13
Joined: May 29, 2019

Re: transferred indigo to new mac and python scripts

I used migration assistant, which appears to have copied over application support folder. i installed latest indigo on top of that. Everything appears to be working except for python scripts

Posted on
Sat Jan 07, 2023 4:36 pm
jay (support) offline
Site Admin
User avatar
Posts: 18220
Joined: Mar 19, 2008
Location: Austin, Texas

Re: transferred indigo to new mac and python scripts

What errors are you seeing in the Event Log? And how are you running your scripts?

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Sun Jan 08, 2023 3:25 pm
wamartei offline
Posts: 13
Joined: May 29, 2019

Re: transferred indigo to new mac and python scripts

there's no error message in the event log. i'm using indigo action "run shell script" "/Users/xxxxxxx/Sites/stIndigo/wsgi-scripts/hdmiTCPIP.py "living 3 1""

this has worked for at least a couple of years on the old 2013 mac pro (not running ventura)

when i transferred to this ventura/mac studio, i had an issue with plex media server which i was able to solve by enabling "full disk access". i've tried that with indigo server located in "/Library/application support/perceptive auto/indigo 2022.1" but to no avail

when i run the script in the python IDE, it works fine. when i use "open file" in indigo action on the same file, the file opens, so it seems indigo can access the file or at least locate it...

thanks

Posted on
Sun Jan 08, 2023 5:07 pm
jay (support) offline
Site Admin
User avatar
Posts: 18220
Joined: Mar 19, 2008
Location: Austin, Texas

Re: transferred indigo to new mac and python scripts

The shebang (!#) on the first line of your script is probably pointing to the wrong python (Apple stopped including Python in OS releases after macOS 12.3, so we started including our own). Assuming your script needs python 2, you'll want it to be:

Code: Select all
#! /Library/Frameworks/Python.framework/Versions/2.7/bin/python2


If your script needs python 3, then use this shebang:

Code: Select all
#! /Library/Frameworks/Python.framework/Versions/3.10/bin/python3

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Sun Jan 08, 2023 8:36 pm
wamartei offline
Posts: 13
Joined: May 29, 2019

Re: transferred indigo to new mac and python scripts

Yes, that worked, thanks!

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 6 guests