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)

Most upvoted comments

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:

  1. Use our Windows installer, which you can find here.

  2. Create a new environment with conda-forge packages. For that, please close Spyder, open the Anaconda Prompt and run the following commands there:

     conda create -n spyder-cf -c conda-forge spyder
     conda activate spyder-cf
     spyder
    

Hi @idk45g you need to follow the steps described at #7397 (comment)

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 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