AppleTV Plugin not finding any devices

Posted on
Tue Jun 08, 2021 2:20 pm
danieljmorel offline
Posts: 42
Joined: Dec 11, 2016

Re: AppleTV Plugin not finding any devices

It looked like that worked. Was it supposed to add the apple TV's to my Indigo devices. If so, there were no devices added.

Posted on
Tue Jun 08, 2021 2:37 pm
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: AppleTV Plugin not finding any devices

No that was just the program that us called by the plugin

Then the plugin reads the output and creates the indigo devices.

Can you try
Put the python 3 string back into config
Then run scan again in the plugin.


Sent from my iPhone using Tapatalk

Posted on
Tue Jun 08, 2021 3:39 pm
danieljmorel offline
Posts: 42
Joined: Dec 11, 2016

Re: AppleTV Plugin not finding any devices

I changed the configuration to /usr/bin/python3 and this is what shows in the log file:

08 17:37:34 CONFIG: path To python3 /usr/bin/python3
08 17:37:43 in loop #18218
08 17:37:53 in loop #18219
08 17:37:53 =========getscriptScan cmd:[u'/usr/bin/python3', '/Library/Application Support/Perceptive Automation/Indigo 7.5/Plugins/appleTV.indigoPlugin/Contents/Server Plugin/atvscript.py', 'scan']
08 17:37:53 =========getscriptScan out:('', 'Traceback (most recent call last):\n File "/Library/Application Support/Perceptive Automation/Indigo 7.5/Plugins/appleTV.indigoPlugin/Contents/Server Plugin/atvscript.py", line 13, in <module>\n from pyatv import connect, const, scan\nModuleNotFoundError: No module named \'pyatv\'\n')
08 17:37:53 =========getNewDevices scan result:{}
08 17:38:03 in loop #18220
08 17:38:03 =========getscriptScan cmd:[u'/usr/bin/python3', '/Library/Application Support/Perceptive Automation/Indigo 7.5/Plugins/appleTV.indigoPlugin/Contents/Server Plugin/atvscript.py', 'scan']
08 17:38:04 =========getscriptScan out:('', 'Traceback (most recent call last):\n File "/Library/Application Support/Perceptive Automation/Indigo 7.5/Plugins/appleTV.indigoPlugin/Contents/Server Plugin/atvscript.py", line 13, in <module>\n from pyatv import connect, const, scan\nModuleNotFoundError: No module named \'pyatv\'\n')
08 17:38:04 =========getNewDevices scan result:{}
08 17:38:14 in loop #18221
08 17:38:24 in loop #18222

Posted on
Tue Jun 08, 2021 3:45 pm
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: AppleTV Plugin not finding any devices

Can you put the full string string not just the short version.


Sent from my iPhone using Tapatalk

Posted on
Tue Jun 08, 2021 4:24 pm
danieljmorel offline
Posts: 42
Joined: Dec 11, 2016

Re: AppleTV Plugin not finding any devices

Would this be the full string:

/Library/Frameworks/Python.framework/Versions/3.9/bin/python3

My apologies for my newbness

Posted on
Tue Jun 08, 2021 4:26 pm
danieljmorel offline
Posts: 42
Joined: Dec 11, 2016

Re: AppleTV Plugin not finding any devices

if so, this is what I get:
08 18:25:08 =========getscriptScan cmd:[u'/Library/Frameworks/Python.framework/Versions/3.9/bin/python3', '/Library/Application Support/Perceptive Automation/Indigo 7.5/Plugins/appleTV.indigoPlugin/Contents/Server Plugin/atvscript.py', 'scan']
08 18:25:09 =========getscriptScan out:('', 'Traceback (most recent call last):\n File "/Library/Application Support/Perceptive Automation/Indigo 7.5/Plugins/appleTV.indigoPlugin/Contents/Server Plugin/atvscript.py", line 13, in <module>\n from pyatv import connect, const, scan\n File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyatv/__init__.py", line 10, in <module>\n from pyatv import conf, exceptions, interface\n File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyatv/conf.py", line 16, in <module>\n from pyatv.interface import BaseService, DeviceInfo\n File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyatv/interface.py", line 37, in <module>\n from pyatv.support import net\n File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyatv/support/net.py", line 10, in <module>\n import netifaces\nImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/netifaces.cpython-39-darwin.so, 2): no suitable image found. Did find:\n\t/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/netifaces.cpython-39-darwin.so: mach-o, but wrong architecture\n\t/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/netifaces.cpython-39-darwin.so: mach-o, but wrong architecture\n')
08 18:25:09 =========getNewDevices scan result:{}
08 18:25:19 in loop #18502

Posted on
Tue Jun 08, 2021 4:42 pm
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: AppleTV Plugin not finding any devices

Is this the same machine?
Ie Indigo server / client ?

Have no clue what is different.

Is there another python 3 in that machine ?


Sent from my iPhone using Tapatalk

Posted on
Tue Jun 08, 2021 4:56 pm
danieljmorel offline
Posts: 42
Joined: Dec 11, 2016

Re: AppleTV Plugin not finding any devices

This is the same machine - Server / Client

