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

Crypto.RSA Key Error 'size' #21

Open
manuelcoppotelli opened this issue Mar 18, 2019 · 1 comment
Open

Crypto.RSA Key Error 'size' #21

manuelcoppotelli opened this issue Mar 18, 2019 · 1 comment

Comments

@manuelcoppotelli
Copy link

I suddenly have this error when trying to connect to a Checkpoint gateway.
Up to yesterday every was working like a charm, since today I get the following error.
What can it be?

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/Crypto/PublicKey/RSA.py", line 121, in __getattr__
    return int(self._key[attrname])
KeyError: 'size'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/snxconnect", line 4, in <module>
    __import__('pkg_resources').run_script('snxvpn==1.2', 'snxconnect')
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 666, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 1453, in run_script
    exec(script_code, namespace, namespace)
  File "/usr/local/lib/python3.7/site-packages/snxvpn-1.2-py3.7.egg/EGG-INFO/scripts/snxconnect", line 5, in <module>
  File "/usr/local/lib/python3.7/site-packages/snxvpn-1.2-py3.7.egg/snxconnect.py", line 555, in main
  File "/usr/local/lib/python3.7/site-packages/snxvpn-1.2-py3.7.egg/snxconnect.py", line 209, in login
  File "/usr/local/lib/python3.7/site-packages/snxvpn-1.2-py3.7.egg/snxconnect.py", line 412, in encrypt
  File "/usr/local/lib/python3.7/site-packages/snxvpn-1.2-py3.7.egg/snxconnect.py", line 393, in pad
  File "/usr/local/lib/python3.7/site-packages/Crypto/PublicKey/RSA.py", line 123, in __getattr__
    raise AttributeError(attrname)
AttributeError: size
@manuelcoppotelli
Copy link
Author

I solved it using the following commands:

pip uninstall pycrypto
pip install pycrypto==2.6

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

1 participant