Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spyder Won't Launch #3138

Closed
jdweaver opened this issue Apr 27, 2016 · 82 comments
Closed

Spyder Won't Launch #3138

jdweaver opened this issue Apr 27, 2016 · 82 comments

Comments

@jdweaver
Copy link

Description of your problem

What steps will reproduce the problem?

  1. Open Anaconda Launcher
  2. Find Syper, "click" Run
  3. executable script window appears
  4. Sypder doesn't launch

What is the expected output? What do you see instead?
Expect to see Spyder launch screen and for spyder to load

Please provide any additional information below
ran the following with "show console" and "reset" command, get the same error (see below).

image

Versions and main components

  • Spyder Version: 2.3.8
  • Python Version: 2.7.11
  • Operating system: windows 10 64big

Dependencies

Anaconda Stack

Please go to the menu entry Help > Optional Dependencies (or
Help > Dependencies), press the button Copy to clipboard
and paste the contents below:

@ccordoba12
Copy link
Member

Could you run in a terminal

spyder --reset

and try again?

@mtkilic
Copy link

mtkilic commented Apr 27, 2016

I have the same issue. I open Anaconda Launcher and right next to Spyder, update button shown. After I updated. And try to click spyder to Launch nothing comes up. I have version 2.3.8. I am using Mac

@mtkilic
Copy link

mtkilic commented Apr 27, 2016

@ccordoba12 @jdweaver Thank you spyder --reset worked!

First reset your laptop/PC, after that open terminal and type spyder --reset

@jdweaver
Copy link
Author

Same issue :(

Sent from Outlook Mobilehttps://aka.ms/qtex0l

On Wed, Apr 27, 2016 at 8:22 AM -0700, "Carlos Cordoba" <notifications@github.commailto:notifications@github.com> wrote:

Could you run in a terminal

spyder --reset

and try again?

You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHubhttps://github.com//issues/3138#issuecomment-215119078

@mtkilic
Copy link

mtkilic commented Apr 27, 2016

@jdweaver make sure you updated to latest version first. Then reset your PC, before opening Anaconda or Spyder, open your terminal and dospyder --reset After that try to open spyder. It should work, because it looks like we had exact same issue. Good luck!

@ccordoba12
Copy link
Member

@jdweaver, could you upload somewhere (e.g. as a gist) or send me directly (my email is under my Github user page) this file

 C:\Users\jdweaver\.spyder2\spyder.ini

?

That would really help me to debug and solve this problem :-)

@Nodd
Copy link
Contributor

Nodd commented Apr 28, 2016

This is a recurring problem. We should catch the exception, warn the user and asks if he wants to reset the settings and restart spyder. I thinnk that it should be done even if we find the root of the problem, because spyder should be able to start even if the .ini is corrupted.

@jdweaver
Copy link
Author

@ccordoba12
I was able run spyder --reset but it still isn't resolving the issue.

I'm also not seeing the spyder.ini file, it looks like it might gotten removed from the spyder reset...
I'll send you the other file it might be

image

@jdweaver
Copy link
Author

@mtkilic was updated...i had to re-update my BIOS yesterday and now the reset worked but I'm still getting the same behavior. I click on the Spyder app directly or through the Anaconda Navigator and it looks like Spyder will load, but then it doesn't sad panda

@jdweaver
Copy link
Author

@ccordoba12 So I think I figured it out. There was an issue where some additional string got added to my spyder.ini file.
image

I followed the path: C:\Users.spyder2\spyder.ini and edited the file. I removed the end string "curso" and then was able to launch Spyder.

Not sure how that string got in the .ini file...but it seems to be working now.

@ccordoba12
Copy link
Member

@jdweaver, glad to know you solved the problem :-)

@KeithBrodie
Copy link

Just in case it helps, I installed clean python 3.5 from python.org on Windows 10, then pip installed spyder. It failed silently. I then pip installed PyQT5, uninstalled and reinstalled spyder - and it works.

@Apurva018
Copy link

Spyder doesn't launch what to do

@ab10io
Copy link

ab10io commented Aug 29, 2017

Try giving firewall access to python and check environment variables.

@SagarPohekar
Copy link

SagarPohekar commented Sep 12, 2017

Guys,
I have observed the same problem:
Solution: Uninstall PyQt and then uninstall the SIP package
Reinstall above packages but in following sequence:
1 SIP
2 PyQt4/5
Try to launch Spyder, it works
I have tested this on Python 3.5.2 and 3.6.2

@MBiagio
Copy link

MBiagio commented Nov 18, 2017

I have the same problem. Spyder looks like it is going to launch and then doesn't. I tried spyder --reset, but it does nothing. This was a newly re-installed version after it didn't work the first time either.

Unfortunately I have no idea how to do what you said Sagar?

