You are not logged in.

#1 2007-11-06 13:16:10

J_Zar
Member
From: Villa Santina (UD), Italy
Registered: 2006-09-19
Posts: 36
Website

Pykde package and python

I'm using Arch64.
Pykde from community repository is compiled against python 2.4. It seems to be broken. So I can't use it because of an import error:

ImportError: /usr/lib/python2.4/site-packages/kdecore.so: undefined symbol: Py_InitModule4

Suppose it needs a rebuild, but I can't do that from AUR. It exits with a Sip error. I can't build Sip too... So I entered a loop of broken packages!:/

Nobody can solve it?

Offline

#2 2007-11-06 22:09:06

J_Zar
Member
From: Villa Santina (UD), Italy
Registered: 2006-09-19
Posts: 36
Website

Re: Pykde package and python

Pykde should be fixed. There is a patch not included in the official PKGBUILD which is outdated. The package should be rebuild with python2.5.

pkgname=pykde
pkgver=3.16.0
pkgrel=3
pkgdesc="PyKDE is a set of Python bindings for the KDE desktop environment."
arch=('i686' 'x86_64')
url="http://riverbankcomputing.co.uk/pykde/"
depends=('sip' 'qscintilla' 'kdelibs' 'pyqt')
makedepends=('patch')
source=("http://www.riverbankcomputing.com/Downloads/PyKDE3/PyKDE-$pkgver.tar.gz"
    "http://www.riverbankcomputing.com/Downloads/PyKDE3/PyKDE-3.16.0-sip-4.7.patch")
install=pykde.install
md5sums=('92fa0f7d6063dc2aad97d5302975ca76' '795ba2251d53f113b1c2209686eb5f25')

build() {
  cd $startdir/src/PyKDE-$pkgver

  patch -Np1 -i ../PyKDE-3.16.0-sip-4.7.patch || return 1

  python configure.py -i
  make || return 1

  # Correcting the Makefile to install pykde without problems
  sed -i "s/ln/#ln/" Makefile
  sed -i "s/ldconfig/#ldconfig/" Makefile

  make DESTDIR=$startdir/pkg install
}

Offline

#3 2007-11-07 01:06:54

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Pykde package and python

I just uploaded a fixed package for pykde in community repo. It uses that patch or another similar patch I got from Gentoo, I don't remember.

Offline

Board footer

Powered by FluxBB