can't configure python2.4-minimal without python2.4 installed

Bug #11438 reported by Colin Watson
8
Affects Status Importance Assigned to Milestone
python-defaults (Ubuntu)
Fix Released
Critical
Matthias Klose

Bug Description

debootstrap now installs python2.4-minimal before python2.4, but this breaks:

Setting up python2.4-minimal (2.4-2ubuntu1) ...
I: Configuring python2.4-minimal...
/usr/bin/python2.4: can't open file '/usr/lib/python2.4/compileall.py': [Errno
2] No such file or directory
dpkg: error processing python2.4-minimal (--configure):
 subprocess post-installation script returned error exit status 2

Please move compileall.py to python2.4-minimal, and update versioned replaces as
appropriate.

Revision history for this message
Colin Watson (cjwatson) wrote :

python2.4 (2.4-2ubuntu2) hoary; urgency=low

  * Add compileall.py and py_compile.py to the -minimal package, not
    just to the README ...

 -- Matthias Klose <email address hidden> Sat, 25 Dec 2004 22:24:56 +0100

Revision history for this message
Colin Watson (cjwatson) wrote :

There are still several dependencies of compileall and py_compile missing. os
and traceback are the most obvious ones (the latter isn't in
debian/PVER-minimal.README.Debian.in either). Is there an easy way for you to
make sure that the minimal module list is closed under dependency?

Revision history for this message
Matthias Klose (doko) wrote :

> Is there an easy way for you to make sure that the minimal module list is
closed under dependency?

Not really. Using modulefinder.py you get _all_ the dependencies of a module,
but even those, which are imported if the module is used as a script or those
which are conditionally imported. So you do have manual interaction. For now, I
get the list of modules from the README, so you don't have to list them twice.
I'll add a sanity check later.

python2.4 (2.4-2ubuntu3) hoary; urgency=low

   * Add os.py and traceback.py to the -minimal package, get the list
     of modules from the README.

Revision history for this message
Colin Watson (cjwatson) wrote :

Can you please try debootstrapping hoary until it works? Building new CDs is a
very inefficient method of testing this bug. :-)

With 2.4-2ubuntu3:

Setting up debconf (1.4.41ubuntu1) ...
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "/usr/lib/python2.4/compileall.py", line 15, in ?
    import os
  File "/usr/lib/python2.4/os.py", line 397, in ?
    import UserDict
ImportError: No module named UserDict
dpkg: error processing debconf (--install):
 subprocess post-installation script returned error exit status 1

Revision history for this message
Matthias Klose (doko) wrote :

fixed in -2ubuntu5, including a check for dependent modules. modified two
modules (os.py, optparse.py) to limit the number of dependencies.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.