You are not logged in.
Hi there,
when trying to install `python2-matplotlib-noqt` I ve run into the following error:
Traceback (most recent call last):
File "setup.py", line 155, in <module>
result = package.check()
File "/tmp/yaourt-tmp-alex/aur-python2-matplotlib-noqt/src/matplotlib-1.4.2/setupext.py", line 1729, in check
return super(BackendGtkAgg, self).check()
File "/tmp/yaourt-tmp-alex/aur-python2-matplotlib-noqt/src/matplotlib-1.4.2/setupext.py", line 504, in check
additional_info = self.check_requirements()
File "/tmp/yaourt-tmp-alex/aur-python2-matplotlib-noqt/src/matplotlib-1.4.2/setupext.py", line 1626, in check_requirements
import gtk
File "/usr/lib/python2.7/site-packages/gtk-2.0/gtk/__init__.py", line 45, in <module>
from gtk.deprecation import _Deprecated, _DeprecatedConstant
ValueError: bad marshal data (unknown type code)
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Makepkg was unable to build python2-matplotlib-noqt.Googling suggests that the problem is incompatibility between matplotlib and python versions. So I updated python to version 3.4, but pkgbuid still pulls file from `/usr/lib/python2.7`,though this particular version is not explicitly set in `PKGBUILD`:
pkgname=python2-matplotlib-noqt
pkgver=1.4.2
pkgrel=1
pkgdesc="A python plotting library, making publication quality plots"
arch=('i686' 'x86_64')
url='http://matplotlib.org'
license=('custom')
depends=('python2-pytz' 'python2-numpy' 'python2-cairo' 'python2-dateutil' 'python2-pyparsing')
makedepends=('python2-pytz' 'python2-numpy' 'tk' 'python2-cairo' 'python2-dateutil'
'python2-gobject' 'python2-pyparsing' 'pygtk' 'python-six' 'ghostscript' 'texlive-bin')
optdepends=('python-gobject: for GTK3Agg/GTK3Cairo backend'
'python-cairo: for GTK3Cairo backend'
'tk: used by the TkAgg backend'
'ghostscript: usetex dependencies'
'texlive-bin: usetex dependencies'
'python-tornado: for webagg backend')
source=("https://github.com/matplotlib/matplotlib/archive/v$pkgver.tar.gz")
sha512sums=('60e7cca791fe607f17db85e5e5a85d4a503c7ae584cd0333ff271ca0a92acbb3f08774c2d0f6e03414a1fe116187d0bcf5c47d29935e77c5a0e91e493db8333f')
prepare() {
cd matplotlib-${pkgver}
for file in $(find . -name '*.py' -print); do
sed -i -e "s|^#!.*/usr/bin/python|#!/usr/bin/python2|" \
-e "s|^#!.*/usr/bin/env *python|#!/usr/bin/env python2|" ${file}
done
}
build() {
cd matplotlib-${pkgver}
python2 setup.py build
}
package() {
cd matplotlib-${pkgver}
python2 setup.py install -O1 --skip-build --root "${pkgdir}" --prefix=/usr
install -dm755 "${pkgdir}"/usr/share/licenses/python2-matplotlib-noqt
install -m 644 doc/users/license.rst "${pkgdir}"/usr/share/licenses/python2-matplotlib-noqt
}i'm at a loss
Last edited by L1ghtmareI (2014-11-02 10:22:46)
Offline
First of all, you should be clear about what's you are doing. You are trying to build python2-matplotlib-noqt from the AUR. Bugs in the AUR packages must be mentioned/discussed in the comment of that package. I don't see how this package disable the qt dependency besides nor requiring it, but I have not investigate the build process of matplotlib. What I would suggest is to try to build the official python-matplotlib package and make the modification yourself so that it does not depend of qt, if you know how to do it. If not, simply install the official package.
Last edited by olive (2014-11-01 21:59:41)
Offline
Wow, I didn't know the official package existed, 'cause I couldn't find one with pacman. Thanks a lot.
Then I'm gonna follow your advice and post this in the AUR package comments.
Offline