Attach to process failed Pycharm 2019.2. Works fine in 2019.1.4

I've downloaded Pycharm 2019.2. When I tried to attach to process to a running manage.py instance, I am getting below error. It has been working fine using 2019.1.4 version.

Unhandled exception in thread started by <function wrapper at 0x032E3DB0>
Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "C:\Python27\lib\site-packages\django\core\management\__init__.py", line 399, in execute_from_command_line
utility.execute()
File "C:\Python27\lib\site-packages\django\core\management\__init__.py", line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "C:\Python27\lib\site-packages\django\core\management\base.py", line 242, in run_from_argv
self.execute(*args, **options.__dict__)
File "C:\Python27\lib\site-packages\django\core\management\base.py", line 285, in execute
output = self.handle(*args, **options)
File "C:\Python27\lib\site-packages\django\core\management\commands\runserver.py", line 79, in handle
self.run(*args, **options)
File "C:\Python27\lib\site-packages\django\core\management\commands\runserver.py", line 88, in run
autoreload.main(self.inner_run, args, options)
File "C:\Python27\lib\site-packages\django\utils\autoreload.py", line 181, in main
reloader(wrapped_main_func, args, kwargs)
File "C:\Python27\lib\site-packages\django\utils\autoreload.py", line 148, in python_reloader
reloader_thread()
File "C:\Python27\lib\site-packages\django\utils\autoreload.py", line 129, in reloader_thread
if code_changed():
File "C:\Python27\lib\site-packages\django\utils\autoreload.py", line 129, in reloader_thread
if code_changed():
TypeError: 'NoneType' object is not callable

My environment: 

Windows 10 Pro
Python 2.7
Django 1.6.5

 

1 comment
Comment actions Permalink

Hi,

It looks like this issue: https://youtrack.jetbrains.com/issue/PY-36726

The fix should be available in 2019.2.1 final which is expected to be released any day now.

Meanwhile you can use older version as a workaround.

0

Please sign in to leave a comment.