Fehler Beheber avatar

[Python+Spyder IDE] Fehler beim Starten ValueError: malformed node or string: {}

fehlerbeheber

Published: 25 May 2021 › Updated: 25 May 2021[Python+Spyder IDE] Fehler beim Starten ValueError: malformed node or string: {}

[Python+Spyder IDE] Fehler beim Starten ValueError: malformed node or string: {}

Beim Starten von Spyder tritt bei mir immer eine nervige Fehlermeldung auf:

Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/qtconsole/base_frontend_mixin.py", line 138, in _dispatch
handler(msg)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/spyder/plugins/ipythonconsole/widgets/namespacebrowser.py", line 231, in _handle_execute_reply
self.handle_exec_method(msg)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/spyder/plugins/ipythonconsole/widgets/shell.py", line 395, in handle_exec_method
view = ast.literal_eval(literal)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ast.py", line 91, in literal_eval
return _convert(node_or_string)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ast.py", line 90, in _convert
return _convert_signed_num(node)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ast.py", line 63, in _convert_signed_num
return _convert_num(node)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ast.py", line 55, in _convert_num
raise ValueError('malformed node or string: ' + repr(node))
ValueError: malformed node or string: {}

Das Problem liegt an dieser Quellcode-Zeile:
/site-packages/spyder/plugins/ipythonconsole/widgets/shell.py

                    view = ast.literal_eval(literal)

Und kann somit behoben werden:

                   if literal:
                      view = ast.literal_eval(literal)
                   else:
                       view = None

und Weiter unten genau das gleiche Problem:

                    literal = ast.literal_eval(data['text/plain'])
                    if literal:
                        properties = ast.literal_eval(literal)
                    else:
                        properties = None

Endlich kann ich Spyder aufmachen ohne von Fehlermeldungen angesprungen zu werden.

Leave [Python+Spyder IDE] Fehler beim Starten ValueError: malformed node or string: {} to:

Written by

Ich behebe Fehler in Software.

Read more #proofofbrain posts


Best Posts From Fehler Beheber

We have not curated any of fehlerbeheber's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From Fehler Beheber