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

Can I use pypy to run this program? #264

Open
CCCAUCHY opened this issue Apr 25, 2022 · 5 comments
Open

Can I use pypy to run this program? #264

CCCAUCHY opened this issue Apr 25, 2022 · 5 comments

Comments

@CCCAUCHY
Copy link

No description provided.

@alexbers
Copy link
Owner

Yes, you can

@CCCAUCHY
Copy link
Author

Yes, you can

I use "apt install pypy" to install pypy, and then use "pypy mtprotoproxy.py" to run, and then it reports many errors

@CCCAUCHY
Copy link
Author

CCCAUCHY commented May 5, 2022

Yes, you can

 pypy mtprotoproxy.py
  File "mtprotoproxy.py", line 359
    print(msg, flush=True, file=sys.stderr)
                    ^
SyntaxError: invalid syntax (expected ')')

@alexbers
Copy link
Owner

it should be pypy version 3 instead 2

@CCCAUCHY
Copy link
Author

CCCAUCHY commented Aug 4, 2022

it should be pypy version 3 instead 2

I use apt install pypy3 to install pypy3

pypy3 mtprotoproxy.py

Traceback (most recent call last):
  File "mtprotoproxy.py", line 483, in <module>
    myrandom = MyRandom()
  File "mtprotoproxy.py", line 464, in __init__
    self.encryptor = create_aes_ctr(key, iv)
  File "mtprotoproxy.py", line 333, in create_aes_ctr
    cipher = Cipher(algorithms.AES(key), modes.CTR(iv_bytes), default_backend())
  File "/usr/lib/python3/dist-packages/cryptography/hazmat/backends/__init__.py", line 14, in default_backend
    from cryptography.hazmat.backends.openssl.backend import backend
  File "/usr/lib/python3/dist-packages/cryptography/hazmat/backends/openssl/__init__.py", line 6, in <module>
    from cryptography.hazmat.backends.openssl.backend import backend
  File "/usr/lib/python3/dist-packages/cryptography/hazmat/backends/openssl/backend.py", line 114, in <module>
    from cryptography.hazmat.bindings.openssl import binding
  File "/usr/lib/python3/dist-packages/cryptography/hazmat/bindings/openssl/binding.py", line 14, in <module>
    from cryptography.hazmat.bindings._openssl import ffi, lib
ModuleNotFoundError: No module named 'cryptography.hazmat.bindings._openssl'

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