on a lucid->precise dist-upgrade pycompile can't find the logging module

Bug #972674 reported by CarstenHey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-defaults (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

I did (not copy and pasted, so there might be typos):

  debootstrap --variant=minbase lucid foo
  chroot foo
  sed -i s/lucid/precise/g /etc/apt/sources.list
  apt-get --no-install-recommends dist-upgrade

The latter command failed. Its output ended with:

  Traceback (most recent call last):
    File "/usr/bin/pycompile", line 26, in <module>
      import logging
  ImportError: No module named logging
  dpkg: error processing debconf (--configure):
    subprocess installed post-installation script returned error exit status 1
  Errors were encountered while processing:
    debconf

dpkg -S revealed that pycompile belongs to python-minimal and the dependencies suggest that this was still the version in lucid.

Looks like you need to adapt the dependencies in some way to provide a clean upgrade path from lucid to precise.

Revision history for this message
CarstenHey (c.hey) wrote : Re: [Bug 972674] [NEW] pycompile: ImportError: No module named logging

* CarstenHey [2012-04-03 17:40 -0000]:
> I did (not copy and pasted, so there might be typos):
>
> debootstrap --variant=minbase lucid foo
> chroot foo
> sed -i s/lucid/precise/g /etc/apt/sources.list
> apt-get --no-install-recommends dist-upgrade

I also mounted various standard directories and copied the whole
directory before chrooting.

The original one, which is still lucid, also contains this error, i.e.,
pycompile --version fails with the same error.

> Looks like you need to adapt the dependencies in some way to provide a
> clean upgrade path from lucid to precise.

So this bug is caused by python-minimal/lucid, which I assume won't be
fixed anymore. Making debconf conflict with python-minimal/lucid could
fix the upgrade problem.

Revision history for this message
Matthias Klose (doko) wrote : Re: pycompile: ImportError: No module named logging

I can't see a good way to fix this. The good thing is that this is usually not seen when dist-upgrading a more complete lucid installation.

Changed in python-defaults (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
summary: - pycompile: ImportError: No module named logging
+ on a lucid->precise dist-upgrade pycompile can't find the logging module
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.