@axil
Copy link

axil commented Nov 20, 2017

@MBiagio I had the same problem, pip install pyqt5 helped (windows 7, python 3.6).

@MBiagio
Copy link

MBiagio commented Nov 20, 2017

I don't know what pip install is, or what pyqt5 is. But I tried running spyder from the terminal and it worked.

@VT-SCM
Copy link

VT-SCM commented Nov 30, 2017

@axil this worked for me.

@ccordoba12
Copy link
Member

This is going to be fixed in our 3.2.5 version. Thanks for your patience.

@salmanozi
Copy link

I downloaded anaconda recently and since then I couldn't lunch spyder, though I have an existing spyder in winpython before downloading anaconda as a result of the difficulty I am experiencing the winpython was uninstalled yet when I attempt opening spyder the old one comes up and prevent me from accessing new/fresh console, below is the error or respond that comes up when try to open from the only existing spyder page

File "C:\Anaconda\lib\site-packages\spyder\plugins\editor.py", line 1711, in new
text, enc = encoding.read(self.TEMPLATE_PATH)
File "C:\Anaconda\lib\site-packages\spyder\utils\encoding.py", line 243, in read
text, encoding = decode( open(filename, 'rb').read() )
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\suleiman abdullahi\.spyder-py3\template.py'

@obluesky
Copy link

obluesky commented Jan 3, 2018

I have no clue what pip install pyqt5 is but it solved my problem. Thanx @axil !

@ayofolaposy
Copy link

I had the same problem with Spyder 3.2.3 and upgraded to 3.2.6 but nothing worked. I ran pip install pyqt5 from the terminal and then launched Spyder from Anaconda and it worked! Thanks everyone for sharing!

@Pechi77
Copy link

Pechi77 commented Mar 9, 2018

I have the same issue, If I try spyder --reset I get this error C:\Users\PA5027251>spyder --reset Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Scripts\spyder-script.py", line 3, in <module> import spyder.app.start File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\app\start.py", line 7, in <module> import socket File "C:\ProgramData\Anaconda3\lib\socket.py", line 49, in <module> import _socket ImportError: DLL load failed: Access is denied. pls help

@peopzen
Copy link

peopzen commented Mar 19, 2018

I think my spyder 3.2.7 worked fine before, but it refuses to start today. so I upgrade it to 3.2.8, it still doesn't start. It shows "start circle", and then nothing happens. I run (Win7, py3.5.4) "spyder3.exe --reset", but doesn't help.
How to fix the issue? Where to find log information to identify issue? Thanks.

@anitakh1
Copy link

spyder is not opening from anaconda prompt. i tried spyder --reset but it gave this error
""
C:\Users\ND_Londhe\Anaconda2\lib\site-packages\dicom_init.py:53: UserWarning:
This code is using an older version of pydicom, which is no longer
maintained as of Jan 2017. You can access the new pydicom features and API
by installing pydicom from PyPI.
See 'Transitioning to pydicom 1.x' section at pydicom.readthedocs.org
for more information.

warnings.warn(msg)
Traceback (most recent call last):
File "C:\Users\ND_Londhe\Anaconda2\Scripts\spyder-script.py", line 6, in
from spyder.app.start import main
File "C:\Users\ND_Londhe\Anaconda2\lib\site-packages\spyder\app\start.py", line 27, in
from spyder.utils.external import lockfile
File "C:\Users\ND_Londhe\Anaconda2\lib\site-packages\spyder\utils\external\lockfile.py", line 22, in **_
import psutil
File "C:\Users\ND_Londhe\AppData\Roaming\Python\Python27\site-packages\psutil_init_.py", line 137, in
from . import _pswindows as _psplatform
File "C:\Users\ND_Londhe\AppData\Roaming\Python\Python27\site-packages\psutil_pswindows.py", line 16, in
from . import _psutil_windows as cext
ImportError: DLL load failed: %1 is not a valid Win32 application.""

i am running two environments on windows 10. writing spyder on prompt gives me this error.
""
C:\Users\ND_Londhe\Anaconda2\lib\site-packages\dicom_init_.py:53: UserWarning:
This code is using an older version of pydicom, which is no longer
maintained as of Jan 2017. You can access the new pydicom features and API
by installing pydicom from PyPI.
See 'Transitioning to pydicom 1.x' section at pydicom.readthedocs.org
for more information.
warnings.warn(msg)
Traceback (most recent call last):
File "C:\Users\ND_Londhe\Anaconda2\Scripts\spyder-script.py", line 6, in
from spyder.app.start import main
File "C:\Users\ND_Londhe\Anaconda2\lib\site-packages\spyder\app\start.py", line 27, in
from spyder.utils.external import lockfile
File "C:\Users\ND_Londhe\Anaconda2\lib\site-packages\spyder\utils\external\lockfile.py", line 22, in
import psutil
File "C:\Users\ND_Londhe\AppData\Roaming\Python\Python27\site-packages\psutil_init_.py", line 137, in
from . import _pswindows as _psplatform
File "C:\Users\ND_Londhe\AppData\Roaming\Python\Python27\site-packages\psutil_pswindows.py", line 16, in
from . import _psutil_windows as cext
ImportError: DLL load failed: %1 is not a valid Win32 application.""

