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 spyderlib+unsubscribe@**
>>>> googlegroups.com <spyderlib%[email protected]>.
>>>> For more options, visit this group at http://groups.google.com/**
>>>> group/spyderlib?hl=en <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 spyderlib+unsubscribe@**
>>> googlegroups.com <spyderlib%[email protected]>.
>>> For more options, visit this group at http://groups.google.com/**
>>> group/spyderlib?hl=en <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.