Hi Mark,

The .ini file stores all Spyder settings. When Spyder is started for
the very first time (or if the .ini file was removed), this
configuration file is generated with default settings (with default
values hard-coded all around Spyder's code) - that's why this file is
not in the GoogleCode source repository. During the session and after
closing the application, user settings are also stored in it. On next
startup, the application read the contents of this file and apply the
stored settings.

Removing the configuration file forces Spyder to regenerate it from
scratch (resetting all application parameters to defaults).

Cheers
Pierre

Le 26 juil. 2011 à 16:59, markb <[email protected]> a écrit :

> Pierre,
>
> Just for my information, does the spyder.ini file get recreated every
> time?
> Why is there not spyder.ini file in the googlecode repository?
> Just trying to understand how it works.
>
> If it ever happens again, I will repost, but I cannot trigger it at
> all.
> Both machines are running Windows7.
>
> It seems to work fine now, and it worked fine before.
>
> Mark
>
>
> On Jul 26, 11:12 am, Pierre Raybaut <[email protected]> wrote:
>> Hi,
>>
>> Could you post the contents of the lines 429-431 of your .spyder.ini
>> file? (apparently, line 430 is triggering the error)
>>
>> By the way, judging by the symptoms, I guess that simply removing the
>> .ini should be sufficient to fix your problem. But it happened once,
>> so it could happen again and I honestly have no idea of what caused
>> this corruption of your configuration file. So, if you can reproduce
>> this problem, it would be great to be able to describe precisely the
>> steps that lead you to this situation.
>>
>> Regarding Python(x,y), I don't think it's related as the .ini file is
>> not modified in any way by Python(x,y).
>>
>> Cheers
>> Pierre
>>
>> Le 21 juil. 2011 à 06:54, Jason Sale <[email protected]> a écrit :
>>
>>> And with the debug command it's the same (I think):
>>
>>> C:\Users\uqaschwa>spyder --debug
>>> Traceback (most recent call last):
>>>  File "C:\Python26\Scripts\spyder", line 2, in <module>
>>>    from spyderlib import spyder
>>>  File "C:\Python26\lib\site-packages\spyderlib\spyder.py", line 49,
>>> in <module>
>>
>>>    from spyderlib.utils.environ import WinUserEnvDialog
>>>  File "C:\Python26\lib\site-packages\spyderlib\utils\environ.py",
>>> line 16, in <
>>> module>
>>>    from spyderlib.config import _
>>>  File "C:\Python26\lib\site-packages\spyderlib\config.py", line 317,
>>> in <module
>>
>>>    subfolder=_subfolder, backup=True, raw_mode=True)
>>>  File "C:\Python26\lib\site-packages\spyderlib\userconfig.py", line
>>> 99, in __in
>>> it__
>>>    self.load_from_ini()
>>>  File "C:\Python26\lib\site-packages\spyderlib\userconfig.py", line
>>> 131, in loa
>>> d_from_ini
>>>    self.read(self.filename())
>>>  File "C:\Python26\lib\ConfigParser.py", line 286, in read
>>>    self._read(fp, filename)
>>>  File "C:\Python26\lib\ConfigParser.py", line 510, in _read
>>>    raise e
>>> ConfigParser.ParsingError: File contains parsing errors: C:\Users
>>> \uqaschwa\.spyd
>>> er2\.spyder.ini
>>>        [line 430]: "ace', 'DejaVu Sans Mono', 'Consolas', 'Courier
>>> New', 'Bitst
>>> ream Vera Sans Mono', 'Andale Mono', 'Liberation Mono', 'Monaco',
>>> 'Courier', 'mo
>>> nospace', 'Fixed', 'Terminal']\n"
>>
>>> On Jul 21, 2:53 pm, Jason Sale <[email protected]> wrote:
>>>> Here's what happens when I type "spyder" in the command line:
>>
>>>> Microsoft Windows [Version 6.1.7601]
>>>> Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
>>
>>>> C:\Users\uqaschwa>spyder
>>>> Traceback (most recent call last):
>>>>   File "C:\Python26\Scripts\spyder", line 2, in <module>
>>>>     from spyderlib import spyder
>>>>   File "C:\Python26\lib\site-packages\spyderlib\spyder.py", line 49,
>>>> in <module>
>>
>>>>     from spyderlib.utils.environ import WinUserEnvDialog
>>>>   File "C:\Python26\lib\site-packages\spyderlib\utils\environ.py",
>>>> line 16, in <
>>>> module>
>>>>     from spyderlib.config import _
>>>>   File "C:\Python26\lib\site-packages\spyderlib\config.py", line 317,
>>>> in <module
>>
>>>>     subfolder=_subfolder, backup=True, raw_mode=True)
>>>>   File "C:\Python26\lib\site-packages\spyderlib\userconfig.py", line
>>>> 99, in __in
>>>> it__
>>>>     self.load_from_ini()
>>>>   File "C:\Python26\lib\site-packages\spyderlib\userconfig.py", line
>>>> 131, in loa
>>>> d_from_ini
>>>>     self.read(self.filename())
>>>>   File "C:\Python26\lib\ConfigParser.py", line 286, in read
>>>>     self._read(fp, filename)
>>>>   File "C:\Python26\lib\ConfigParser.py", line 510, in _read
>>>>     raise e
>>>> ConfigParser.ParsingError: File contains parsing errors: C:\Users
>>>> \uqaschwa\.spyd
>>>> er2\.spyder.ini
>>>>         [line 430]: "ace', 'DejaVu Sans Mono', 'Consolas', 'Courier
>>>> New', 'Bitst
>>>> ream Vera Sans Mono', 'Andale Mono', 'Liberation Mono', 'Monaco',
>>>> 'Courier', 'mo
>>>> nospace', 'Fixed', 'Terminal']\n"
>>
>>>> C:\Users\uqaschwa>
>>
>>>> On Jul 18, 5:41 pm, David Verelst <[email protected]> wrote:
>>
>>>>> Hi,
>>
>>>>> First, I am not a WIndows 7 user, so I might so some silly things here...
>>
>>>>> What happens if you launch spyder from the command line (command prompt, I
>>>>> think you can find it some where in the folder accessories)? If it fails 
>>>>> to
>>>>> launch, there should be a traceback to the error. Maybe you can post that
>>>>> one? Also try to the start spyder in the debug mode from the command line:
>>>>> spyder --debug
>>>>> Have you tried switching hyper threading back on?
>>
>>>>> Regards,
>>>>> David
>>
>>>>> On 18 July 2011 06:43, Jason Sale <[email protected]> wrote:
>>
>>>>>> Hi everyone,
>>>>>> I don't know if this is the right place, but I just installed Python
>>>>>> XY on my windows 7 64-bit PC, and when I click on the button to launch
>>>>>> Spyder nothing happens. I tried running spyder directly (from the
>>>>>> start menu) but again, nothing. It doesn't even come up in the task
>>>>>> manager...
>>
>>>>>> This started happening a few minutes ago. It used to work fine until I
>>>>>> switched hyperthreading off, restarted, launched python (it worked the
>>>>>> first time, so I doubt this is related but it might be worth
>>>>>> mentioning...) and then closed it again. Then it stopped working. No
>>>>>> errors, nothing. I tried restarting and totally uninstalling/
>>>>>> installing Python XY again.
>>
>>>>>> Is this a known bug?
>>
>>>>>> --
>>>>>> You received this message because you are subscribed to the Google Groups
>>>>>> "spyder" group.
>>>>>> To post to this group, send email to [email protected].
>>>>>> To unsubscribe from this group, send email to
>>>>>> [email protected].
>>>>>> For more options, visit this group at
>>>>>> http://groups.google.com/group/spyderlib?hl=en.
>>
>>> --
>>> You received this message because you are subscribed to the Google Groups 
>>> "spyder" group.
>>> To post to this group, send email to [email protected].
>>> To unsubscribe from this group, send email to 
>>> [email protected].
>>> For more options, visit this group 
>>> athttp://groups.google.com/group/spyderlib?hl=en.
>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups 
> "spyder" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/spyderlib?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"spyder" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/spyderlib?hl=en.

Reply via email to