Problems with dict in debugger: Unable to display children:Error resolving variables

Answered

Hi!

Since my last update of PyCharm to version 2018.2.4 (Community Edition) I'm having a problem with the debugger. It concerns variables of type dict. When I try to show the content of the variable in the debugger, instead of the expected list of keys-values I get this error:

Unable to display children:Error resolving variables Traceback (most recent call last):

File "C:\Program Files\JetBrains\PyCharm Community Edition 2018.2.4\helpers\pydev\_pydevd_bundle\pydevd_comm.py", line 1048, in do_it

    xml.write(pydevd_xml.var_to_xml(val, k, evaluate_full_value=evaluate_full_value))

UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 13: ordinal not in range(128)

The dict contains unicode values, both in the keys and the values. Do you know what's happening and how could I check the dict's value as I used to do? 

Thanks a lot!

6 comments
Comment actions Permalink

Hi Iarias01,

Seems to be https://youtrack.jetbrains.com/issue/PY-31680, please vote for it and follow for updates.

1
Comment actions Permalink

Started seeing this in 2019.3 after the upgrade to 193.5233.109This is using pytorch, and what I am trying to display here is class members. I've verified that the issue exists in Pytorch versions 1.0, 1.1 and 1.3 

3
Comment actions Permalink

I also have the same error with @Evgenizer, pls check. 

1

Please sign in to leave a comment.