guelfoweb / knock

Knock Subdomain Scan
GNU General Public License v3.0
3.85k stars 854 forks source link

ImportError: No module named python-dnspython #87

Closed Anirbansikder closed 3 years ago

Anirbansikder commented 3 years ago

Whenever I run this file I get :

ImportError: No module named python-dnspython
pip install dnspython

and I already have dnspython module.

How to handle this ?

rayearlK commented 3 years ago

Hello Anirbansikder, I think it might be the python (pip) configuration problem in your system. Try explicit install: something like this: # python -m pip install dnspython

benchacham commented 3 years ago

Somebody fixed this issue? I m facing the same issue ... Pls advise

C3SB1C commented 3 years ago

Knock requires a Python 2.7.6 version, so, Probably the problem is dnspython. Because Python 2.x support ended with the release of 1.16.0. The dnspython 2.0.0 and later, only support Python 3.6 and later. Is possible that you will need a virtual environment to use python 2.7.6 (required by knock), take a look to: www.kali.org/docs/general-use/using-eol-python-versions/

If you don't have troubles with the python version, then try modifiying the dnspython version. I downloaded the 1.16 version of dnspython from: https://github.com/rthalley/dnspython/releases/tag/v1.16.0 (Remember that this version doesn't have support anymore) when you're installing the setup.py from the knock folder, make sure that you have the proper dnspython version (1.16) on the path:

knock01

I had the same problem, and this works for me. I Hope it helps, regards.

drego85 commented 3 years ago

dnspython has been removed from the new Knock version.

vascoarizna commented 2 years ago

You should use import dns