No module named Cryptodome.PublicKey
See original GitHub issueI get this error when starting kodi with the plugin installed.
Any idea how to fix it?
20:31:34.362 T:2461196704 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <type 'exceptions.ImportError'> Error Contents: No module named Cryptodome.PublicKey Traceback (most recent call last): File "/home/odroid/.kodi/addons/plugin.video.netflix/service.py", line 11, in <module> from resources.lib.MSLHttpRequestHandler import MSLHttpRequestHandler File "/home/odroid/.kodi/addons/plugin.video.netflix/resources/lib/MSLHttpRequestHandler.py", line 9, in <module> from MSL import MSL File "/home/odroid/.kodi/addons/plugin.video.netflix/resources/lib/MSL.py", line 17, in <module> from Cryptodome.PublicKey import RSA ImportError: No module named Cryptodome.PublicKey -->End of Python script error report<--
Issue Analytics
- State:
- Created 6 years ago
- Comments:9
pip install pycryptodomex
To clarify the discussion from april 6th 2017; pycryptodome and pycryptodomex are different packages; pycryptodome installs many files in /usr/local/lib/py/thon2.7/dist-packages/Crypto pycryptodomex installs many files in /usr/local/lib/python2.7/dist-packages/Cryptodome
At one point, kodi changed the dependency from pycryptodome to pycryptodomex. O rmy distribution had the dependency wrong to begin with
I believe my distribution didn’t accuratly update the ‘depends’ listing for kodi when this happened, so i ended up with pycryptodome installed, when kodi expected pycryptodomex… so kodi was looking in the wrong folder for crypto
When the problem first occured, making the noted symlink functionally worked; would have also worked to manually install pycryptodomex
However the symlink later broke the installation of pycryptodomex when the kodi dependency was fixed (due to conflicting files in filesystem). Removing the symlink fixed that problem.