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

ModuleNotFoundError: No module named 'httplib' #232

Closed
Gokulkannan007 opened this issue Apr 29, 2020 · 3 comments
Closed

ModuleNotFoundError: No module named 'httplib' #232

Gokulkannan007 opened this issue Apr 29, 2020 · 3 comments

Comments

@Gokulkannan007
Copy link

Hello guys,
I am facing this problem.

kali@kali:~/trape$ python trape.py -u www.google.com -p 19153
Traceback (most recent call last):
File "trape.py", line 23, in
from core.utils import utils #
File "/home/kali/trape/core/utils.py", line 23, in
import httplib
ModuleNotFoundError: No module named 'httplib'

I have updated that httplib to the client and i am still facing the problem.
PLEASE HELP ME TO GET OUT F THIS PROBLEM

@websmartfeedback
Copy link

websmartfeedback commented Apr 29, 2020

Dear @Gokulkannan007 ,

Recently i have installed the same in my Kali 2020 machine and i faced the same problem. The error is being shown because there is no httplib in Python3 instead they changed it into http.client

I suggest you to surf the below website and follow the instructions to install pip for Python2.
https://pip.pypa.io/en/stable/installing/

However there will be some files you need to install in order to use Trape. The same can be done using the given cmd i.e. pip install flask , Please amend the same as per the file requested by the Trape.

Thanks

@Gokulkannan007
Copy link
Author

we have to run the command using python2 thats the way to solve it.

@n057r4d4mu5
Copy link

Python3:
Traceback (most recent call last):
File "/opt/trape/trape.py", line 23, in
from core.utils import utils #
File "/opt/trape/core/utils.py", line 23, in
import httplib
ModuleNotFoundError: No module named 'httplib'

Python2:
Traceback (most recent call last):
File "trape.py", line 23, in
from core.utils import utils #
File "/opt/trape/core/utils.py", line 21, in
import requests, json
File "/usr/local/lib/python2.7/dist-packages/requests-2.25.1-py2.7.egg/requests/init.py", line 43, in
import urllib3
ImportError: No module named urllib3

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

3 participants