I am using the EPD version of python and IPython. After installing some modules with easy_install, I noticed that although they can be imported, they cannot be completed. They exist on the way, but if modules (pylab, readline, math) are included, these new modules cannot.
Does anyone know what I should study to find the problem? I checked that the packages are in the same place as the other modules:
In [1]: import pylab In [2]: pylab Out[2]: <module 'pylab' from '/Library/Frameworks/Python.framework/Versions/5.0.0/lib/python2.5/site-packages/pylab.pyc'> In [3]: import BeautifulSoup In [4]: BeautifulSoup Out[4]: <module 'BeautifulSoup' from '/Library/Frameworks/Python.framework/Versions/5.0.0/lib/python2.5/site-packages/BeautifulSoup-3.1.0.1-py2.5.egg/BeautifulSoup.pyc'>
Perhaps something is not handling .eggs ? Thank.
Refresh . After a gnibbler message, I found that tab completion throws an exception on line 633 in completeter.py:
try: ret = self.matches[state].replace(magic_prefix,magic_escape) return ret except IndexError: return None
But what causes the failure ...
Update :
In [5]: from Bea<tab_here> *** COMPLETE: <Bea> (0) matches: [] state: 0
So, it just says that the hit list is an empty set: there are no matches. He still cannot find the module. I will try to figure out where matches gets the modules they are looking for when I have time.
python module tab-completion ipython enthought
physicsmichael 12 Oct '09 at 6:05 2009-10-12 06:05
source share