As far as I know all I only have is one installation of Python 3.
Terminals "which Python3" shows:
djm@WorkOutNW ~ % which python3
/Library/Frameworks/Python.framework/Versions/3.9/bin/python3
djm@WorkOutNW ~ % which python
/usr/bin/python
djm@WorkOutNW ~ %

should I try to uninstall Python3?

Posted on
Tue Jun 08, 2021 5:33 pm
danieljmorel offline
Posts: 42
Joined: Dec 11, 2016

Re: AppleTV Plugin not finding any devices

It appears that it is looking for a module pyatv but there is none found. should there be a file called pyatv and if so where should it be located.

08 19:31:49 =========getscriptScan cmd:[u'/usr/bin/python3', '/Library/Application Support/Perceptive Automation/Indigo 7.5/Plugins/appleTV.indigoPlugin/Contents/Server Plugin/atvscript.py', 'scan']
08 19:31:49 =========getscriptScan out:('', 'Traceback (most recent call last):\n File "/Library/Application Support/Perceptive Automation/Indigo 7.5/Plugins/appleTV.indigoPlugin/Contents/Server Plugin/atvscript.py", line 13, in <module>\n from pyatv import connect, const, scan\nModuleNotFoundError: No module named \'pyatv\'\n')
08 19:31:49 =========getNewDevices scan result:{}
08 19:31:59 in loop #18900

Posted on
Tue Jun 08, 2021 5:36 pm
danieljmorel offline
Posts: 42
Joined: Dec 11, 2016

Re: AppleTV Plugin not finding any devices

When I try to re-install pyatv this is what I get:
djm@WorkOutNW ~ % pip3 install pyatv
Requirement already satisfied: pyatv in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (0.7.7)
Requirement already satisfied: zeroconf>=0.28.0 in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from pyatv) (0.31.0)
Requirement already satisfied: cryptography>=2.6 in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from pyatv) (3.4.7)
Requirement already satisfied: netifaces>=0.10.0 in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from pyatv) (0.11.0)
Requirement already satisfied: aiohttp<5,>=3.1.0 in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from pyatv) (3.7.4.post0)
Requirement already satisfied: protobuf<4,>=3.6.0 in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from pyatv) (3.17.2)
Requirement already satisfied: srptools>=0.2.0 in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from pyatv) (1.0.1)
Requirement already satisfied: multidict<7.0,>=4.5 in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from aiohttp<5,>=3.1.0->pyatv) (5.1.0)
Requirement already satisfied: attrs>=17.3.0 in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from aiohttp<5,>=3.1.0->pyatv) (21.2.0)
Requirement already satisfied: async-timeout<4.0,>=3.0 in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from aiohttp<5,>=3.1.0->pyatv) (3.0.1)
Requirement already satisfied: yarl<2.0,>=1.0 in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from aiohttp<5,>=3.1.0->pyatv) (1.6.3)
Requirement already satisfied: chardet<5.0,>=2.0 in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from aiohttp<5,>=3.1.0->pyatv) (4.0.0)
Requirement already satisfied: typing-extensions>=3.6.5 in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from aiohttp<5,>=3.1.0->pyatv) (3.10.0.0)
Requirement already satisfied: cffi>=1.12 in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from cryptography>=2.6->pyatv) (1.14.5)
Requirement already satisfied: pycparser in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from cffi>=1.12->cryptography>=2.6->pyatv) (2.20)
Requirement already satisfied: six>=1.9 in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from protobuf<4,>=3.6.0->pyatv) (1.16.0)
Requirement already satisfied: idna>=2.0 in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from yarl<2.0,>=1.0->aiohttp<5,>=3.1.0->pyatv) (3.2)
Requirement already satisfied: ifaddr>=0.1.7 in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from zeroconf>=0.28.0->pyatv) (0.1.7)
djm@WorkOutNW ~ %

Posted on
Tue Jun 08, 2021 5:42 pm
danieljmorel offline
Posts: 42
Joined: Dec 11, 2016

Re: AppleTV Plugin not finding any devices

Is there possibly another option for getting the Apple TV's added to Indigo's devices?

Posted on
Tue Jun 08, 2021 5:54 pm
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: AppleTV Plugin not finding any devices

It is not just adding the indigo devices. Likely also all other function will not work as they use similar calls.

I will Play around a little.

What is your opsys? Mac version ?


Sent from my iPhone using Tapatalk

Posted on
Tue Jun 08, 2021 5:55 pm
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: AppleTV Plugin not finding any devices

And could you do

Open terminal
echo $PATH


Sent from my iPhone using Tapatalk

Posted on
Tue Jun 08, 2021 6:00 pm
danieljmorel offline
Posts: 42
Joined: Dec 11, 2016

Re: AppleTV Plugin not finding any devices

Big Sur
Version: 11.4

Posted on
Tue Jun 08, 2021 6:01 pm
danieljmorel offline
Posts: 42
Joined: Dec 11, 2016

Re: AppleTV Plugin not finding any devices

djm@WorkOutNW ~ % echo $PATH
/Library/Frameworks/Python.framework/Versions/3.9/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin
djm@WorkOutNW ~ %

Who is online

Users browsing this forum: No registered users and 1 guest