python2.4-matplotlib conflicts with python2.4-tz

Bug #48528 reported by Celso Providelo
8
Affects Status Importance Assigned to Milestone
matplotlib (Debian)
Fix Released
Unknown
matplotlib (Ubuntu)
Fix Released
Medium
Matthias Klose

Bug Description

Full dpkg error is :
{{{
Selecting previously deselected package python2.4-matplotlib.
Unpacking python2.4-matplotlib (from .../python2.4-matplotlib_0.82-5ubuntu1_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/python2.4-matplotlib_0.82-5ubuntu1_i386.deb (--unpack):
 trying to overwrite `/usr/lib/python2.4/site-packages/pytz/__init__.py', which is also in package python2.4-tz
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Selecting previously deselected package python-matplotlib.
Unpacking python-matplotlib (from .../python-matplotlib_0.82-5ubuntu1_all.deb) ...
Errors were encountered while processing:
 /var/cache/apt/archives/python2.4-matplotlib_0.82-5ubuntu1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
}}}

I wonder what is different in built-in pytz.

Revision history for this message
Gustavo Niemeyer (niemeyer) wrote :

I'm getting the same problem.

I've checked out matplotlib, and in setup.py it tests for existence of pytz and dateutil in the system, and won't install them unless the user doesn't have them already. So I suspect that using python-tz as a build dependency and runtime dependency might fix the issue.

We're considering using matplotlib in a project, and this problem is affecting us, since zope3 depends on python-tz, and matplotlib currently breaks with python-tz installed, so we can't have both zope3 and matplotlib available at the same time.

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

fixed in 0.82-5ubuntu1 (dapper-updates)

Changed in matplotlib:
assignee: nobody → doko
status: Unconfirmed → Fix Released
Changed in matplotlib:
status: Unknown → Fix Committed
Revision history for this message
Colin Watson (cjwatson) wrote :

Approved for dapper-updates. (You meant 0.82-5ubuntu2, not 0.82-5ubuntu1, by the way.)

Revision history for this message
Jonathon Anderson (janders5) wrote :

I think this fix has created a new problem:

When trying to install python-matplotlib, I get

Python-matplotlib: Depends: python2.4-matplotlib but it is not going to be installed.

When trying to install python2.4-matplotlib directly I get

python2.4-matplotlib: Depends: python-matplotlib-data (=0.82-5ubuntu1) but 0.82-5ubuntu1 is to be installed.

WAIT!!! I just noticed the problem.

He really DID say ubuntu1! Somebody needs to change that to ubuntu2 (I have no idea how/access).

Changed in matplotlib:
status: Fix Committed → Fix Released
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.