Summary: | pykde4 fails to build with Python 3.2 | ||
---|---|---|---|
Product: | [Developer tools] bindings | Reporter: | Arfrever Frehtes Taifersar Arahesis <Arfrever.FTA> |
Component: | pykde | Assignee: | kde-bindings |
Status: | RESOLVED UNMAINTAINED | ||
Severity: | normal | CC: | b.brachaczek, georgi, kevin.kofler, luigi.mantellini, rdieter, wolfgang, yselkowi |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | All | ||
Latest Commit: | Version Fixed In: | ||
Attachments: |
Fix building with Python 3.2
cmake macros patch for python3.2 |
Description
Arfrever Frehtes Taifersar Arahesis
2011-06-17 17:43:37 UTC
same here... I cannot downgrade my python and I just blocked the kde upgrade (for now). ciao Created attachment 61186 [details]
Fix building with Python 3.2
This patch was originally created by Markus Peloquin and contains a small change made by me.
I can confirm the bug with KDE 4.8rc1: [ 31%] Building CXX object CMakeFiles/python_module_PyKDE4_kio.dir/sip/kio/sipkiopart4.o In file included from /usr/include/python3.2mu/Python.h:52:0, from /usr/include/python3.2mu/sip.h:32, from /home/bash/builds/kdebindings-python/src/build/sip/kio/sipAPIkio.h:11, from /home/bash/builds/kdebindings-python/src/build/sip/kio/sipkiopart4.cpp:7: /usr/include/python3.2mu/pyatomic.h:59:1: warning: unused parameter ‘address’ [-Wunused-parameter] /home/bash/builds/kdebindings-python/src/pykde4-4.7.95/sip/kio/kfileitem.sip: In function ‘PyObject* slot_KFileItemList___getitem__(PyObject*, PyObject*)’: /home/bash/builds/kdebindings-python/src/pykde4-4.7.95/sip/kio/kfileitem.sip:239:94: error: cannot convert ‘PySliceObject*’ to ‘PyObject* {aka _object*}’ for argument ‘1’ to ‘int PySlice_GetIndicesEx(PyObject*, Py_ssize_t, Py_ssize_t*, Py_ssize_t*, Py_ssize_t*, Py_ssize_t*)’ make[2]: *** [CMakeFiles/python_module_PyKDE4_kio.dir/sip/kio/sipkiopart4.o] Error 1 make[1]: *** [CMakeFiles/python_module_PyKDE4_kio.dir/all] Error 2 make: *** [all] Error 2 Also, I confirm Arfrever's patch fixed it! (In reply to comment #3) > Also, I confirm Arfrever's patch fixed it! Wait. make install fails. -- Installing: /usr/lib/python3.2/site-packages/PyKDE4/__init__.py CMake Error at cmake_install.cmake:332 (FILE): file INSTALL cannot find "/builds/kdebindings-python/src/build//__init__.pyc". (In reply to comment #4) > make install fails. You can rebuild kdelibs with patch from bug #276151 and set PYTHONDONTWRITEBYTECODE variable. Created attachment 72735 [details]
cmake macros patch for python3.2
Attaching a patch for kdelibs 4.8 (tested with 3.2.3 and 2.6.8).
Hello, unfortunately this bug is being closed as unmaintained, per request of einar77. |