spyder: AttributeError: 'NoneType' object has no attribute 'get_active_project_path'
Just updated to spyder 3.3.0 and experience this problem. Whenever spyder opens the issue reporter pops open saying that spyder has encountered an internal problem, clicked on details it showed
File "/usr/local/lib/python3.5/dist-packages/spyder/app/mainwindow.py", line 1961, in valid_project
if bool(self.projects.get_active_project_path()):
AttributeError: 'NoneType' object has no attribute 'get_active_project_path'
python version python3.5, OS Ubuntu 16.04.4 and spyder installed with pip3 install
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 37 (14 by maintainers)
Hey @ShengnanDing, thanks for reporting. This error is already fixed in our latest version (5.3.0).
Since itβs still not available in Anaconda, you have two options:
Use our Windows installer, which you can find here.
Create a new environment with conda-forge packages. For that, please close Spyder, open the Anaconda Prompt and run the following commands there:
i fixed it, thank you so much π
Hi @idk45g you need to follow the steps described at https://github.com/spyder-ide/spyder/issues/7397#issuecomment-1104642008
Basicallly, you need to create a new env to have the latest Spyder release installed which prevents the error you are also experiencing. After creating the env you need to be sure to launch the correct Spyder installation. For that you can use the shortcut created for Spyder in the new env (you can search for it from the start menu something like
Spyder (spyder-cf))I experience the same error of
Spyder has encountered an internal problem. The problem originated when I changed the python interpreter to a 3.10 Python version and then reverted it back to the Anaconda default.Both of the suggestions in this comment worked for me.
Thank you π
Hi, I want to report that I have the same issue of the notebook console crashing when trying to open it. I have tried to reset spyder but the problem persists.
Spyder=4.2.8 Python=3.8.13