python-profiler for Python 2.6 fails attempting to overwrite python2.5 lib

Bug #855514 reported by Jason R. Coombs
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-profiler (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I have Ubuntu Lucid with the deadsnakes PPA added for Python 2.7, 3.2, and 2.5. I've since found that I need a profiler on my host, so I attempted to install it with "aptitude install python-profiler" but got this error:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
The following NEW packages will be installed:
  python-profiler
0 packages upgraded, 1 newly installed, 0 to remove and 9 not upgraded.
Need to get 0B/29.8kB of archives. After unpacking 188kB will be used.
Writing extended state information... Done
(Reading database ... 72747 files and directories currently installed.)
Unpacking python-profiler (from .../python-profiler_2.6.5-0ubuntu1_all.deb) ...
dpkg: error processing /var/cache/apt/archives/python-profiler_2.6.5-0ubuntu1_all.deb (--unpack):
 trying to overwrite '/usr/lib/python2.5/profile.py', which is also in package python2.5 0:2.5.6-0~ppa1~lucid1
Errors were encountered while processing:
 /var/cache/apt/archives/python-profiler_2.6.5-0ubuntu1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done

In my opinion, python-profiler_2.6.5-0ubuntu1_all.deb should not try to write to /usr/lib/python2.5.

python-profiler should include the profiler modules for those versions of Python supported by Ubuntu or even better should have Python-specific versions with an alias for the default Python version that ships with Ubuntu.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in python-profiler (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

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