question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Latest version of parso 0.8 crashes Spyder 3.3.1 with python 3.5

See original GitHub issue

Issue Report Checklist

  • Searched the issues page for similar reports
  • [] Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
  • Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda)
  • Could not reproduce inside jupyter qtconsole (if console-related)
  • Tried basic troubleshooting (if a bug/error)
    • Restarted Spyder
    • Reset preferences with spyder --reset
    • Reinstalled the latest version of Anaconda
    • Tried the other applicable steps from the Troubleshooting Guide
  • Completed the Problem Description, Steps to Reproduce and Version sections below

Problem Description

Latest version of parso version 0.8.0 causes Spyder 3.3.1 to not start with Python 3.5

What steps reproduce the problem?

conda create -n spyder_test python=3.5 spyder 
conda activate spyder_test
spyder &

What is the expected output? What do you see instead?

Spyder should startup successfully instead it crashes.

Paste Traceback/Error Below (if applicable)

  File "/home/vik748/miniconda3/envs/spyder_test/lib/python3.5/site-packages/spyder/app/mainwindow.py", line 3181, in main
    mainwindow = run_spyder(app, options, args)
  File "/home/vik748/miniconda3/envs/spyder_test/lib/python3.5/site-packages/spyder/app/mainwindow.py", line 3057, in run_spyder
    main.setup()
  File "/home/vik748/miniconda3/envs/spyder_test/lib/python3.5/site-packages/spyder/app/mainwindow.py", line 896, in setup
    from spyder.plugins.ipythonconsole import IPythonConsole
  File "/home/vik748/miniconda3/envs/spyder_test/lib/python3.5/site-packages/spyder/plugins/ipythonconsole.py", line 59, in <module>
    from spyder.widgets.ipythonconsole import ClientWidget
  File "/home/vik748/miniconda3/envs/spyder_test/lib/python3.5/site-packages/spyder/widgets/ipythonconsole/__init__.py", line 12, in <module>
    from .debugging import DebuggingWidget
  File "/home/vik748/miniconda3/envs/spyder_test/lib/python3.5/site-packages/spyder/widgets/ipythonconsole/debugging.py", line 17, in <module>
    from qtconsole.rich_jupyter_widget import RichJupyterWidget
  File "/home/vik748/miniconda3/envs/spyder_test/lib/python3.5/site-packages/qtconsole/rich_jupyter_widget.py", line 14, in <module>
    from .jupyter_widget import JupyterWidget
  File "/home/vik748/miniconda3/envs/spyder_test/lib/python3.5/site-packages/qtconsole/jupyter_widget.py", line 20, in <module>
    from IPython.lib.lexers import IPythonLexer, IPython3Lexer
  File "/home/vik748/miniconda3/envs/spyder_test/lib/python3.5/site-packages/IPython/__init__.py", line 55, in <module>
    from .terminal.embed import embed
  File "/home/vik748/miniconda3/envs/spyder_test/lib/python3.5/site-packages/IPython/terminal/embed.py", line 16, in <module>
    from IPython.terminal.interactiveshell import TerminalInteractiveShell
  File "/home/vik748/miniconda3/envs/spyder_test/lib/python3.5/site-packages/IPython/terminal/interactiveshell.py", line 32, in <module>
    from .debugger import TerminalPdb, Pdb
  File "/home/vik748/miniconda3/envs/spyder_test/lib/python3.5/site-packages/IPython/terminal/debugger.py", line 6, in <module>
    from IPython.core.completer import IPCompleter
  File "/home/vik748/miniconda3/envs/spyder_test/lib/python3.5/site-packages/IPython/core/completer.py", line 146, in <module>
    import jedi
  File "/home/vik748/miniconda3/envs/spyder_test/lib/python3.5/site-packages/jedi/__init__.py", line 41, in <module>
    from jedi.api import Script, Interpreter, set_debug_function, \
  File "/home/vik748/miniconda3/envs/spyder_test/lib/python3.5/site-packages/jedi/api/__init__.py", line 15, in <module>
    import parso
  File "/home/vik748/miniconda3/envs/spyder_test/lib/python3.5/site-packages/parso/__init__.py", line 41, in <module>
    from parso.parser import ParserSyntaxError
  File "/home/vik748/miniconda3/envs/spyder_test/lib/python3.5/site-packages/parso/parser.py", line 113
    node_map: Dict[str, type] = {}
            ^
SyntaxError: invalid syntax

Versions

  • Spyder version: 3.3.1
  • Python version: 3.5.6
  • Qt version: 5.9.6
  • PyQt version: 5.9.2
  • Operating System name/version: Ubuntu 16.04
  • Parso version: 0.8.0

Workaround

Using parso 0.7 works:

conda create -n spyder_test python=3.5 spyder parso=0.7
conda activate spyder_test
spyder &

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
vik748commented, Aug 24, 2020

@rhkarls That is a valid point, I will also add an issue in their repo.

0reactions
ccordoba12commented, Jun 24, 2021

This is fixed now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

spyder-ide/public - Gitter
Hey there! I just updated Spyder from 3.3.2 to 3.3.3. As Spyder 3.3.3 also allows newer versions of PyQt5 i made some tests...
Read more >
Release notes — Anaconda documentation
Anaconda Navigator has been updated to v2.3.1. This installer uses python-3.9. This is the first release that provides a python-3.10 variant for anaconda ......
Read more >
Package List — Spack 0.20.0.dev0 documentation
This is a list of things you can install using Spack. It is automatically generated based on the packages in this Spack version....
Read more >
conda install spyder stuck on solving environment - You.com
So I removed this virtual environment and recreated it with python version 3.5 And then tried installing spyder again. But now spyder is...
Read more >
Spyder keeps crashing during load in all Anaconda environment
But now I keep getting the same error, when I make an environment and install python 2.7 and spyder in it: Traceback (most...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found