Morning Pierre,
I have tried running spyder from the command lin using 'spyder -d' and I get
the following listing
Start of MainWindow constructor
Initializing...
End of MainWindow constructor
*** Start of MainWindow setup ***
Loading object inspector...
Loading outline explorer...
Loading editor...
Loading file explorer...
Loading history plugin...
Loading online help...
Loading project explorer...
Loading external console...
Loading namespace browser...
Setting up main window...
Setting up window...
*** End of MainWindow setup ***
with the same message in the IPython interpreter window.
I then did as you requested, running the script 'startup.py' from within
spyder-2.1.0beta1 with the command line arguments
'-v -i' and hitting 'F5', and in the 'startup.py' window within
spyder-2.1.0beta1 it reports,
Type "copyright", "credits" or "license" for more information.
Traceback (most recent call last):
File
"/usr/local/lib/python2.7/site-packages/spyderlib/widgets/externalshell/startup.py",
line 210, in <module>
if __is_ipython_kernel():
File
"/usr/local/lib/python2.7/site-packages/spyderlib/widgets/externalshell/startup.py",
line 23, in __is_ipython_kernel
return os.environ.get('IPYTHON_KERNEL', False)
NameError: global name 'os' is not defined
Also in the cmdtool where spyder-2.1.0beta1 was launched, the following is
after '*** End of MainWindow setup ***'
Exception in thread Thread-2:
Traceback (most recent call last):
File "/usr/lib64/python2.7/threading.py", line 530, in __bootstrap_inner
self.run()
File
"/usr/local/lib/python2.7/site-packages/spyderlib/widgets/externalshell/introspection.py",
line 60, in run
self.send_socket(shell_id, conn)
File
"/usr/local/lib/python2.7/site-packages/spyderlib/widgets/externalshell/introspection.py",
line 44, in send_socket
shell.set_introspection_socket(sock)
File
"/usr/local/lib/python2.7/site-packages/spyderlib/widgets/externalshell/pythonshell.py",
line 237, in
set_introspection_socket
self.namespacebrowser)
File
"/usr/local/lib/python2.7/site-packages/spyderlib/widgets/externalshell/monitor.py",
line 41, in
monitor_set_remote_view_settings
communicate(sock, '__set_remote_view_settings__()', settings=[settings])
File "/usr/local/lib/python2.7/site-packages/spyderlib/utils/bsdsocket.py",
line 56, in communicate
return read_packet(sock)
File "/usr/local/lib/python2.7/site-packages/spyderlib/utils/bsdsocket.py",
line 31, in read_packet
dlen, = struct.unpack("l", datalen)
error: unpack requires a string argument of length 8
I don't know if this is helpful or not.
Let me know if I you need me to try anything else,
Cheers
Peter
On Thursday, September 15, 2011, Pierre Raybaut wrote:
> 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/externalsh
> >> > e ll/startup.py", line 210, in<module>
> >> >
> >> > if __is_ipython_kernel():
> >> > File
> >> >
> >> > "/usr/local/lib/python2.7/site-packages/spyderlib/widgets/externalsh
> >> > e 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/externalsh
> >> > e ll/startup.py", line 210, in<module>
> >> >
> >> > if __is_ipython_kernel():
> >> > File
> >> >
> >> > "/usr/local/lib/python2.7/site-packages/spyderlib/widgets/externalsh
> >> > e 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.
--
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.