magic function whos not working in ipython

Bug #177253 reported by Timmie
2
Affects Status Importance Assigned to Milestone
ipython (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: ipython

the magic function %whos always gives this strange error:

 %whos
---------------------------------------------------------------------------
<type 'exceptions.AttributeError'> Traceback (most recent call last)

myscripts/<ipython console> in <module>()

/var/lib/python-support/python2.5/IPython/iplib.py in ipmagic(self, arg_s)
    962 else:
    963 magic_args = self.var_expand(magic_args,1)
--> 964 return fn(magic_args)
    965
    966 def ipalias(self,arg_s):

/var/lib/python-support/python2.5/IPython/Magic.py in magic_whos(self, parameter_s)
    989 array_type = None
    990 else:
--> 991 array_type = Numeric.ArrayType.__name__
    992
    993 # Find all variable names and types so we can figure out column sizes

<type 'exceptions.AttributeError'>: 'module' object has no attribute 'ArrayType'

on Windows this works.

Revision history for this message
Luca Falavigna (dktrkranz) wrote :

Thank you for your bug report.
Could you please indicate which version of ipython you are using and the steps to reproduce this bug?

Changed in ipython:
status: New → Incomplete
Revision history for this message
Timmie (timmie) wrote :

Version:

ii ipython 0.8.1-1 enhanced interactive Python shell

Reproduce:
I run a script with %run myscript.py and then did %whos.

Revision history for this message
Luca Falavigna (dktrkranz) wrote :

I get "Interactive namespace is empty." but no errors.

Revision history for this message
Timmie (timmie) wrote :

I set a post to ipython users.
Maybe they can help:
Re: matplotlib, ipython and ubuntu
http://permalink.gmane.org/gmane.comp.python.matplotlib.general/11482

Revision history for this message
Timmie (timmie) wrote :

Hello,
please mark this as a solved issue. The problem was caused by conflicting versions of the Numeric modeule on my system:

matplotlib, ipython and ubuntu - http://thread.gmane.org/gmane.comp.python.matplotlib.general/11482

Revision history for this message
Timmie (timmie) wrote :

See my last comment. This has been solved and was a local issue. Nothing to do with Ubuntu and the package.

Changed in ipython:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.