pycharm console error - resolve_var
Answered
pycharm console gives the following error after executing each command:
Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm Community Edition 2017.3.3\helpers\pydev\_pydevd_bundle\pydevd_vars.py", line 256, in resolve_var
return resolver.get_dictionary(var)
AttributeError: 'NoneType' object has no attribute 'get_dictionary'
OS: Windows 7
Python 3.5.2
Anaconda 4.2.0 (64-bit)
IPython 6.2.0
Any help in resolving this error?
Thanks!
Please sign in to leave a comment.
Hi! Could you please provide us a command to reproduce the problem?
Having the same issue, get the error below when running any command in the console. However, the commands do seem to execute, e.g.
>>>x=1
Traceback (most recent call last):
File "/snap/pycharm-community/76/helpers/pydev/_pydevd_bundle/pydevd_vars.py", line 289, in resolve_compound_var_object_fields
return resolver.get_dictionary(var)
AttributeError: 'NoneType' object has no attribute 'get_dictionary'
>>>print(x+1)
2
Traceback (most recent call last):
File "/snap/pycharm-community/76/helpers/pydev/_pydevd_bundle/pydevd_vars.py", line 289, in resolve_compound_var_object_fields
return resolver.get_dictionary(var)
AttributeError: 'NoneType' object has no attribute 'get_dictionary'
OS: Ubnutu 16.04
Python 2.7 (venv) project interpret
PyCharm 2018.2.1 (Community Edition)
Build #PC-182.3911.33, built on August 5, 2018
JRE: 1.8.0_152-release-1248-b8 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 4.4.0-131-generic
So I was also getting this error, and I couldn't understand why. So I ended up editing my pydevd_vars.py file in the PyCharm Application.
I changed the function
To
I don't know if there are any adverse effects of this change, and it will likely be whipped out when I update PyCharm, but the issue seems to be resolved. I hope this helps someone.