Upon installation of Kubuntu 13.10 Beta 2 - Python plugins do not work, and several errors are reported. Upon launching Kate from the terminal the first error that is reported is that /usr/lib/x86_64-linux-gnu/libpython2.7.so is not loadable - and sure enough running sudo ln -s /usr/lib/x86_64-linux-gnu/libpython2.7.so.1 /usr/lib/x86_64-linux-gnu/libpython2.7.so resolves all issues. Reproducible: Always Steps to Reproduce: 1. Install Kubuntu 13.10 2. Launch Kate 3. Enable Python Plugins Actual Results: Errors where reported Expected Results: Usable Plugins
Jonathan, can you take care of this? According to the reporter, this is a Kubuntu issue.
https://bugs.launchpad.net/ubuntu/+source/kate/+bug/1233215 a sip mystery :(
Fixed it in our package by setting the path manually to the python library -DPYTHON_LIBRARY=/usr/lib/x86_64-linux-gnu/libpython2.7.so.1 (it automatically picked up -DPYTHON_LIBRARY=/usr/lib/x86_64-linux-gnu/libpython2.7.so) I think this is still an upstream issue though, we shouldn't have to set it manually, could be something up in Sip or how Kate uses the CMake variables.
Can I just say you guys are awesome? I've used KDE with various distributions for years (and with Kubuntu for the last ~2) but never reported a bug until now. I am amazed at how quickly it was acknowledged and came to some form of resolution. Thank you!
PYTHON_LIBRARY is set to be the same as PYTHON_LIBRARIES (this to keep SC) in kdelibs's FindPythonLibrary.cmake. Therefore, if there is an issue, it lies within cmake's FindPythonLibs.cmake, which is the one setting PYTHON_LIBRARIES. (Notice: I don't have a Kate checkout to look at how it's used for Pate).
Yes the other culprit might be Ubuntu/Debian patches to FindPythonLibrary.cmake to support our multiarch layout for libraries
The Kate Pate Python host uses macro_optional_find_package(PythonLibrary) FindPythonLibrary.cmake is shipped with kdelibs it seems. The Kate Pate Python host then links to ${PYTHON_LIBRARY}. If there is anything wrong with this, please let us know.
@Timothy: The bug is resolved so quickly mostly because of your well-described report, most importantly you provided the solution. So thanks for your contribution here :-)