Dear Pierre Thanks for the tip! I have implement it, and will test it the next couple of days.
-Kristine On 14 Jan., 18:41, Pierre Raybaut <[email protected]> wrote: > Please let me know if this change is working for you and I'll add this > workaround in next release. > > -Pierre > > On Jan 14, 6:41 pm, Pierre Raybaut <[email protected]> wrote:> Hi, > > > Apparently, this error means that one of your global variables has an > > empty name (i.e. ''). As you may know, these object references are > > collected by Python in a dictionary returned by the builtin function > > 'globals()'. The 'spyderlib.plugins.workspace' module (in Spyder) is > > precisely iterating over this dictionary to update the Workspace > > contents. > > > So, this is strange that one of the globals has an empty name... maybe > > this module (fibo) is doing unethical things ;-) > > > To avoid these errors, I could add a test to take into account this > > particular case -- even if I don't understand why it's necessary... > > In the meantime, you may change the line 1094 of "/usr/local/lib/ > > python2.6/dist-packages/spyder-1.0.2-py2.6.egg/spyderlib/widgets/ > > dicteditor.py" to the following: > > * original code: > > (exclude_upper and key[0].isupper()) or \ > > * modified code: > > len(key) == 0 or (exclude_upper and key[0].isupper()) or \ > > > HTH, > > Pierre > > > On Jan 14, 2:47 pm, "Kristine S. Madsen" <[email protected]> > > wrote: > > > > Hello, > > > > I have just downloaded Spyder (version 1.0.2) and I like what I see. > > > > But now I have been flooded by error messages in the interactive > > > console 3 times. The program runs fine for a while, and the errors > > > seem to come out of nowhere. Then they keep repeating every time i > > > press enter, until I restart Spyder. The latest one was: > > > --->>> reload(fibo) > > > > <module 'fibo' from 'fibo.pyc'> > > > Traceback (most recent call last): > > > File "/usr/local/lib/python2.6/dist-packages/spyder-1.0.2-py2.6.egg/ > > > spyderlib/plugins/workspace.py", line 158, in refresh > > > self.refresh_editor() > > > File "/usr/local/lib/python2.6/dist-packages/spyder-1.0.2-py2.6.egg/ > > > spyderlib/plugins/workspace.py", line 165, in refresh_editor > > > self.set_data( self.namespace ) > > > File "/usr/local/lib/python2.6/dist-packages/spyder-1.0.2-py2.6.egg/ > > > spyderlib/widgets/dicteditor.py", line 614, in set_data > > > self.model.set_data(data, self.dictfilter) > > > File "/usr/local/lib/python2.6/dist-packages/spyder-1.0.2-py2.6.egg/ > > > spyderlib/widgets/dicteditor.py", line 195, in set_data > > > data = dictfilter(data) > > > File "/usr/local/lib/python2.6/dist-packages/spyder-1.0.2-py2.6.egg/ > > > spyderlib/plugins/workspace.py", line 47, in wsfilter > > > excluded_names=excluded_names) > > > File "/usr/local/lib/python2.6/dist-packages/spyder-1.0.2-py2.6.egg/ > > > spyderlib/widgets/dicteditor.py", line 1094, in globalsfilter > > > (exclude_upper and key[0].isupper()) or \ > > > IndexError: string index out of range > > > --- > > > > Does anybody know how I can avoid these errors? > > > > I'm using Python 2.6.4, Qt 4.5.2, PyQt 4.6, QScintilla 2.4 on Linux > > > (kubuntu) > > > > Best regards, > > > Kristine > >
-- 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.
