-
Notifications
You must be signed in to change notification settings - Fork 178
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
Python 3.x support (ImportError: No module named 'StringIO') #18
Comments
May i know any fix available for this? |
Use the following: try:
from StringIO import StringIO
except ImportError:
from io import StringIO |
|
@EdOverflow Thanks a lot . it worked. |
When running python3 handler.py I get the following error: ModuleNotFoundError: No module named 'StringIO' I already added this following code in my handler.py and also i changed the urlparse to urllib.parse! Thanks for advance @EdOverflow |
Have you tried just using |
@EdOverflow
|
@kunal812eee replace |
root@local:~/JSParser$ python3 handler.py |
Thanks it worked |
Did you find any solution for this one ? |
Edit both files ( handler.py and safeurl.py) |
In python 3.7, I edit safeurl.py as following and it work
|
Hi @EdOverflow Thanks. |
I tried can any one help me in installing StingIO |
you could use StringIO, but most case BytesIO is correct solution. |
Traceback (most recent call last): Anyone help me to fix this error Im getting this type of error |
use pip3 install -r requirements.txt |
Edit safeurl.py and give |
@ShudarsanRegmi Literally what @Crj777 said. Replace "from cgi import escape" with "from html import scape" |
while running python handler.py i get this issue Traceback (most recent call last): How can i fix this? |
+1 |
<iframe+src=x+onload=prompt(1)> |
When running
python handler.py
I get the following error:I believe this is related to python 3.x
The text was updated successfully, but these errors were encountered: