| Summary: | python build error space tab indentation pydcop.py | ||
|---|---|---|---|
| Product: | [Unmaintained] bindings | Reporter: | ohtfxqrbet |
| Component: | general | Assignee: | bindings-bugs-null |
| Status: | RESOLVED UNMAINTAINED | ||
| Severity: | normal | CC: | rakuco |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Compiled Sources | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | replace spaces with tabs | ||
Created attachment 21894 [details]
replace spaces with tabs
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. Closing the report, as DCOP is deprecated in KDE4 and the bindings code seems to have changed a lot. |
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