-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 crashes on Windows because of non-ascii chars in working directory #2081
Comments
From ccordoba12 on 2014-12-12T13:46:19Z Couple of questions:
Labels: MS-v2.3.3 Cat-Settings |
From fausto.b...@gmail.com on 2014-12-15T05:13:53Z Hello CCordoba12, Answers to your questions:
I've been happily using Spyder in my work (Windows machine) and home (Ubuntu) over the last year, simply love it, it beats other IDEs hands down, but I've gotten this issue lately. Don't know what to do, because nothing has changed on my system. This is a Windows-only issue I'm afraid. At home, where I run Ubuntu, Spyder is working beautifully as ever. Thanks for your reply. Fausto |
From ccordoba12 on 2014-12-15T09:13:08Z Thanks for the answers Fausto and I'm glad to hear you're enjoying Spyder. Could you please describe exactly what preference are you changing and post here the directory name you are using for source files? I think this problem is related to some difficulties we have to handle option values with non-ascii characters in Python 2. Our Python 3 version should work without problems though :-) |
From fausto.b...@gmail.com on 2014-12-15T10:24:26Z Hello, I observed that the crash usually happens after I try to change: Tools/Preferences/Global working directory/Startup/the following directory: and Tools/Preferences/Run/Working directory/the following directory: But those may not be the root of the actual problem, it's just my guess. I simply observed that Spyder crashed a couple of times after my trying to tweak those values. The non-ascii characters may not be the ones to blame, either. My computer, keyboard, regional language configuration, etc, etc, have always been the same since I installed Spyder for the 1st time. Why only now it began to crash? If there's any other log/config file I might send, please let me know. As for Python 3, I for one would like to keep using Python 2.7. Will that be possible with the new version? Maybe the time to move to another IDE has come Fausto |
From dan.mcc...@gmail.com on 2014-12-19T19:30:57Z I just installed spyder on windows too (normally use Linux) and here is how I solved this issue:
|
From ccordoba12 on 2015-01-01T14:30:21Z Thanks @-Dan for the solution but I think the problem is a bit different in this case. @-Fausto Spyder will continue to work with Python 2 and 3 for the foreseeable future. This is just a bug. Summary: Spyder crashes on Windows because of non-ascii chars in working directory (was: Spyder crashes on start-up.) |
From ccordoba12 on 2015-01-10T11:11:10Z I can't reproduce this error, sorry. @-Fausto: could you try to start Spyder from a terminal (i.e. cmd.exe) and post here the error you see there? Thanks Labels: -MS-v2.3.3 MS-v2.3.4 |
I have nearly the same issue (Anaconda 2.1 distribution, Windows 7 32 bit, Python 2.7.4, Spyder 2.3.1). I found a workaround: unset HOMEPATH and USERPROFILE environment variables and launch spyder. My .bat file looks like this: After looking at the code I have identified several changes to both Anaconda distribution and Spyder which make it launch fine. However, I'm not sure that my changes are compatible with other environments. I have created a patch py(w) with Tkinter GUI which does the job. I also could bundle it into exe via py2exe and compress to single self-extracting exe via WinRAR to be 100% independent of python issues. py(w) file is here: exe file is here: |
@vasily-smirnov thanks for your interest in helping us solve this problem. Your patch seems to touch parts of the Python Is it possible for you to try to come up with a solution that only touches Spyder code? Also, please open a pull request for this :-) |
Ok, thanks for the input regarding os module. |
Thanks a lot Vasily! Really waiting for it :-) El 02/03/15 a las 02:31, vasily-smirnov escribió:
|
I submitted a pull request, however because I use github for the first time, please confirm that you received it and I did it ok. |
The first change was failing in case Spyder config INI did not exist. I fixed it in the second commit |
From fausto.b...@gmail.com on 2014-12-10T12:23:51Z
Please note that reporting bugs from Spyder's help menu ("?" > "Report
issue...") will fill version details for Spyder, Python and Qt in this description for you.
What steps will reproduce the problem?
What is the expected output? What do you see instead?
Instead of Spyder I get the attached crash window (PNG file). When I close it, Windows tells me that "pythonw.exe has stopped working" and offers to check online for a solution or to close the program. What version of the product are you using? On what operating system? Windows 7-64, Python 2.7.8-64, Spyder 2.3.2
Please provide any additional information below
. The crash window advises me to run "python spyder --reset". If I do that Spyder works for a while, but minimal changes in its Preferences make it crash again.
If I try to reinstall Spyder from the installer it says that Python 2.7 couldn't be found in the Registry, but it is there because Python works in interactive mode.
Attachment: spyder.png
Original issue: http://code.google.com/p/spyderlib/issues/detail?id=2081
The text was updated successfully, but these errors were encountered: