Bug 79347

Summary: python build error space tab indentation pydcop.py
Product: [Developer tools] bindings Reporter: ohtfxqrbet
Component: generalAssignee: kde-bindings
Status: RESOLVED UNMAINTAINED    
Severity: normal CC: rakuco
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: replace spaces with tabs

Description ohtfxqrbet 2004-04-09 21:18:15 UTC
Version:            (using KDE KDE 3.2.1)
Installed from:    Compiled From Sources
OS:          Linux

There is a mix of space and tab indentation in the file
kdebindings-3.2.1/dcoppython/lib/pydcop.py

This causes a python 2.3.3 build to generate the error
Compiling /usr/lib/python2.3/pydcop.py ...
Sorry: TabError: ('inconsistent use of tabs and spaces in indentation',
     ('/usr/lib/python2.3/pydcop.py', 39, 25, '\t\tif item == "__repr__":\n'))

and then much later fail with the message
Compiling /usr/lib/python2.3/zipfile.py ...
make: *** [libinstall] Error 1

changing leading spaces to tabs fixes the problem

build system Rock Linux (http://www.rocklinux.org/) subversion release 2676 -
note that the stage 5 build of python is OK, before kde is built - the error
shows in the stage 9 rebuild
Comment 1 Taurnil 2007-10-22 19:59:58 UTC
Created attachment 21894 [details]
replace spaces with tabs
Comment 2 Taurnil 2007-10-22 20:00:42 UTC
I have the same problem using Lunar-Linux. And have seen this problem with prior versions of kdebindings and it still exists with kde-3.5.8.

Python build will tank with kdebindings installed and as ohtfxqrbet@wylie.me.uk notes, replacing spaces with tabs fixes this problem. I have noticed during the Python make it will complain about some other files having tab/space inconsistencies but NONE of those cause it to fail, just /usr/lib/python2.3/pydcop.py.

To here is a patch that replaces all spaces with tabs, please apply.



Comment 3 Raphael Kubo da Costa 2009-08-23 21:15:12 UTC
Closing the report, as DCOP is deprecated in KDE4 and the bindings code seems to have changed a lot.