in Code

IPython 0.12 packages for Debian 6.0 Squeeze

IPython
The other day a coworker pointed out some cool new features that we didn’t have available to us with IPython 0.10 from the stable repository. The only problem was debian’s maintainer hasn’t updated the sources since 0.11 for us to backport some of those features very easily. Since we spend a good chunk of time using IPython at Orvant we decided to go ahead and update the sources ourselves. But we figured other python people using debian stable might be tempted by those features as well. So what better to do than pass it on? Anyways, here is what you’ll need.

IPython Website 

Debian 6.0 (Squeeze)

Source Package

You will also need to configure backports since ipython-parallel and ipython-qtconsole depend on zeromq.
http://backports.debian.org/

After you have configured backports you’ll need to install python-zmq which isn’t available in that repository. I have backported that too after a little cython/pyrex fun:

Debian 6.0 (Squeeze) AMD64

Debian 6.0 (Squeeze) i386

http://packages.debian.org/sid/python-zmq

Note: I couldn’t get notebook working with the version of python-tornado available in squeeze. So I kind of just ignored it since I wouldn’t really use something like that anyways. It might work if you install a newer version (2.1.0) from unstable but I suspect in the end that the package will get split out as ipython-notebook whenever the normal maintainer updates it. (due to dependencies among other things)

  • jörn weinberg

    Hi Mike,
    thanks for the debs. For ipython-qtconsole I had to put a link to /usr/share/pyshared/IPython/frontend/qt/ in /usr/lib/python2.6/dist-packages/IPython/frontend to get it working.

  • http://twitter.com/digitalvectorz Johnathon Mlady

    Installed python-zmq(-dbg) i386 on my machine. tried import zmq and got the following error.

    $ python
    Python 2.6.6 (r266:84292, Dec 27 2010, 00:02:40)
    [GCC 4.4.5] on linux2
    Type “help”, “copyright”, “credits” or “license” for more information.
    >>> import zmq
    Traceback (most recent call last):
    File “”, line 1, in
    File “/usr/lib/python2.6/dist-packages/zmq/__init__.py”, line 35, in
    from zmq.utils import initthreads # initialize threads
    ImportError: /usr/lib/python2.6/dist-packages/zmq/utils/initthreads.so: wrong ELF class: ELFCLASS64
    >>>

    seems to have a 64 bit library that doesn’t like my 32 bit machine (in a 32 bit deb pkg)

  • http://www.mikepalmer.net/ Mike Palmer

    Oops, I guess I built those on my 64bit system thinking it’d cross compile. I dusted off my 32bit build image and rebuilt them for you if you want to download the updated packages (-3′s) and try again. Thanks for letting me know.