smicallef / spiderfoot

SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
http://www.spiderfoot.net
MIT License
13.25k stars 2.29k forks source link

modulenotfound error help #1868

Open Yusuf-Fyska opened 5 months ago

Yusuf-Fyska commented 5 months ago

File "/home/kali/Desktop/spiderfoot-4.0/./sf.py", line 29, in from sflib import SpiderFoot File "/home/kali/Desktop/spiderfoot-4.0/sflib.py", line 34, in import dns.resolver File "/usr/lib/python3/dist-packages/dns/resolver.py", line 30, in import dns._ddr File "/usr/lib/python3/dist-packages/dns/ddr.py", line 12, in import dns.nameserver File "/usr/lib/python3/dist-packages/dns/nameserver.py", line 5, in import dns.asyncquery File "/usr/lib/python3/dist-packages/dns/asyncquery.py", line 32, in import dns.quic File "/usr/lib/python3/dist-packages/dns/quic/_init.py", line 7, in import aioquic.quic.configuration # type: ignore ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/aioquic/quic/configuration.py", line 6, in from ..tls import ( File "/usr/lib/python3/dist-packages/aioquic/tls.py", line 41, in from cryptography.hazmat.primitives.asymmetric.types import ( ModuleNotFoundError: No module named 'cryptography.hazmat.primitives.asymmetric.types'

I take this error, how can I fix it?

omjadhav25 commented 4 months ago

did you get the solution of this error ?

Karag0 commented 4 months ago

same error

bcoles commented 4 months ago

Upgrading pyOpenSSL, pip and cryptography worked for me.

pip3 install pip --upgrade
pip3 install pyopenssl --upgrade
pip3 install cryptography --upgrade