Results 1 to 3 of 3

Thread: error starting Ipython on hoary

  1. #1
    Join Date
    Jan 2005
    Location
    San Diego, California, USA
    Beans
    12

    error starting Ipython on hoary

    I'm getting this error when I start ipyhon on hoary with all updates.

    Code:
    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 52, in ?
        __import__(name,glob,loc,[])
      File "/usr/lib/python2.4/site-packages/IPython/Shell.py", line 30, in ?
        from IPython.iplib import InteractiveShell
      File "/usr/lib/python2.4/site-packages/IPython/iplib.py", line 54, in ?
        from IPython.Magic import Magic,magic2python,shlex_split
      File "/usr/lib/python2.4/site-packages/IPython/Magic.py", line 24, in ?
        import os,sys,inspect,pydoc,re,tempfile,profile,pstats,shlex,pdb,bdb
    ImportError: No module named profile
    From what I googled profile is a standard module.

    Is anyone else getting this and does anyone know a fix?

    Chris

  2. #2
    Join Date
    Jan 2005
    Location
    Cambridge, U.K.
    Beans
    94
    Distro
    Ubuntu Breezy 5.10

    Re: error starting Ipython on hoary

    I got the same error and this is how I fixed it. It seems that the profiler module has been taken out of python2.4 and packaged separately. You need the python2.4-profiler
    package and I could not find a compiled version so:

    apt-get source python2.4-profiler
    cd python-profiler-2/
    fakeroot dpkg-buildpackage
    sudo dpkg -i ../python-profiler_2.4-2ubuntu1_all.deb ../python2.4-profiler_2.4-2ubuntu1_all.deb

  3. #3
    Join Date
    Jan 2005
    Location
    San Diego, California, USA
    Beans
    12

    Re: error starting Ipython on hoary

    While I was trying your fix and getting package not found errors, I refreshed synaptic and under "new in repository" there was python2.4-profiler and everything if fine.

    Thanks anyways.

    Chris

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •