[Ipython-tickets] [IPython] #170: AttributeError: 'module' object has no attribute 'pydb'
IPython
ipython-tickets@scipy....
Tue Jun 12 08:47:18 CDT 2007
#170: AttributeError: 'module' object has no attribute 'pydb'
---------------------+------------------------------------------------------
Reporter: jalanb | Owner: fperez
Type: defect | Status: new
Priority: low | Milestone:
Component: ipython | Version:
Severity: minor | Keywords:
---------------------+------------------------------------------------------
After installation of IPython on a Redhat 8 system, with Python 2.4, on
the first run IPython shows a traceback with the title as the cause.
Workaround: edit /usr/lib/python2.4/site-packages/IPython/Debugger.py, and
catch the AttributeError. Diff of my change:
60a61,62
> except AttributeError:
> pass
The machine:
[root@ie-serv-1 root]# cat /etc/issue
Red Hat Linux release 8.0 (Psyche)
Kernel \r on an \m
[root@ie-serv-1 root]# python
Python 2.4 (#1, Feb 16 2005, 18:27:12)
[GCC 3.2 20020903 (Red Hat Linux 8.0 3.2-7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
Steps I took (as root):
[root@ie-serv-1 root]# wget
http://ipython.scipy.org/dist/ipython-0.8.1.tar.gz
[root@ie-serv-1 root]# tar -zxf ipython-0.8.1.tar.gz
[root@ie-serv-1 root]# cd ipython-0.8.1
[root@ie-serv-1 root]# python setup.py build
[root@ie-serv-1 root]# python setup.py install
[root@ie-serv-1 root]# ipython
Traceback (most recent call last):
File "/usr/bin/ipython", line 26, in ?
import IPython
File "/usr/lib/python2.4/site-packages/IPython/__init__.py", line 60, in
?
__import__(name,glob,loc,[])
File "/usr/lib/python2.4/site-packages/IPython/ultraTB.py", line 93, in
?
from IPython import Debugger, PyColorize
File "/usr/lib/python2.4/site-packages/IPython/Debugger.py", line 54, in
?
if hasattr(pydb.pydb, "runl") and pydb.version>'1.17':
AttributeError: 'module' object has no attribute 'pydb'
--
Ticket URL: <http://projects.scipy.org/ipython/ipython/ticket/170>
IPython <http://ipython.scipy.org>
The IPython interactive Python system
More information about the Ipython-tickets
mailing list