Can't find cryptography module even though I installed it

Posted on
Sat Jun 11, 2022 9:19 am
webdeck offline
Posts: 436
Joined: May 07, 2005

Can't find cryptography module even though I installed it

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

Posted on
Sat Jun 11, 2022 9:33 am
autolog offline
Posts: 3988
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

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

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: cryptography-dev@python.org
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:

Posted on
Sat Jun 11, 2022 9:56 am
webdeck offline
Posts: 436
Joined: May 07, 2005

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

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.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest