-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"ValueError: malformed node or string" when evaluating code that contains Path elements #5636
Comments
What code did you evaluate in the IPython console before getting this error? |
We have seen this error before, but we need a clear and reproducible way to reproduce it to fix it. So please help us with that. |
Okay, after some more digging, it seems to be a problem with using from path import Path
x = Path('blah-blah-blah') then I get the following dialog from spyder:
which contains the error information above. Any time afterwards, if I enter something into the iPython console I get the same dialog. If I restart the iPython kernel, this behavior stops, but if I run the script (or code) again the dialog returns. |
Ok, great!! Thanks a lot for finding an easy way to reproduce this problem. |
Happy help. Hope it can be sorted out! |
Yep, having a way to reproduce it helps a lot! |
@dalthviz, please take a look at this one. |
Description
What steps will reproduce the problem?
What is the expected output? What do you see instead?
Please provide any additional information below
File "/usr/local/lib/python2.7/dist-packages/qtconsole/base_frontend_mixin.py", line 163, in _dispatch
handler(msg)
File "/usr/local/lib/python2.7/dist-packages/spyder/widgets/ipythonconsole/namespacebrowser.py", line 220, in _handle_execute_reply
self.handle_exec_method(msg)
File "/usr/local/lib/python2.7/dist-packages/spyder/widgets/ipythonconsole/shell.py", line 351, in handle_exec_method
view = ast.literal_eval(literal)
File "/usr/lib/python2.7/ast.py", line 80, in literal_eval
return _convert(node_or_string)
File "/usr/lib/python2.7/ast.py", line 63, in _convert
in zip(node.keys, node.values))
File "/usr/lib/python2.7/ast.py", line 62, in
return dict((_convert(k), _convert(v)) for k, v
File "/usr/lib/python2.7/ast.py", line 63, in _convert
in zip(node.keys, node.values))
File "/usr/lib/python2.7/ast.py", line 62, in
return dict((_convert(k), _convert(v)) for k, v
File "/usr/lib/python2.7/ast.py", line 79, in _convert
raise ValueError('malformed string')
ValueError: malformed string
Version and main components
Dependencies
The text was updated successfully, but these errors were encountered: