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

Cannot import pyaes #41

Open
gambitov opened this issue Jul 23, 2021 · 1 comment
Open

Cannot import pyaes #41

gambitov opened this issue Jul 23, 2021 · 1 comment

Comments

@gambitov
Copy link

gambitov commented Jul 23, 2021

I'm developing a code with telethon, It runs well for a while, but it crashes later and I cannot load it again because it cannot import pyaes. So, I need to restart my PC to load it again. the error is next:

Traceback (most recent call last):
  File "analizador.py", line 9, in <module>
    from telethon.sync import TelegramClient, events
  File "/home/gabriel/.local/lib/python3.7/site-packages/telethon/__init__.py", line 1, in <module>
    from .client.telegramclient import TelegramClient
  File "/home/gabriel/.local/lib/python3.7/site-packages/telethon/client/__init__.py", line 12, in <module>
    from .telegrambaseclient import TelegramBaseClient
  File "/home/gabriel/.local/lib/python3.7/site-packages/telethon/client/telegrambaseclient.py", line 11, in <module>
    from ..crypto import rsa
  File "/home/gabriel/.local/lib/python3.7/site-packages/telethon/crypto/__init__.py", line 6, in <module>
    from .aes import AES
  File "/home/gabriel/.local/lib/python3.7/site-packages/telethon/crypto/aes.py", line 9, in <module>
    import pyaes
  File "/usr/local/lib/python3.7/dist-packages/pyaes/__init__.py", line 51, in <module>
    from .aes import AES, AESModeOfOperationCTR, AESModeOfOperationCBC, AESModeOfOperationCFB, AESModeOfOperationECB, AESModeOfOperationOFB, AESModesOfOperation, Counter
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 724, in exec_module
  File "<frozen importlib._bootstrap_external>", line 857, in get_code
  File "<frozen importlib._bootstrap_external>", line 525, in _compile_bytecode
ValueError: bad marshal data (unknown type code)

may you help me?, please

@Lonami
Copy link

Lonami commented Jul 24, 2021

For reference, this is the original issue: LonamiWebs/Telethon#3116 (comment)

The failing point is when pyaes is imported so I've assumed there's somehow an issue here.

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