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

Python throw AttributeError #5

Open
CharlesHe023 opened this issue Dec 14, 2021 · 1 comment
Open

Python throw AttributeError #5

CharlesHe023 opened this issue Dec 14, 2021 · 1 comment

Comments

@CharlesHe023
Copy link

charles@xavier-nvme:~$ sudo -E python3 -m openwifipass --ssid MySSID --psk 'testpassword'
[sudo] password for charles:
Start scanning...
SSID match in PWS advertisement from 5d:32:e4:bd:f0:3b
Connect to device 5d:32:e4:bd:f0:3b
Traceback (most recent call last):
File "/usr/lib/python3.6/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.6/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/charles/.local/lib/python3.6/site-packages/openwifipass/main.py", line 31, in
main()
File "/home/charles/.local/lib/python3.6/site-packages/openwifipass/main.py", line 27, in main
startPWS(scanResult.addr, args.ssid, args.psk)
File "/home/charles/.local/lib/python3.6/site-packages/openwifipass/Connection.py", line 95, in startPWS
grantorHandler = GrantorHandler(ssid, psk)
File "/home/charles/.local/lib/python3.6/site-packages/openwifipass/GrantorHandler.py", line 17, in init
self.session_keys = SessionKeys()
File "/home/charles/.local/lib/python3.6/site-packages/openwifipass/Keys.py", line 9, in init
encoding=serialization.Encoding.Raw, format=serialization.PublicFormat.Raw
File "/usr/lib/python3.6/enum.py", line 429, in getattr
raise AttributeError(name) from None
AttributeError: Raw

@firkeuf
Copy link

firkeuf commented Nov 28, 2022

You need to upgrade cryptography
pip3 install --upgrade cryptography

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