JSParser icon indicating copy to clipboard operation
JSParser copied to clipboard

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

Open Muhammad-Qasim-Munir opened this issue 6 years ago • 5 comments

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

Muhammad-Qasim-Munir avatar Sep 29 '19 10:09 Muhammad-Qasim-Munir

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

JuWeber99 avatar Oct 01 '19 18:10 JuWeber99

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

JuWeber99 avatar Oct 01 '19 18:10 JuWeber99

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

JuWeber99 avatar Oct 20 '19 18:10 JuWeber99

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

D0N-B0T avatar Dec 06 '19 17:12 D0N-B0T

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

ghost avatar Jun 30 '20 18:06 ghost