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.

Cannot get cryptodome module to work

See original GitHub issue

Hello Kay,

I am trying to compile a program that uses pycryptodome module as standalone, and of course running into issues. I’ve tried with latest nuitka stable and latest rc so far, and tried to find some topics before opening the issue.

  • Nuitka version, full Python version and Platform (Windows, OSX, Linux …) 0.6.2rc1 Python: 3.7.1 (v3.7.1:260ec2c36a, Oct 20 2018, 14:05:16) [MSC v.1915 32 bit (Intel)] Executable: C:\Python37-32\python.exe OS: Windows Arch: x86

Using MingW64 8.1.0 with posix/dwarf

  • How did you install Nuitka and Python (pip, anaconda, deb, rpm, from source, what is a virtualenv …), this is very important usually. Installed latest nuitka as site package with http://nuitka.net/releases/Nuitka-6.0.210.win32.py37.msi By the way, there seems to be a naming problem with those 6.0.210 develop packages which naming make them look elder than the 6.1.10 stable packages.

  • If possible please supply a Short, Self Contained, Correct, Example Example test.py file:

from Crypto.Cipher import AES
from Crypto.Random import get_random_bytes

print(str(get_random_bytes(1337)))

Compiled with

python -m nuitka --exe --follow-imports --recurse-to=Crypto --standalone c:\PythonApps\test\test.py

Compilation produces no errors.

  • If this is a regression (used to work in an earlier version of Nuitka), Didn’t find anything about this.

Anything I may have missed ? Best regards.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:46 (43 by maintainers)

github_iconTop GitHub Comments

1reaction
deajancommented, May 10, 2019

After doing git pull; git checkout develop, I didn’t redo git pull, hence I didn’t find the changes. Thanks. I’ll see to add support for both packages.

1reaction
kayhayencommented, Apr 23, 2019

@BoboTiG I think I only ever did anything for cryptodomex, and mean to still look at cryptodome when I find the time.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ModuleNotFoundError: No module named 'Crypto' Error
If you have installed cryptodome, you can try to create a symbolic link. ln -s Cryptodome Crypto.
Read more >
Installation — PyCryptodome 3.15.0 documentation
In this case, all modules are installed under the Cryptodome package. The old PyCrypto and PyCryptodome can coexist. Note. If you intend to...
Read more >
ModuleNotFoundError No module named Crypto - Edureka
Hi. I am trying to run this line in python. from Crypto.Cipher import AES But I am getting this ... when I ran...
Read more >
no module named cryptodome.hash - You.com | The Search ...
I get the error no module named 'Crypto' even though it is installed ... And i used some modules but i can't use...
Read more >
pycryptodome - PyPI
All modules are installed under the Crypto package. Check the pycryptodomex project for the equivalent library that works under the Cryptodome package.
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