Hello,
I've made several attempts to install the HomeKitKink Siri plugin but no success so far. I initially had the Xcode command line tools missing problem, but have now corrected that and I'm stuck on the following error which occurs when installing or reloading the plugin:
HomeKitLink Siri Error Error in plugin execution InitializeMain:
File "plugin.py", line 48, in <module>
File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/HomeKitLink-Siri.indigoPlugin/Contents/Server Plugin/pyhap/accessory_driver.py", line 31, in <module>
File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/HomeKitLink-Siri.indigoPlugin/Contents/Packages/zeroconf/__init__.py", line 25, in <module>
File "src/zeroconf/_cache.py", line 1, in init zeroconf._cache
File "src/zeroconf/_protocol/incoming.py", line 1, in init zeroconf._protocol.incoming
File "src/zeroconf/_protocol/outgoing.py", line 1, in init zeroconf._protocol.outgoing
File "src/zeroconf/_dns.py", line 1, in init zeroconf._dns
type: module 'zeroconf._utils.time' has no attribute '__pyx_capi__'
My macOS version is 10.13.
Any help or advice on troubleshooting this issue would be greatly appreciated!
Error - zeroconf._utils.time' has no attribute '__pyx_capi__
Re: Error - zeroconf._utils.time' has no attribute '__pyx_ca
First up would try reinstalling the plugin - re-download and double click again.
This will clear out the libraries and try again.
Sent from my iPad using Tapatalk
This will clear out the libraries and try again.
Sent from my iPad using Tapatalk
Re: Error - zeroconf._utils.time' has no attribute '__pyx_ca
Thanks for the suggestion. I did try that several times including shutting dow the server and completely deleting the plugin before reinstalling - same result and error each time.
Error - zeroconf._utils.time' has no attribute '__pyx_capi__
Hmm.
Obviously something seems wrong with the zeroconf library install. The error (which is odd) seems to illustrate that the binary compiled files of the library aren’t available. This would presume something has not succeeded with the library install.
Latest version I presume? Of both Indigo and plugin?
Would look in plugin contents, Contents/Packages - should be an install txt file in there about pip success. Post that, presume zeroconf has failed to build for some reason….
Obviously something seems wrong with the zeroconf library install. The error (which is odd) seems to illustrate that the binary compiled files of the library aren’t available. This would presume something has not succeeded with the library install.
Latest version I presume? Of both Indigo and plugin?
Would look in plugin contents, Contents/Packages - should be an install txt file in there about pip success. Post that, presume zeroconf has failed to build for some reason….
Re: Error - zeroconf._utils.time' has no attribute '__pyx_ca
Yup, latest indigo and HomeKit plugin versions are in use. Here's the contents of the pip-install-log-success file:
Code: Select all
Collecting cryptography==41.0.7 (from -r /Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/HomeKitLink-Siri.indigoPlugin/Contents/Server Plugin/requirements.txt (line 1))
Using cached cryptography-41.0.7-cp37-abi3-macosx_10_12_x86_64.whl.metadata (5.2 kB)
Collecting homekitlink_ffmpeg (from -r /Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/HomeKitLink-Siri.indigoPlugin/Contents/Server Plugin/requirements.txt (line 2))
Using cached homekitlink_ffmpeg-0.0.25-py3-none-any.whl.metadata (2.8 kB)
Collecting orjson==3.8.10 (from -r /Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/HomeKitLink-Siri.indigoPlugin/Contents/Server Plugin/requirements.txt (line 3))
Using cached orjson-3.8.10-cp311-cp311-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (482 kB)
Collecting async_timeout==4.0.3 (from -r /Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/HomeKitLink-Siri.indigoPlugin/Contents/Server Plugin/requirements.txt (line 4))
Using cached async_timeout-4.0.3-py3-none-any.whl.metadata (4.2 kB)
Collecting aiofiles==23.2.1 (from -r /Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/HomeKitLink-Siri.indigoPlugin/Contents/Server Plugin/requirements.txt (line 5))
Using cached aiofiles-23.2.1-py3-none-any.whl.metadata (9.7 kB)
Collecting tlv8==0.10.0 (from -r /Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/HomeKitLink-Siri.indigoPlugin/Contents/Server Plugin/requirements.txt (line 6))
Using cached tlv8-0.10.0-py3-none-any.whl
Collecting base36==0.1.1 (from -r /Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/HomeKitLink-Siri.indigoPlugin/Contents/Server Plugin/requirements.txt (line 7))
Using cached base36-0.1.1-py2.py3-none-any.whl (3.5 kB)
Collecting pyqrcode==1.2.1 (from -r /Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/HomeKitLink-Siri.indigoPlugin/Contents/Server Plugin/requirements.txt (line 8))
Using cached PyQRCode-1.2.1-py3-none-any.whl
Collecting slugify==0.0.1 (from -r /Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/HomeKitLink-Siri.indigoPlugin/Contents/Server Plugin/requirements.txt (line 9))
Using cached slugify-0.0.1-py3-none-any.whl
Collecting pypng==0.20220715.0 (from -r /Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/HomeKitLink-Siri.indigoPlugin/Contents/Server Plugin/requirements.txt (line 10))
Using cached pypng-0.20220715.0-py3-none-any.whl (58 kB)
Collecting h11==0.14.0 (from -r /Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/HomeKitLink-Siri.indigoPlugin/Contents/Server Plugin/requirements.txt (line 11))
Using cached h11-0.14.0-py3-none-any.whl (58 kB)
Collecting zeroconf==0.131.0 (from -r /Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/HomeKitLink-Siri.indigoPlugin/Contents/Server Plugin/requirements.txt (line 12))
Using cached zeroconf-0.131.0-cp311-cp311-macosx_10_13_x86_64.whl
Collecting chacha20poly1305-reuseable==0.12.0 (from -r /Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/HomeKitLink-Siri.indigoPlugin/Contents/Server Plugin/requirements.txt (line 13))
Using cached chacha20poly1305_reuseable-0.12.0-cp311-cp311-macosx_10_13_x86_64.whl
Collecting cffi>=1.12 (from cryptography==41.0.7->-r /Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/HomeKitLink-Siri.indigoPlugin/Contents/Server Plugin/requirements.txt (line 1))
Using cached cffi-1.16.0-cp311-cp311-macosx_10_9_x86_64.whl.metadata (1.5 kB)
Collecting ifaddr>=0.1.7 (from zeroconf==0.131.0->-r /Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/HomeKitLink-Siri.indigoPlugin/Contents/Server Plugin/requirements.txt (line 12))
Using cached ifaddr-0.2.0-py3-none-any.whl (12 kB)
Collecting pycparser (from cffi>=1.12->cryptography==41.0.7->-r /Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/HomeKitLink-Siri.indigoPlugin/Contents/Server Plugin/requirements.txt (line 1))
Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)
Using cached cryptography-41.0.7-cp37-abi3-macosx_10_12_x86_64.whl (2.9 MB)
Using cached async_timeout-4.0.3-py3-none-any.whl (5.7 kB)
Using cached aiofiles-23.2.1-py3-none-any.whl (15 kB)
Using cached homekitlink_ffmpeg-0.0.25-py3-none-any.whl (45.1 MB)
Using cached cffi-1.16.0-cp311-cp311-macosx_10_9_x86_64.whl (182 kB)
Installing collected packages: tlv8, slugify, pyqrcode, pypng, ifaddr, base36, zeroconf, pycparser, orjson, homekitlink_ffmpeg, h11, async_timeout, aiofiles, cffi, cryptography, chacha20poly1305-reuseable
Successfully installed aiofiles-23.2.1 async_timeout-4.0.3 base36-0.1.1 cffi-1.16.0 chacha20poly1305-reuseable-0.12.0 cryptography-41.0.7 h11-0.14.0 homekitlink_ffmpeg-0.0.25 ifaddr-0.2.0 orjson-3.8.10 pycparser-2.21 pypng-0.20220715.0 pyqrcode-1.2.1 slugify-0.0.1 tlv8-0.10.0 zeroconf-0.131.0Error - zeroconf._utils.time' has no attribute '__pyx_capi__
OK
In a terminal try to redownload packages without using cache. Using —nocache-dir option
Delete folder Packages from within Plugin directory (where that above pip-success file came from). And then do below.
(Above edited, using slash to escape rather than quotes which failed on my testing)
This presumes plugin enabled, and not disabled - which because of error might be. In which case need to change the Plugins folder to Disabled Plugins with escaping of spaces
Post output
Sent from my iPad using Tapatalk
In a terminal try to redownload packages without using cache. Using —nocache-dir option
Delete folder Packages from within Plugin directory (where that above pip-success file came from). And then do below.
Code: Select all
pip3 install -r /Library/Application\ Support/Perceptive\ Automation/Indigo\ 2023.2/Plugins/HomeKitLink-Siri.indigoPlugin/Contents/Server\ Plugin/requirements.txt -t /Library/Application\ Support/Perceptive\ Automation/Indigo\ 2023.2/Plugins/HomeKitLink-Siri.indigoPlugin/Contents/Packages --no-cache-dir
This presumes plugin enabled, and not disabled - which because of error might be. In which case need to change the Plugins folder to Disabled Plugins with escaping of spaces
Post output
Sent from my iPad using Tapatalk
Re: Error - zeroconf._utils.time' has no attribute '__pyx_ca
Hello Glenn,
I am happy to report that removing and downloading the packages with the --nocache-dir option corrected the problem, plugin is now up and running with no errors.
Thank you very much for all your help, this looks like a great plugin and I'm looking forward to trying it out with a few devices.
I am happy to report that removing and downloading the packages with the --nocache-dir option corrected the problem, plugin is now up and running with no errors.
Thank you very much for all your help, this looks like a great plugin and I'm looking forward to trying it out with a few devices.
Re: Error - zeroconf._utils.time' has no attribute '__pyx_ca
Good to hear.
Bit odd - must have cached a failure or something strange… (xcode tools should be needed for zeroconf…)
Anyway glad working.
Sent from my iPad using Tapatalk
Bit odd - must have cached a failure or something strange… (xcode tools should be needed for zeroconf…)
Anyway glad working.
Sent from my iPad using Tapatalk