question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No module named Cryptodome.PublicKey

See original GitHub issue

I 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:closed
  • Created 6 years ago
  • Comments:9

github_iconTop GitHub Comments

17reactions
trummerjocommented, Apr 6, 2017

pip install pycryptodomex

0reactions
thenextdon13commented, Oct 7, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python ImportError No module named crypto.PublicKey.RSA
I have no idea how to solve this and other questions have proven completely useless to my situation. Is the module there but...
Read more >
ModuleNotFoundError: No module named 'Crypto' in Python
To solve the error, install the module by running the pip install pycryptodome command. no module named crypto. Open your terminal in your...
Read more >
dev-python/pycryptodome: No module named Cryptodome ...
I ran into this issue, trying to install the netflix plugin [1] for Kodi (git): https://github.com/asciidisco/plugin.video.netflix/issues/36 ...
Read more >
Crypto.PublicKey package - PyCryptodome's documentation
This module collects all methods to generate, validate, store and retrieve public keys. API principles¶. Asymmetric keys are represented by Python objects. Each ......
Read more >
ModuleNotFoundError No module named Crypto - Edureka
ModuleNotFoundError No module named Crypto. +2 votes ... pip install pycryptodomex from Cryptodome.Cipher import AES.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found