Hi Matt,

Thanks for these interesting details.

Please keep in mind that the 'spyderlib/rope' directory you were
referring to (which is in Spyder's repository but not with the
distributed archive) is just a local copy of the rope library for
developers/advanced users usage only (i.e. people who are using Spyder
directly from a clone of its Mercurial repository). Regular users have
to install rope (as pyflakes and other dependencies) on their own from
the official package (http://pypi.python.org/pypi/rope), meaning that
'rope' is not included in Spyder: it is just one of its dependencies.

In other words, if the changeset you were referring to is already
included in the latest rope release (which is probably the case
because I just saw a new released dated from a few days ago), users
should benefit from it by upgrading their rope installation.

For Spyder developers, it means that we have to check if this new
v0.9.4 release is still compatible with 'spyderlib/rope_patch.py'. As
is, it is not because of the dumb version test "if rope.VERSION not in
('0.9.3', '0.9.2'):" on top of the main function, but we'll have to
investigate further than that.

But let's continue this discussion here (in the Issue that you have
just created):
http://code.google.com/p/spyderlib/issues/detail?id=1046

-Pierre

2012/5/24 Matt Anderson <[email protected]>:
> Apparently, this was an error in rope that was fixed here
>
> https://bitbucket.org/agr/rope/issue/15/crashes-with-attributeerror
>
> However, it would appear that this fix was not added to spyderlib's rope
> code (spyderlib\robe\...)
>
> Specifically, if the spyderlib\rope\base\builtins _object_attributes
> function is changed to
>
> def _object_attributes(obj, parent):
>     attributes = {}
>     for name in dir(obj):
>         if name == 'None':
>             continue
>         child = getattr(obj, name, None)
>         if child is None:
>         continue
>         pyobject = None
>         if inspect.isclass(child):
>             pyobject = BuiltinClass(child, {}, parent=parent)
>         elif inspect.isroutine(child):
>             pyobject = BuiltinFunction(builtin=child, parent=parent)
>         else:
>             pyobject = BuiltinUnknown(builtin=child)
>         attributes[name] = BuiltinName(pyobject)
>     return attributes
>
> as stated in the patch from the link...it works.
>
> On Thu, May 24, 2012 at 7:20 AM, jean-pat <[email protected]>
> wrote:
>>
>> I meet the same behavior with some libs as lxml.
>>
>> Jean-Patrick
>>
>> Le jeudi 24 mai 2012 04:23:02 UTC+2, desktop a écrit :
>>>
>>> Looks like there is no solution for this problem ?
>>>
>>> 2012/5/23 Matt Anderson <[email protected]>
>>>>
>>>> I have had this same issue with
>>>>
>>>> from matplotlib import pylab
>>>>
>>>> and possibly some other larger modules in the editor.  In the console
>>>> they work immediately.  It seems like eventually I will come back to the
>>>> editor and tab completion will work for it.  I will try to pay more
>>>> attention to what I am experiencing and report back.
>>>>
>>>>
>>>>
>>>> On Wed, May 23, 2012 at 3:13 AM, 爱勇王 <[email protected]> wrote:
>>>>>
>>>>> I'm new for spyder and pythonxy. My problem is when I'm typing code in
>>>>> spyder editor like this:
>>>>>
>>>>> import numpy as np
>>>>> from enthought.mayavi import mlab
>>>>>
>>>>> then after "np." the autocompletion box pop up, but after "mlab." it
>>>>> didn't pop up.
>>>>> Can someone give me some details solving this please?
>>>>>
>>>>> --
>>>>> 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.
>>>
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "spyder" group.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msg/spyderlib/-/bSTafrflPSUJ.
>>
>> 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.

-- 
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