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

use pycryptodome instead of pycrypto #7

Open
sinkcoder opened this issue Dec 3, 2019 · 1 comment
Open

use pycryptodome instead of pycrypto #7

sinkcoder opened this issue Dec 3, 2019 · 1 comment

Comments

@sinkcoder
Copy link

(.venv) root@411e8a2f:~# pip freeze|grep pycrypto
pycrypto==2.6.1
pycryptodome==3.9.4
pycryptodomex==3.9.4
(.venv) root@411e8a2f:~# 
>>> import baidubce
Traceback (most recent call last):
  File "<input>", line 1, in <module>
    import baidubce
  File "/cmdb/.venv/lib/python3.6/site-packages/baidubce/__init__.py", line 18, in <module>
    from . import protocol
  File "/cmdb/.venv/lib/python3.6/site-packages/baidubce/protocol.py", line 20, in <module>
    from .utils import Expando
  File "/cmdb/.venv/lib/python3.6/site-packages/baidubce/utils.py", line 32, in <module>
    from Crypto.Cipher import AES
  File "/cmdb/.venv/lib/python3.6/site-packages/Crypto/Cipher/__init__.py", line 27, in <module>
    from Crypto.Cipher._mode_ecb import _create_ecb_cipher
  File "/cmdb/.venv/lib/python3.6/site-packages/Crypto/Cipher/_mode_ecb.py", line 29, in <module>
    from Crypto.Util._raw_api import (load_pycryptodome_raw_lib,
  File "/cmdb/.venv/lib/python3.6/site-packages/Crypto/Util/_raw_api.py", line 33, in <module>
    from Crypto.Util.py3compat import byte_string
ImportError: cannot import name 'byte_string'
>>> 
@sinkcoder sinkcoder changed the title use pycryptodome instad of pycrypto use pycryptodome instead of pycrypto Dec 3, 2019
@yunfan
Copy link

yunfan commented Jun 28, 2020

Agree, please use pycryptodome instread of pycrypto for the comvenient of us

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

2 participants