trape icon indicating copy to clipboard operation
trape copied to clipboard

ImportError: No module named http.client

Open anonymous0305 opened this issue 3 years ago • 5 comments

ImportError: No module named http.client . . anyone tell me how to fix this . thank you

anonymous0305 avatar Aug 27 '21 07:08 anonymous0305

ImportError: No module named http.client . . anyone tell me how to fix this . thank you

jitesh-eng avatar Sep 12 '21 11:09 jitesh-eng

ImportError: No module named http.client . . anyone tell me how to fix this . thank you

LicPlatano avatar Sep 19 '21 07:09 LicPlatano

hey when you're running it just use Python3 instead of Python2 it'll work

SirZexx avatar Nov 11 '21 13:11 SirZexx

ImportError: No module named http.client . . anyone tell me how to fix this . thank you

i've posted solution check out if it works

SirZexx avatar Nov 11 '21 13:11 SirZexx

i've posted solution check out if it works

i have the error when i open control panel link and enter my access key.

The client is using an unsupported version of the Socket.IO or Engine.IO protocols (further occurrences of this error will be logged with level INFO) [2022-03-30 14:35:36,796] ERROR in app: Exception on /get_title [POST] Traceback (most recent call last): File "/home/tigerman1159/.local/lib/python3.9/site-packages/flask/app.py", line 2077, in wsgi_app response = self.full_dispatch_request() File "/home/tigerman1159/.local/lib/python3.9/site-packages/flask/app.py", line 1525, in full_dispatch_request rv = self.handle_user_exception(e) File "/home/tigerman1159/.local/lib/python3.9/site-packages/flask_cors/extension.py", line 165, in wrapped_function return cors_after_request(app.make_response(f(*args, **kwargs))) File "/home/tigerman1159/.local/lib/python3.9/site-packages/flask/app.py", line 1523, in full_dispatch_request rv = self.dispatch_request() File "/home/tigerman1159/.local/lib/python3.9/site-packages/flask/app.py", line 1509, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args) File "/home/tigerman1159/trape/core/stats.py", line 97, in home_get_title return json.dumps({'status' : 'OK', 'title' : html}) File "/home/tigerman1159/.local/lib/python3.9/site-packages/flask/json/init.py", line 131, in dumps return _json.dumps(obj, **kwargs) File "/usr/lib/python3.9/json/init.py", line 234, in dumps return cls( File "/usr/lib/python3.9/json/encoder.py", line 199, in encode chunks = self.iterencode(o, _one_shot=True) File "/usr/lib/python3.9/json/encoder.py", line 257, in iterencode return _iterencode(o, 0) File "/home/tigerman1159/.local/lib/python3.9/site-packages/flask/json/init.py", line 50, in default return super().default(o) File "/usr/lib/python3.9/json/encoder.py", line 179, in default raise TypeError(f'Object of type {o.class.name} ' TypeError: Object of type bytes is not JSON serializable

do you know how to fix it?

TigerMan1159 avatar Mar 30 '22 07:03 TigerMan1159