I'm porting over this ticket from Google Code because I'm not sure if anyone is still looking at those (this was posted January 30 2014). [And because I have the same problem...]
Spyder fails to start, connection to spyder.ini
Reported by dd.haemm...@gmail.com, Jan 30, 2014
What steps will reproduce the problem?
1. Install WinPython portably in C:\Programs
2. Double click on Spyder.exe
3. Spyder fails to start
What is the expected output? What do you see instead?
Spyder is expected to start. Instead a command prompt opens, waits a few seconds, then output appears and the prompt closes immediately afterwards.
What version of the product are you using? On what operating system?
WinPython-64bit-3.3.3.2 on Windows 7 (64-bit)
Please provide any additional information below.
This is the output after I opened the command line, directed to the \scripts directory and executed spyder.bat:
C:\Programme\WinPython-64bit-3.3.3.2\scripts>spyder.bat
Failed to write user configuration file.
Please submit a bug report.
Traceback (most recent call last):
File "C:\Programme\WinPython-64bit-3.3.3.2\python-3.3.3.amd64\lib\site-package
s\spyderlib\userconfig.py", line 195, in __save
_write_file(fname)
File "C:\Programme\WinPython-64bit-3.3.3.2\python-3.3.3.amd64\lib\site-package
s\spyderlib\userconfig.py", line 191, in _write_file with open(fname, 'w', encoding='utf-8') as configfile:FileNotFoundError: [Errno 2] No such file or directory: 'C:\Programme\WinPython-64bit-3.3.3.2\scripts\..\python-3.3.3.amd64\..\settings\.spyder2-py3\spyder.ini'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "spyder", line 2, in <module>
from spyderlib import start_app
File "C:\Programme\WinPython-64bit-3.3.3.2\python-3.3.3.amd64\lib\site-package
s\spyderlib\start_app.py", line 14, in <module>
from spyderlib.config import CONF
File "C:\Programme\WinPython-64bit-3.3.3.2\python-3.3.3.amd64\lib\site-package
s\spyderlib\config.py", line 436, in <module>
subfolder=SUBFOLDER, backup=True, raw_mode=True)
File "C:\Programme\WinPython-64bit-3.3.3.2\python-3.3.3.amd64\lib\site-package
s\spyderlib\userconfig.py", line 118, in init
old_ver = self.get_version(version)
File "C:\Programme\WinPython-64bit-3.3.3.2\python-3.3.3.amd64\lib\site-package
s\spyderlib\userconfig.py", line 145, in get_version
return self.get(self.DEFAULT_SECTION_NAME, 'version', version)
File "C:\Programme\WinPython-64bit-3.3.3.2\python-3.3.3.amd64\lib\site-package
s\spyderlib\userconfig.py", line 309, in get
self.set(section, option, default)
File "C:\Programme\WinPython-64bit-3.3.3.2\python-3.3.3.amd64\lib\site-package
s\spyderlib\userconfig.py", line 375, in set
self.save()
File "C:\Programme\WinPython-64bit-3.3.3.2\python-3.3.3.amd64\lib\site-package
s\spyderlib\userconfig.py", line 205, in save
raise(e)
File "C:\Programme\WinPython-64bit-3.3.3.2\python-3.3.3.amd64\lib\site-package
s\spyderlib\userconfig.py", line 201, in __save
_write_file(fname)
File "C:\Programme\WinPython-64bit-3.3.3.2\python-3.3.3.amd64\lib\site-package
s\spyderlib\userconfig.py", line 191, in _write_file
with open(fname, 'w', encoding='utf-8') as configfile:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Programme\WinPytho
n-64bit-3.3.3.2\scripts\..\python-3.3.3.amd64\..\settings\.spyder2-py3\sp
yder.ini'
C:\Programme\WinPython-64bit-3.3.3.2\python-3.3.3.amd64\Scripts>
Today (11 minutes ago) Delete comment #1 dave.lin...@gmail.com
I'm getting the same thing with WinPython-64bit-2.7.6.2.
Running on Win7Pro x64, installed into "c:\Program Files\WinPython-64bit-2.7.6.2"
Executing "Spyder (light).exe" also gives this same error.
[Anybody know if there's a version of WinPython that will run? Guess I'll have to go back to Python(x,y).]
Attached is a screen snapshot of the error I get when attempting to run "spyder.exe".
Apologies for the poor quality - I had to use a high-speed camera to catch it! I did my best in Photoshop to make it readable.
I found a workaround.
If you install WinPython to c:\ (the root of c:) then it works OK.
It doesn't seem to like being installed to "c:\Program Files" (the normal place in Windows for programs); I suspect it's a permissions issue.
[Tested on WinPython-64bit-2.7.6.3 with Win7Pro x64]
I ran into a similar issue after I installed Spyder as part of Python(x,y). What finally worked for me was deleting the spyder.ini file located in the .spyder2 directory and restarting Spyder (via the spyder.exe file). The spyder.ini file was regenerated automatically, and Spyder started fine. The .ini file must have been corrupted, even though it was a fresh re-install.
hi,
winpython dev has moved to winpython.github.io
Issues are so better posted at https://github.com/winpython/winpython/issues
Recent downloads are at https://sourceforge.net/projects/stonebig.u/files/
I started to put them also on the historic download site, except for 2.7 branch yet
(may do it soon, seeing your complaint)
I experienced the same issue running Windows 7 and installing WinPython-64bit-2.7.10.2. I installed as an administrator in the C:\ProgramFiles directory. As an administrator, I changed the permissions of the entire WinPython directory to include "modify" for my user. This corrected the issue.
That confirms that the problem is a permissions issue. Not knowing the WinPython install well, I am not sure if this opens up a security hole, so I am hesitant to recommend it as a solution.
Update
WinPython 3.4 suffers the same problem, doesn't seem to have a .spyder2 file in the settings directory, and broadening the permissions of ONLY the .spyder2 file doesn't seem to correct the problem in WinPython 2.7. That made me suspicious, so I experimented with ONLY broadening the "settings" directory. That worked for me while installing both WinPython 2.7 and 3.4 in Windows 7.
To be clear, I used the following installation procedure to address the problem in Windows 7:
1) Install WinPython-XXbit-Y.Y.Y.Y as a system administrator into the C:\ProgramFiles directory.
2) Right click on the C:\ProgramFiles\WinPython-XXbit-Y.Y.Y.Y\settings click "properties" and select the "Security" tab.
3) Click the "Edit" button to edit the folder's permissions as an administrator (assuming you are not already logged in as one. Enter your admin credentials.
4) Select the group/users you want to be able to execute Spyder and select the "Allow" boxes next to "Modify" and "Write".
5) "Apply" or "OK" will update the folder's permissions.
Disclaimer
Be careful using ameture corrections like these - I am not a professional system administrator. I cannot garantee this won't open security vulnerabilities.
Hope that helps!
Hi Chris,
Winpython default use is to be installed (or unzipped, or copied) in each user directory. like a 'C:\Users\JohnDo\Documents\the_winpython_for_mister_Do'
"multi-users" installations do exist, but require tweaks and trade-off.
Understood. Thanks for the prompt reply.
On Tue, Oct 20, 2015 at 2:01 PM, stonebig stonebig@users.sf.net wrote:
Related
Tickets: #104