Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work with Python 3.5? #47

Closed
picandocodigo opened this issue Oct 16, 2018 · 1 comment
Closed

Doesn't work with Python 3.5? #47

picandocodigo opened this issue Oct 16, 2018 · 1 comment

Comments

@picandocodigo
Copy link
Contributor

I'm not a Python programmer, so I'm sorry if this issue is not exactly right. I got this error while trying to run the script with Python 3.5:

Traceback (most recent call last):
  File "nxshot.py", line 8, in <module>
    from Crypto.Cipher import AES
  File "/usr/lib/python3/dist-packages/Crypto/Cipher/AES.py", line 50, in <module>
    from Crypto.Cipher import _AES
ImportError: cannot import name '_AES'
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook
    from apport.fileutils import likely_packaged, get_recent_crashes
  File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>
    from apport.report import Report
  File "/usr/lib/python3/dist-packages/apport/report.py", line 30, in <module>
    import apport.fileutils
  File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, in <module>
    from apport.packaging_impl import impl as packaging
  File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 24, in <module>
    import apt
  File "/usr/lib/python3/dist-packages/apt/__init__.py", line 23, in <module>
    import apt_pkg
ImportError: No module named 'apt_pkg'

Original exception was:
Traceback (most recent call last):
  File "nxshot.py", line 8, in <module>
    from Crypto.Cipher import AES
  File "/usr/lib/python3/dist-packages/Crypto/Cipher/AES.py", line 50, in <module>
    from Crypto.Cipher import _AES
ImportError: cannot import name '_AES'

Python version: 3.5.2
OS: Ubuntu 18.04.1

Is this issue related to the error?
Cheers!

@Querschlag
Copy link

You can use PyCryptodome as a drop in replacement for pycrypto.
Just pip install pycryptodome. No need to adjust the imports.

@pxdl pxdl closed this as completed Jan 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants