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 fails to start because of problems with lockfile #2363

Closed
chepyle opened this issue Apr 25, 2015 · 8 comments
Closed

Spyder fails to start because of problems with lockfile #2363

chepyle opened this issue Apr 25, 2015 · 8 comments

Comments

@chepyle
Copy link

chepyle commented Apr 25, 2015

Starting spyder from the windows command prompt by typing spyder results in the following error:

Traceback (most recent call last):
  File "C:\Anaconda\Scripts\spyder-script.py", line 2, in <module>
    start_app.main()
  File "C:\Anaconda\lib\site-packages\spyderlib\start_app.py", line 79, in main
    if not lock.lock():
  File "C:\Anaconda\lib\site-packages\spyderlib\utils\external\lockfile.py", line 174, in lock
    kill(int(pid), 0)
UnicodeEncodeError: 'decimal' codec can't encode characters in position 0-3: invalid decimal Unicode string

Despite un/reinstalling Anaconda, the problem persists

Anaconda 2.2.0 distribution/ Win7 64bit

@Nodd
Copy link
Contributor

Nodd commented Apr 25, 2015

Try to reset spyder's preferences, you should have a shortcut for this action in the start menu.

@chepyle
Copy link
Author

chepyle commented Apr 25, 2015

Thanks for the fast response, clicking the link in the start menu doesn't
resolve the issue, and manually typing in python spyder-script.py --reset
at the command prompt results in the same error message.

On Sat, Apr 25, 2015 at 6:28 PM, Joseph Martinot-Lagarde <
notifications@github.com> wrote:

Try to reset spyder's preferences, you should have a shortcut for this
action in the start menu.


Reply to this email directly or view it on GitHub
#2363 (comment).

@Nodd
Copy link
Contributor

Nodd commented Apr 25, 2015

Strange, since this error is linked to a file stored in the spyder's preferences folder. I'm afraid I won't be able to help you any further, you'll have to wait for someone more knowledgeable....
As additional information, what python version do you use, and dou you to have Unicode characters in your username ?

@chepyle
Copy link
Author

chepyle commented Apr 25, 2015

I'm using in python 2.7.9, and my user id has no Unicode characters. Thanks again for looking into it so quickly, I'll continue to investigate on my end.

@chepyle
Copy link
Author

chepyle commented Apr 25, 2015

Ha, the preferences reset wasn't working, but deleting the spyder.lock folder in my .spyder2 user folder did the trick. Thank you for identifying the preferences folder as the source of the problem!

@chepyle chepyle closed this as completed Apr 25, 2015
@Nodd
Copy link
Contributor

Nodd commented Apr 25, 2015

Good to see that your problem is solved !

Still, not resetting .spyder2 is a bug on its own. When you ran it from the console, there was no error message ?

@SylvainCorlay SylvainCorlay changed the title Sypder fails to start Spyder fails to start Apr 25, 2015
@chepyle
Copy link
Author

chepyle commented Apr 26, 2015

Entering python spyder-script.py --reset in the cmd console gave the same error as trying to start spyder.

@ccordoba12
Copy link
Member

This is a problem I've seen several times on Windows, so we need to fix it.

I'll work on it for 2.3.5.

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

No branches or pull requests

3 participants