Peter,

The 'os' module is imported at the top, indeed.
The fact that it raises a NameError anyway could happen if the Python
interpreter is shutting down. Is it the whole traceback?

If this is it, you may try the following to gather more informations
on this bug.
Open the 'startup.py' script within Spyder and execute it but, in the
"Run configuration" dialog box, add the '-v -i' option the Python
interpreter's arguments. This will be exactly as if you were opening a
new Python interpreter in the console (thanks to the '-i' option) but
the option '-v' will tell us more about it.

-Pierre

2011/9/14 Peter <[email protected]>:
> Carlos,
>
> I have IPython 0.10 installed.
>
> I did look at the code pointed to by the error, though it looked to me that 
> 'os' is imported at the top.
>
> Cheers
>
> Peter
>
> On Wednesday, September 14, 2011, Carlos Córdoba wrote:
>> Hi Peter,
>>
>> What version of IPython are you using?
>>
>> Cheers,
>> Carlos
>>
>> El 14/09/11 10:40, Peter escribió:
>> > Hi,
>> >
>> > I apologise if this has already been brought up. I have the following
>> > system under OS openSUSE 11.4 (x86_64), python v2.7. I have just
>> > installed Spyder-2.1.0beta1 and when I start spyder I get the following
>> > errors
>> >
>> > iPython interpreter
>> >
>> > Traceback (most recent call last):
>> >    File
>> >    "/usr/local/lib/python2.7/site-packages/spyderlib/widgets/externalshe
>> >    ll/startup.py", line 210, in<module>
>> >
>> >      if __is_ipython_kernel():
>> >    File
>> >    "/usr/local/lib/python2.7/site-packages/spyderlib/widgets/externalshe
>> >    ll/startup.py", line 23, in __is_ipython_kernel
>> >
>> >      return os.environ.get('IPYTHON_KERNEL', False)
>> >
>> > NameError: global name 'os' is not defined
>> >
>> >
>> > and if I open the other interpreter
>> >
>> > Python 2.7 (r27:82500, Aug 07 2010, 16:54:59) [GCC] on linux2
>> > Type "copyright", "credits" or "license" for more information.
>> >
>> > Traceback (most recent call last):
>> >    File
>> >    "/usr/local/lib/python2.7/site-packages/spyderlib/widgets/externalshe
>> >    ll/startup.py", line 210, in<module>
>> >
>> >      if __is_ipython_kernel():
>> >    File
>> >    "/usr/local/lib/python2.7/site-packages/spyderlib/widgets/externalshe
>> >    ll/startup.py", line 23, in __is_ipython_kernel
>> >
>> >      return os.environ.get('IPYTHON_KERNEL', False)
>> >
>> > NameError: global name 'os' is not defined
>> >
>> > Is there anything I can try to get around this?
>> >
>> > Cheers
>> >
>> > Peter
>
>
> --
> Peter M. Bloomfield
> Physicist,
> PET Centre,
> Centre for Addiction and Mental Health,
> 250 College St.,
> Toronto, Ontario,
> Canada M5T 1R8
> Tel: 416 535 8501 Ext. 4243
>
> --
> 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