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

Type object '_io.StringIO' has no attribute 'StringIO' #29

Open
Muhammad-Qasim-Munir opened this issue Sep 29, 2019 · 5 comments
Open

Comments

@Muhammad-Qasim-Munir
Copy link

Hi, Any Solution for the below error?

ERROR:tornado.application:Uncaught exception POST /parse/ajax (127.0.0.1)
HTTPServerRequest(protocol='http', host='127.0.0.1:8008', method='POST', uri='/parse/ajax', version='HTTP/1.1', remote_ip='127.0.0.1')
Traceback (most recent call last):
  File "/Users/Local/.local/share/virtualenvs/JSParser-yC77UK_z/lib/python3.7/site-packages/tornado/web.py", line 1697, in _execute
    result = method(*self.path_args, **self.path_kwargs)
  File "handler.py", line 197, in post
    data = self.parseLinks(url, headers)
  File "handler.py", line 183, in parseLinks
    file = self.fetchURL(url, headers)
  File "handler.py", line 178, in fetchURL
    res = sc.execute(url)
  File "/Users/Local/Downloads/JSParser/safeurl.py", line 713, in execute
    response = StringIO.StringIO()
AttributeError: type object '_io.StringIO' has no attribute 'StringIO'
ERROR:tornado.access:500 POST /parse/ajax (127.0.0.1) 118.48ms

@JuWeber99
Copy link

i fixed it for me i think. should i open a pull request?

@JuWeber99
Copy link

but i dont think i have permissions... sorry if i am wrong... since i am new in contributing

@JuWeber99
Copy link

Will there be any answer or information soon? or is this project deprecated now?

@D0N-B0T
Copy link

D0N-B0T commented Dec 6, 2019

i have the same problem, i think op cant fix it.

@ghost
Copy link

ghost commented Jun 30, 2020

Hey there use only Python 2.7 to run handler.py
It turned out fine after a long struggle for me
Uninstall tornado and install pip install tornado==5.1.1

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