To reproduce the issue you can use default example:
import tornado.ioloop
import tornado.web
class MainHandler(tornado.web.RequestHandler):
def get(self):
self.write("Hellof, world!")
def make_app():
return tornado.web.Application([
(r"/", MainHandler),
], debug=True, autoreload=True)
if __name__ == "__main__":
app = make_app()
app.listen(8888)
tornado.ioloop.IOLoop.current().start()
Pycharm starts the script with/usr/bin/python3.6 /opt/pycharm-eap/helpers/pydev/pydevd.py --multiproc --qt-support=auto --client 127.0.0.1 --port 33261 --file file_name.py
If I edit the file and then save it I receive
Failed to import the site module
Traceback (most recent call last):
File "/usr/lib/python3.6/site.py", line 73, in <module>
import os
File "/usr/lib/python3.6/os.py", line 652, in <module>
from _collections_abc import MutableMapping
File "/usr/lib/python3.6/_collections_abc.py", line 288, in <module>
Iterator.register(str_iterator)
File "/usr/lib/python3.6/abc.py", line 158, in register
if issubclass(subclass, cls):
File "/usr/lib/python3.6/abc.py", line 207, in __subclasscheck__
ok = cls.__subclasshook__(subclass)
KeyboardInterrupt
This issue reproduces with python 3.6
. On python 2.7
autoreload works ok. I also tried to turn off Safe write
in pycharm, but that doesn't affect it at all.
netpedro-com and castrapel
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4