Python3 Installation

Posted on
Sat Feb 15, 2020 9:06 am
FlyingDiver offline
User avatar
Posts: 7210
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Python3 Installation

davinci wrote:
Cool, thanks, I use Catalina. I was not aware that it is already installed.


Actually, it requires the Xcode command line tools. The first time you try to run "python3" in a terminal window, it'll prompt you to install the tools.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Wed Mar 24, 2021 5:02 am
Stoutjesdijk offline
User avatar
Posts: 135
Joined: Dec 21, 2014
Location: The Netherlands

Re: Python3 Installation

Hi,
I just posted about a python module pyatv to control AppleTV (viewtopic.php?f=5&t=25078#p201320), but this requires python3. I have it installed, and the command line utilities work. However, I would love to integrate this more in Indigo. Is there any way that I can do either one of these?
1. import the pyatv in a python2.7 script;
2. make indigo use python3
Thanks!

Best regards,

Mark

Trying to tie it all together...
| Indigo | Plex | NAD M33 | Unifi | LG WebOS | Tado | Sonos | SolarEdge | HUE |

Posted on
Wed Mar 24, 2021 6:27 am
FlyingDiver offline
User avatar
Posts: 7210
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Python3 Installation

No, you can't do either of those. You can call a Python 3 script from Indigo, but you need to use the "Run Shell Script" action as if you were executing a command line script.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Wed Mar 24, 2021 6:50 am
Stoutjesdijk offline
User avatar
Posts: 135
Joined: Dec 21, 2014
Location: The Netherlands

Re: Python3 Installation

That's how I am sending commands to the AppleTV right now. I guess it will be much harder to get status updates from the device.

Best regards,

Mark

Trying to tie it all together...
| Indigo | Plex | NAD M33 | Unifi | LG WebOS | Tado | Sonos | SolarEdge | HUE |

Posted on
Wed Mar 24, 2021 6:51 am
FlyingDiver offline
User avatar
Posts: 7210
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Python3 Installation

Stoutjesdijk wrote:
That's how I am sending commands to the AppleTV right now. I guess it will be much harder to get status updates from the device.


That action will store the return value from the script into a variable. That should suffice for status.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Who is online

Users browsing this forum: No registered users and 2 guests