spyder: Getting "Spyder already running" warning when it's not

Description of your problem

On windows 7 I get a

What steps will reproduce the problem?

  1. Open sypder from cmd (spyder.bat)
  2. Close (pressing X in rop right)
  3. Attempt to open spyder again (cmd spyder.exe or .bat)

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

I expect spyder to open I get this (which does work if I open a new instance)

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

Please provide any additional information below

This is not a show-stopping issue. It seems as though the lockfile mechanism isn’t being properly released. I’m not sure how to “wipe the slate”.

Versions and main components

  • Spyder Version: 2.5.3.2
  • Python Version: 2.7.10
  • Operating system: Windows 7

Dependencies

Please go to the menu entry Help > Optional Dependencies (or Help > Dependencies), press the button Copy to clipboard and paste the contents below: IPython >=1.0 : 2.4.1 (OK) jedi >=0.8.1 : 0.9.0 (OK) matplotlib >=1.0: 1.4.3 (OK) pandas >=0.13.1 : 0.16.2 (OK) pep8 >=0.6 : 1.6.2 (OK) pyflakes >=0.5.0: 0.9.2 (OK) pygments >=1.6 : 2.0.2 (OK) pylint >=0.25 : 1.4.3 (OK) rope >=0.9.2 : 0.10.2 (OK) sphinx >=0.6.6 : 1.3.2 (OK) sympy >=0.7.3 : 0.7.6.1 (OK) zmq >=2.1.11 : 14.7.0 (OK)

Many thanks for a great application.

About this issue

  • Original URL
  • State: closed
  • Created 11 years ago
  • Comments: 24 (6 by maintainers)

Most upvoted comments

You need to look for a directory called .spyder2 in your Users\<your account> directory, the find a file called spyder.lock and remove it.

Just ran into this issue with Spyder 3. The directory with the spyder.lock file now seems to be <home dir>/.config/spyder[-py3].

Same problem, Spyder 5.1.5, Ubuntu Linux 5.10.81.1-microsoft-standard-WSL2 x86_64

Found spyder.lock file in ~/.config/spyder-py3 Removed the lock file and it started working again.

run command spyder - - reset on anaconda prompt

@feresm, open a terminal and run

cd ~/.spyder

or

cd ~/.spyder-py3

in case your running Spyder with Python 3, then

rm -f spyder.lock

and finally start Spyder again.

I just had this problem after updating spyder. I deleted .spyder2-py3 in my user directory and this fixed my problem.

As the milestone clearly states, this was fixed in Spyder 3.1, so please update.

Please update Spyder to 2.3.8 and try again.