i followed many posts but my problem is not getting rectified. i can't reinstall anaconda as i have many things installed on this. pl help me.

@anitakh1
Copy link

moreover i wrote >>conda install -f spyder. error is
""
Solving environment: failed
NotWritableError: The current user does not have write permissions to a required path.
path: C:\C:\Users\ND_Londhe\Anaconda2\pkgs\urls.txt""

@ccordoba12
Copy link
Member

It seems you corrupted your installation somehow. I think you have no other option but to reinstall.

@SHIVAMGUPTA24
Copy link

screenshot from 2018-04-17 20-12-43
screenshot from 2018-04-17 20-12-29
dont know what happened .

@ArunSha
Copy link

ArunSha commented Aug 4, 2018

@ccordoba12 tried reinstalling anaconda, even tried older version. spyder just won't launch.

@ccordoba12
Copy link
Member

@ArunSha, please open an Anaconda Prompt, run there

conda install qt=5.6* pyqt=5.6* sip=4.18*

and try again.

@jayrawatrj
Copy link

jayrawatrj commented Aug 5, 2018 via email

@ArunSha
Copy link

ArunSha commented Aug 5, 2018

Okay I am a beginner in Machine Learning and this software is already taking out all the fun out of it. So my spyder was not working and i tried reinstalling.

However now Anaconda Navigator doesnt launch. This is the error i get when I run it

Traceback (most recent call last):
File "C:\Anaconda\Scripts\anaconda-navigator-script.py", line 6, in
from anaconda_navigator.app.main import main
File "C:\Anaconda\lib\site-packages\anaconda_navigator\app\main.py", line 22,
in
from anaconda_navigator.utils.conda import is_conda_available
File "C:\Anaconda\lib\site-packages\anaconda_navigator\utils_init_.py", lin
e 15, in
from qtpy.QtGui import QIcon
File "C:\Anaconda\lib\site-packages\qtpy\QtGui.py", line 21, in
from PyQt5.QtGui import *
ImportError: DLL load failed: The specified procedure could not be found.

Could someone please help me figure out what is wrong ? Please

@Samuel-S-Ampofo
Copy link

spyder --reset

Didn't work on my Linux

instead

uninstall and re insatlled spyder in anaconda and it works.

@inlee12
Copy link

inlee12 commented Oct 1, 2018

spyder does not launch with anaconda navigator but launch when I use in command at terminal mode

(base) C:\Users\islee>spyder
Warning: QT_DEVICE_PIXEL_RATIO is deprecated. Instead use:
QT_AUTO_SCREEN_SCALE_FACTOR to enable platform plugin controlled per-screen factors.
QT_SCREEN_SCALE_FACTORS to set per-screen factors.
QT_SCALE_FACTOR to set the application global scale factor.

@jingweimo
Copy link

@axil : Very neat solution! Works for me!!

@krimobe
Copy link

krimobe commented Nov 23, 2018

I have a similar issue.
Windows 7 x84
4 GB Ram
CPU: Intel (R) Core i5 2.5GHz
Python 3.7.0
conda 4.5.11
Installer: Anaconda3-5.3.1-Windows-x86

image

I have tried reinstalling Anaconda several times.
I have run spyder --reset.
I have removed spyder.lock files/folders.
I have downgraded the packages qt,sip,pyqt to qt-5.62,sip-4.18.1,pyqt-5.6.0
I have tried conda install -f zeromq pyzmq
I have tried changing the socket.py file in the zmq package
From previous posts it seems that it might be my anti-virus, however I am working on a company computer which runs McAfee anti-virus which I do not have the possibility to disable.
So is there a work around?

Kind regards
Kristian

@SHIVAMGUPTA24
Copy link

SHIVAMGUPTA24 commented Dec 16, 2018 via email

@cankadir
Copy link

cankadir commented Jan 4, 2019

Downgrading Spyder worked for me.

@thejipsess
Copy link

