Bug 183291

Summary: kdelibs python modules do not install cleanly to non-systemwide directories
Product: [Unmaintained] bindings Reporter: Frank Hellmuth <fhellmuth>
Component: generalAssignee: kde-bindings
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Frank Hellmuth 2009-02-05 12:53:29 UTC
Version:            (using Devel)
OS:                Linux
Installed from:    Compiled sources

I'm running a system wide kde 4.2 installation and a SVN version build by kdesvn-build ind my test users home directory. Installing kdelibs fails with:

-- Installing: /usr/lib64/python2.5/site-packages/PyKDE4/plasmascript.py
CMake Error at workspace/plasma/scriptengines/python/cmake_install.cmake:60 (FILE):
  file INSTALL cannot copy file
  "/home/fhellmut/kdesvn/kdebase/workspace/plasma/scriptengines/python/plasmascript.py"
  to "/usr/lib64/python2.5/site-packages/PyKDE4/plasmascript.py".
Call Stack (most recent call first):
  workspace/plasma/scriptengines/cmake_install.cmake:40 (INCLUDE)
  workspace/plasma/cmake_install.cmake:42 (INCLUDE)
  workspace/cmake_install.cmake:76 (INCLUDE)
  cmake_install.cmake:39 (INCLUDE)

Would it be possible to avoid these conflicts between the system wide and user installation by using Python's environment variables PYTHONHOME and PYTHONPATH?

It looks like I'm not the only user experiencing that problem: See the corresponding thread in the kde forums:

http://forum.kde.org/cmake-error-make-installing-kdebase-80-t-16779.html
Comment 1 Pino Toscano 2009-02-05 12:59:29 UTC

*** This bug has been marked as a duplicate of bug 174806 ***