ContinuumIO / anaconda-issues

Anaconda issue tracking
648 stars 223 forks source link

No module named 'spyderlib' #1589

Open Rietaros opened 7 years ago

Rietaros commented 7 years ago

I found this error :

Traceback (most recent call last):
  File "spyder.py", line 2, in <module>
    from spyderlib import start_app
ImportError: No module named spyderlib

while running : python spyder.py

In my Linux Anaconda virtual environment. Any idea how to fix this?

*Before I found that error, I did some update using conda update --all

thank you in advance #

ccordoba12 commented 7 years ago

The spyderlib module was renamed to spyder when Spyder 3.0 was released. So you need to verify that you have the latest Spyder version installed.

Rietaros commented 7 years ago

I try to launch it from Anaconda

ubuntu@ubuntu:~/anaconda3/bin$ python spyder.py
Traceback (most recent call last):
  File "spyder.py", line 2, in <module>
    from spyder import start_app
  File "/home/ubuntu/anaconda3/bin/spyder.py", line 2, in <module>
    from spyder import start_app
ImportError: cannot import name 'start_app'
Rietaros commented 7 years ago

I found that if I use spyder2 for python2, there's no error.

And this is spyder related library for python2 in my PC:

spyder related library for python3 im my PC:

Why there's still an error for my launcher?

ccordoba12 commented 7 years ago

Do you have two versions of Anaconda installed?

Rietaros commented 7 years ago

Nope, just Anaconda3 for my Python3 Virtual Environment. While Python2 is my default Python for Linux. I installed Spyder from Anaconda3.

But, the problem only appear when I launch Spyder3 from Anaconda launcher (which is called from spyder.py).