For me the issue was due to my keras installation as I installed the required keras-gpu packages before installing Spyder, to solve: create a fresh environment, install spyder and finally install keras as follows within the Anaconda Prompt:

  1. conda create -n environmentName
  2. activate environmentName
  3. WITHIN THE ANACONDA NAVIGATOR: install spyder (I guess 'conda install -c anaconda spyder' in the Prompt should work as well)
  4. conda install -c conda-forge keras-gpu (or if you don't have CUDA and want to use cpu for calculations use 'conda install -c conda-forge keras' instead

I recommend testing the setup before adding additional packages and if adding them, ensure to close spyder and anaconda before doing so

@priyanka176
Copy link

priyanka176 commented Jan 30, 2019

@ArunSha, please open an Anaconda Prompt, run there

conda install qt=5.6* pyqt=5.6* sip=4.18*

and try again.

This work for me.Thanks.

@Yasine001
Copy link

I had the same issue, but it worked for after reseting :
spyder --reset

@charanjitpabla
Copy link

Hello,

I am getting this message when opening spyder in linux terminal:

Spyder is already running. If you want to open a new
instance, please pass to it the --new-instance option

What do I do to fix this?

@kouassives
Copy link

I have a similar issue:
double click
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Anaconda3 (64-bit)\Reset Spyder Settings (memoire).lnk

@cecidip
Copy link

cecidip commented Jul 17, 2019

@ccordoba12 if i do spyder --reset it tells:
/Users/cecidip/anaconda3/bin/pythonw: line 3: /Users/cecidip/anaconda3/python.app/Contents/MacOS/python: No such file or directory
??
I had spyder 3.3.5 and i did "conda update spyder" then i went to anaconda to launch, it didnt. But i had the option to update it.... even if i just did, so i did "update" but it actually downdated it back to 3.3.5 ... and still wont launch.
Also, when i close anaconda it says that spyder's still runing, which is not. I have rebooted the computer, nothing changed.
Please dont tell me i have to uninstall and install anaconda again, its not possible that everytime i want to update something i end up re-installing anaconda, its the 3rd time this month.

@ccordoba12
Copy link
Member

@cecidip, please run

conda install -f python.app

That should fix your problem.

@cecidip
Copy link

cecidip commented Jul 17, 2019

conda install -f python.app did it, thanks !

@dk-raghu
Copy link

Experience installing Anaconda

  • I did several trials of install and un-install Anaconda (I was just interested in launching Spyder) as a novice user of Python
  • Browsed internet over and over again
  • Used "conda" and "pip" several times
  • Finally I un-installed the anti-virus software on my Laptop
  • Un-installed Anaconda and re-installed it again and then launced Spyder FINALLY !!!!
  • Works now for me

@ccordoba12
Copy link
Member

Finally I un-installed the anti-virus software on my Laptop

This was (most probably) the critical step.

@Asgharzade
Copy link

@ccordoba12 @jdweaver Thank you spyder --reset worked!

First reset your laptop/PC, after that open terminal and type spyder --reset

Thanks dude! I was about to lose my mind on this Spyder issue. You made my day!

@rafaeldoug
Copy link

Start Menu/Anaconda*/Reset Spyder Settings can works.

@mharis0014
Copy link

@ArunSha, please open an Anaconda Prompt, run there

conda install qt=5.6* pyqt=5.6* sip=4.18*

and try again.

My spyder was not launching. i uninstalled spyder tried this command on anaconda prompt and reinstalled spyder. Now spyder launches for 4-5 seconds and then ends. This is happening. please solve my problem i am a last year student and i have to do a lot of work on spyder

@ghost
Copy link

ghost commented Apr 21, 2020

I am also facing this error

Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\lib\site-packages\qtpy_init_.py", line 204, in
from PySide import version as PYSIDE_VERSION # analysis:ignore
ModuleNotFoundError: No module named 'PySide'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\Scripts\spyder-script.py", line 10, in
sys.exit(main())
File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\app\start.py", line 201, in main
from spyder.app import mainwindow
File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\app\mainwindow.py", line 52, in
requirements.check_qt()
File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\requirements.py", line 41, in check_qt
import qtpy
File "C:\ProgramData\Anaconda3\lib\site-packages\qtpy_init_.py", line 210, in
raise PythonQtError('No Qt bindings could be found')
qtpy.PythonQtError: No Qt bindings could be found

@dssangan

This comment has been minimized.

@gohkokhan

This comment has been minimized.

@vamsichaitanya1202

This comment has been minimized.

@purang2
Copy link

purang2 commented Jun 2, 2021

Could you run in a terminal

spyder --reset

and try again?

you genius.

@hbshrestha

This comment has been minimized.

@4c656554
Copy link

4c656554 commented Dec 7, 2022

I had this issue after copying a huge amount of text into the IPython console, so much so that I had to force close Spyder.

E.g. [1]: a = "<huge amount of .. text>"

To fix I had to find the history.py and delete the a = "<huge amount of .. text>" line.

On windows located: C:/Users/<Username>/.spyder-py3/history.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests