Bug 67802 - python compilation error in dcoppython/shell
Summary: python compilation error in dcoppython/shell
Status: RESOLVED NOT A BUG
Alias: None
Product: bindings
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kde-bindings
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-10 19:32 UTC by Arc C.
Modified: 2003-11-15 17:25 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arc C. 2003-11-10 19:32:49 UTC
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).
Comment 1 Julian Rockey 2003-11-11 19:48:35 UTC
What version of python is /usr/bin/python?
Type /usr/bin/python to see
Comment 2 Arc C. 2003-11-11 20:23:37 UTC
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).
Comment 3 Julian Rockey 2003-11-11 21:58:12 UTC
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.
Comment 4 Arc C. 2003-11-15 16:41:04 UTC
Yes, this bug can be closed - I updated python to the latest version and kdebindings compiled OK.
Comment 5 Julian Rockey 2003-11-15 17:25:55 UTC
Closing as invalid as per reporter's comment.