JSParser icon indicating copy to clipboard operation
JSParser copied to clipboard

No module named 'StringIO'

Open sumit554 opened this issue 3 years ago • 5 comments

Traceback (most recent call last): File "/root/tools/JSParser/handler.py", line 5, in import safeurl, types, sys, re, mimetypes, glob, jsbeautifier, urlparse, pycurl File "/root/tools/JSParser/safeurl.py", line 18, in import StringIO ModuleNotFoundError: No module named 'StringIO'

Pls help me to solve this issues

sumit554 avatar Dec 01 '21 09:12 sumit554

replace import StringIO to from io import StringIO

ghost avatar Dec 01 '21 09:12 ghost

after replacing

Traceback (most recent call last): File "/root/tools/JSParser/handler.py", line 5, in import safeurl, types, sys, re, mimetypes, glob, jsbeautifier, urlparse, pycurl ModuleNotFoundError: No module named 'urlparse'

sumit554 avatar Dec 01 '21 09:12 sumit554

already present urlparse handler.py

sumit554 avatar Dec 01 '21 09:12 sumit554

I get the exact same error when trying ghosts suggestion.

kpomeroy1979 avatar Jan 31 '23 23:01 kpomeroy1979

replace import safeurl, types, sys, re, mimetypes, glob, jsbeautifier, urlparse, pycurl, StringIO to on handler.py file

to below one

import safeurl, types, sys, re, mimetypes, glob, jsbeautifier, pycurl from urllib.parse import urlparse from io import StringIO

shishirs4 avatar Nov 13 '23 05:11 shishirs4