Version: 3.1.93 (using KDE KDE 3.1.93) Installed from: Compiled From Sources Compiler: GNU GCC 3.3.1 python 1.5.2, python2 2.1.1 OS: Linux When compiling kdebindings 3.1.93 (KDE 3.2 beta1) got the following error: Making all in shell make[3]: Entering directory `/data/kde_3.2/kdebindings-3.1.93/dcoppython/shell' /usr/bin/python ./gen_marshal_code.py ./marshal_funcs.data marshal_funcs.h marshal_funcs_doc.xml File "./gen_marshal_code.py", line 99 self.attr_list = [tuple(x.split(':')) for x in m.groups()[0].strip().split(',') ] ^ SyntaxError: invalid syntax make[3]: *** [marshal_funcs.h] Error 1 make[3]: Leaving directory `/data/kde_3.2/kdebindings-3.1.93/dcoppython/shell' This is a heavily modified RH7.3 Alpha system: # uname -a Linux baltika 2.6.0-test9 #5 Tue Oct 28 00:17:22 CST 2003 alpha unknown # rpm -qa python\* python-popt-0.8.8-7.x.2 python-docs-1.5.2-43.72 python-xmlrpc-1.5.1-7.x.3 python-1.5.2-43.72 python-devel-1.5.2-43.72 python2-2.1.1-3.72 python-tools-1.5.2-43.72 python2-devel-2.1.1-3.72 arts, libs, i18, kdeaccessibility, kdeadmin, kdeartwork and kdebase compiled and installed OK (had to do kdebase BEFORE kdeartwork as the later one requires some include files from kdebase. I think this info should go into howto doc).
What version of python is /usr/bin/python? Type /usr/bin/python to see
It was 1.5.2, version's 2.1.1 executable was /usr/bin/python2. I've tried to change to it in Makefile, but got some other error. Right now I've compiled latest python from sources and removed python packages. It will take me another 2 days to get to compiling kdebindings (I removed kde_3.2 install directory as I was building new gcc).
As I thought; won't work with Python <2 and the build system is picking up /usr/bin/python first. In bash you should be able to export PYTHON=/path/to/python2 before configure to force it to the right one.
Yes, this bug can be closed - I updated python to the latest version and kdebindings compiled OK.
Closing as invalid as per reporter's comment.