pycharm debug error after update

When running on debugging mode, I get the below error. The same program used to run just fine in debugging mode, but after the recent update, I am getting the error:

 

Exception in thread Thread-6:
Traceback (most recent call last):
File "/usr/lib64/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/home/minds/.pycharm_helpers/pydev/_pydevd_bundle/pydevd_comm.py", line 308, in run
def run(self):
File "/home/minds/.pycharm_helpers/pydev/_pydevd_bundle/pydevd_trace_dispatch.py", line 54, in trace_dispatch
return _trace_dispatch(py_db, frame, event, arg)
File "_pydevd_bundle\pydevd_cython.pyx", line 1033, in _pydevd_bundle.pydevd_cython.trace_dispatch
TypeError: SetTrace() got an unexpected keyword argument 'apply_to_pydevd_thread'
Exception in thread Thread-7:
Traceback (most recent call last):
File "/usr/lib64/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/home/minds/.pycharm_helpers/pydev/_pydevd_bundle/pydevd_comm.py", line 308, in run
def run(self):
File "/home/minds/.pycharm_helpers/pydev/_pydevd_bundle/pydevd_trace_dispatch.py", line 54, in trace_dispatch
return _trace_dispatch(py_db, frame, event, arg)
File "_pydevd_bundle\pydevd_cython.pyx", line 1033, in _pydevd_bundle.pydevd_cython.trace_dispatch
TypeError: SetTrace() got an unexpected keyword argument 'apply_to_pydevd_thread'

0
11 comments

Is it reproducible in a brand new project when debugging some simple code snippets? If not, then try the same code snippets in the problematic project. If the issue still doesn't reproduce, it is most likely code-specific in which case it would be great if you could share an example we can use for reproducing and investigation.

0

same problem here

0

@Stephanm

Please see my comment above.

0

i reproduced it two times as follows:

the project was made in a older version of Pycharm (2016)

when i try to convert it to a different pc with the newest version, it gives out the error.

0

Have you tried reproducing it with a new project in the latest PyCharm version?

0

the error didnt accure when i remade the project in the current version

0

Does it help if you remove .idea folder of the project you created in 2016 and then open in the recent version?

0

didnt change the outcome

0

Interesting.

I don't see how it can be related to the old PyCharm version unless the problem is code specific. Could you clarify it? Does the issue reproduce in a new project in the 2016 version?

If not, that would confirm that the problem is code specific and explain why it's reproducible in the latest version even with new project settings.

0

in the old versions everything works, only when i try to open it on a new version that it stops working

0

Watching for file changes with StatReloader
Exception in thread django-main-thread:
Traceback (most recent call last):
File "D:\python3\lib\threading.py", line 932, in _bootstrap_inner
self.run()
File "D:\python3\lib\threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "D:\python3\lib\site-packages\django\utils\autoreload.py", line 53, in wrapper
fn(*args, **kwargs)
File "D:\python3\lib\site-packages\django\core\management\commands\runserver.py", line 109, in inner_run
autoreload.raise_last_exception()
File "D:\python3\lib\site-packages\django\utils\autoreload.py", line 76, in raise_last_exception
raise _exception[1]
File "D:\python3\lib\site-packages\django\core\management\__init__.py", line 357, in execute
autoreload.check_errors(django.setup)()
File "D:\python3\lib\site-packages\django\utils\autoreload.py", line 53, in wrapper
fn(*args, **kwargs)
File "D:\python3\lib\site-packages\django\__init__.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "D:\python3\lib\site-packages\django\apps\registry.py", line 114, in populate
app_config.import_models()
File "D:\python3\lib\site-packages\django\apps\config.py", line 211, in import_models
self.models_module = import_module(models_module_name)
File "D:\python3\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "C:\Users\Gaming\Desktop\iplan3\iplanner\models.py", line 19, in <module>
class EventCoppel(models.Model):
File "C:\Users\Gaming\Desktop\iplan3\iplanner\models.py", line 20, in EventCoppel
day = models.ForeignKey(Day)
TypeError: __init__() missing 1 required positional argument: 'on_delete'

0

Please sign in to leave a comment.