Can't find cryptography module even though I installed it

A plugin to integration Indigo devices into HomeKit (and Siri)
webdeck
Posts: 461
Joined: Sat May 07, 2005 11:27 pm

Can't find cryptography module even though I installed it

Post by webdeck »

I've installed the cryptography module, but the plugin can't seem to find it. I have 3 different pip3 executables (/opt/homebrew/b in, /usr/local/bin, /usr/bin), so I installed it using all three of those versions of pip3 and it still fails with this error:

Code: Select all

   HomeKitLink Siri Error          Error in plugin execution InitializeMain:

  File "plugin.py", line 36, in <module>
  File "/Library/Application Support/Perceptive Automation/Indigo 2022.1/Plugins/HomeKitLink-Siri.indigoPlugin/Contents/Server Plugin/pyhap/accessory_driver.py", line 50, in <module>
  File "/Library/Application Support/Perceptive Automation/Indigo 2022.1/Plugins/HomeKitLink-Siri.indigoPlugin/Contents/Server Plugin/pyhap/encoder.py", line 9, in <module>
type: No module named 'cryptography'

Code: Select all

[Indigo] # /opt/homebrew/bin/pip3 list | grep cryptography
cryptography                                      36.0.2
[Indigo] # /usr/local/bin/pip3 list | grep cryptography
cryptography 37.0.2
[Indigo] # /usr/bin/pip3 list | grep cryptography
cryptography 37.0.2
autolog
Posts: 4077
Joined: Tue Sep 10, 2013 3:07 am
Location: West Sussex, UK
Contact:

Re: Can't find cryptography module even though I installed i

Post by autolog »

Cryptography should be installed in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages

More detail:

Code: Select all

pip3 show cryptography
Name: cryptography
Version: 36.0.2
Summary: cryptography is a package which provides cryptographic recipes and primitives to Python developers.
Home-page: https://github.com/pyca/cryptography
Author: The Python Cryptographic Authority and individual contributors
Author-email: [email protected]
License: BSD or Apache License, Version 2.0
Location: /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages
Requires: cffi
Required-by: 
webdeck
Posts: 461
Joined: Sat May 07, 2005 11:27 pm

Re: Can't find cryptography module even though I installed i

Post by webdeck »

Ah, okay, so I got this working by running:

Code: Select all

sudo /Library/Frameworks/Python.framework/Versions/3.10/bin/pip3 install cryptography
Apparently my /usr/bin/pip3 is the one installed by the developer command line tools which is separate.
Post Reply

Return to “HomeKitLink Siri”