Ipython raises an error when importing tables (pytables)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
IPython |
Invalid
|
Undecided
|
Fernando Perez |
Bug Description
I can import `tables` fine with the python shell, but the ipython shell raises this error:
>>> import tables
ImportError Traceback (most recent call last)
/aos/home/
/usr/local/
12442 # an import statement.
12443 #
> 12444 m = g_import(*args, **kwargs)
12445
12446 if name == 'gtk':
/usr/local/
74 # Import the user classes from the proper modules
75 from tables.exceptions import *
---> 76 from tables.file import File, openFile, copyFile
77 from tables.node import Node
78 from tables.group import Group
/usr/local/
12442 # an import statement.
12443 #
> 12444 m = g_import(*args, **kwargs)
12445
12446 if name == 'gtk':
/usr/local/
42
43 import tables.
---> 44 from tables import hdf5Extension
45 from tables import utilsExtension
46 from tables.parameters import \
/usr/local/
12434
12435 if name in sys.modules:
> 12436 return g_import(*args, **kwargs)
12437
12438 #
/aos/home/
/usr/local/
12442 # an import statement.
12443 #
> 12444 m = g_import(*args, **kwargs)
12445
12446 if name == 'gtk':
ImportError: No module named utilsExtension
> [2]: debug
> /usr/local/
12443 #
> 12444 m = g_import(*args, **kwargs)
12445
ipdb> name
'utilsExtension'
ipdb> name in sys.modules
False
ipdb> up
> /usr/local/
12435 if name in sys.modules:
> 12436 return g_import(*args, **kwargs)
12437
ipdb> name in sys.modules
False
ipdb> name
'tables'
ipdb>
This looks like a circular reference but i'm no expert.
tables is from a recent svn checkout. ipython is from the launchpad repo and the operating system is fedora8.
Thanks, don't hesitate to contact me for further details or testing.
Cheers,
On Wed, Jul 16, 2008 at 01:11:55PM -0000, David Huard wrote: lib/python2. 5/site- packages/ rpdb2.pyc in rpdb2_import_ wrapper( *args, **kwargs)
> /usr/local/
> 12442 # an import statement.
> 12443 #
> > 12444 m = g_import(*args, **kwargs)
> 12445
> 12446 if name == 'gtk':
> ImportError: No module named utilsExtension
Can you tell us how you installed ipython and pytable (the exact command
lines used to run the setup.py) and the respective paths they are
installed to (ie the module.__file__ for each of them).
I suspect a setuptools induced problem.
Cheers,
Gaël