[Python-modules-team] Bug#688954: ipython: Dependency missing on python-argparse

Michael Gebetsroither michael at mgeb.org
Thu Sep 27 10:52:08 UTC 2012

Package: ipython
Version: 0.13-1
Severity: normal


After upgrading ipython it didn't start anymore:

% ipython
Traceback (most recent call last):
  File "/usr/bin/ipython", line 5, in <module>
    from IPython.frontend.terminal.ipapp import launch_new_instance
  File "/usr/lib/python2.6/dist-packages/IPython/__init__.py", line 43, in <module>
    from .config.loader import Config
  File "/usr/lib/python2.6/dist-packages/IPython/config/__init__.py", line 16, in <module>
    from .application import *
  File "/usr/lib/python2.6/dist-packages/IPython/config/application.py", line 31, in <module>
    from IPython.config.configurable import SingletonConfigurable
  File "/usr/lib/python2.6/dist-packages/IPython/config/configurable.py", line 26, in <module>
    from loader import Config
  File "/usr/lib/python2.6/dist-packages/IPython/config/loader.py", line 26, in <module>
    from IPython.external import argparse
  File "/usr/lib/python2.6/dist-packages/IPython/external/argparse/__init__.py", line 10, in <module>
    from _argparse import *
ImportError: No module named _argparse

apt-get install python-argparse python-zmq

If ipython imports argparse without safeguards it should be a dependency, not just a 'suggests'.

Michael Gebetsroither

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.5-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages ipython depends on:
ii  python                        2.6.6-14   interactive high-level object-orie
ii  python-configobj              4.5.2-2    a simple but powerful config file 
ii  python-decorator              3.3.3-1    simplify usage of Python decorator
ii  python-pexpect                2.3-1      Python module for automating inter
ii  python-simplegeneric          0.8.1-1    simple generic functions for Pytho
ii  python2.6                     2.6.7-4    An interactive high-level object-o
ii  python2.7                     2.7.3-1    Interactive high-level object-orie

ipython recommends no packages.

Versions of packages ipython suggests:
pn  ipython-doc                   <none>     (no description available)
pn  ipython-notebook              <none>     (no description available)
pn  ipython-qtconsole             <none>     (no description available)
ii  python-argparse               1.2.1-2    optparse-inspired command-line par
ii  python-matplotlib             0.99.3-1   Python based plotting system in a 
ii  python-numpy                  1:1.5.1-4  Numerical Python adds a fast array
pn  python-profiler               <none>     (no description available)
ii  python-zmq                    2.2.0-1    Python bindings for 0MQ library
ii  python2.7 [python-argparse]   2.7.3-1    Interactive high-level object-orie

-- no debconf information

More information about the Python-modules-team mailing list