python-matplotlib did not install correctly. Error occured on ubuntu 8.10
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
matplotlib (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
while installing python-matplotlib on ubuntu 8.10 (64bit) I get the following error:
Setting up python-tz (2008b-3ubuntu1) ...
Setting up python-matplotlib (0.98.3-4ubuntu1) ...
pycentral: pycentral pkginstall: not overwriting local files
pycentral pkginstall: not overwriting local files
dpkg: error processing python-matplotlib (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
python-matplotlib
E: Sub-process /usr/bin/dpkg returned an error code (1)
Do you have any ideas what it could be ?
ProblemType: Package
Architecture: amd64
DistroRelease: Ubuntu 8.10
ErrorMessage: subprocess post-installation script returned error exit status 1
NonfreeKernelMo
Package: python-matplotlib 0.98.3-4ubuntu1
SourcePackage: matplotlib
Title: package python-matplotlib 0.98.3-4ubuntu1 failed to install/upgrade: subprocess post-installation script returned error exit status 1
Uname: Linux 2.6.27-9-generic x86_64
Hello. I've installed it and it worked fine on my machine. There some clues why it didn't work for you from these lines:
pycentral: pycentral pkginstall: not overwriting local files
pycentral pkginstall: not overwriting local files
dpkg: error processing python-matplotlib (--configure):
subprocess post-installation script returned error exit status 1
Python is platform independent but it needs to be byte compiled during installation for any/all version of python that you have installed. This package uses pycentral - one of the methods to insure that all *.py get byte compiled into *.pyc on user computer during installation. So pycentral was the one who ruined your post-installtion scripts.
As we see from above pycentral emmits messages: not overwriting local files. Hmmm to me this sounds like something is in the way of python-matplotlib, eg. manual or old instalation.
Try purging the package, and installing again.
Also I'm attaching a list of files which should be installed (dpkg -L) all of them are installed by pycentral one way or the other therefore check that none of them exist. Note that if you have more pythons that I do, you should check for all /usr/lib/ pythonX. Y/site- packages/ matplotlib/ where X.Y could be any python versions that you might have.
Please write back to me. I love matplotlib, it's best thing EVER. Hope you will get it to work.
On the side note. Try to remember if you did anything special with your python installation. Or what was the sequence of last apt actions before you started this installation of python-matplotlib. Cause it could be reproducible under the corner case sequence that you have manage to do (purging, porting, compiling your own modules, installing anything outside of apt authority, enabling random ppa's, using backports etc)
Hope this helps.