Summary: | system-config-printer-kde broken: "ImportError: No module named kpushbutton" | ||
---|---|---|---|
Product: | [Unmaintained] bindings | Reporter: | Marc Schiffbauer <mschiff> |
Component: | general | Assignee: | Jonathan Riddell <jr> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | mieszcz, rdieter, reavertm, simon |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
proposed patch
attached |
Description
Marc Schiffbauer
2009-07-02 11:47:31 UTC
Same here. gentoo, kde-4.2.95 This is almost certainly a packaging bug, the .ui file is being loaded but it can't find the KDE widgets, which is a plugin (widget-plugins/kde4.py) from PyKDE. Please talk to your distro packagers about including this file in their python-kde package. I'm seeing this too. Looks like make install is missing installing kde4.py into the right places. according to kdebindings/python/pykde4/tools/pykdeuic4/README, "Copy kde4.py to <python-install-dir>/site-packages/PyQt4/uic/widget-plugins/ pykdeuic4 should be installed to somewhere on your path, like /usr/bin/" And I confirmed this works, but unfortunately, doesn't match what CMakeLists.txt actually does. :( re-assigning to kdebindings. I'll work on a patch to adjust CMakeLists.txt to follow recommended (ie, working) installation procedure. Created attachment 35392 [details]
proposed patch
SVN commit 997974 by rdieter: Make CMakeLists.txt match install recommendations in README BUG: 198632 M +2 -2 CMakeLists.txt WebSVN link: http://websvn.kde.org/?view=rev&revision=997974 SVN commit 1001230 by sedwards: Make CMakeLists.txt match install recommendations in README BUG: 198632 M +2 -3 CMakeLists.txt WebSVN link: http://websvn.kde.org/?view=rev&revision=1001230 Rats, sorry, I full well intended to backport the fix too (oversight) This is probably what you were trying to achieve with pykdeuic4 (instead of creating subdirectory in /usr/bin) Index: python/pykde4/tools/pykdeuic4/CMakeLists.txt =================================================================== --- python/pykde4/tools/pykdeuic4/CMakeLists.txt (revision 1001414) +++ python/pykde4/tools/pykdeuic4/CMakeLists.txt (working copy) @@ -1,2 +1,4 @@ PYTHON_INSTALL(kde4.py ${PYTHON_SITE_PACKAGES_DIR}/PyQt4/uic/widget-plugins/) -PYTHON_INSTALL(pykdeuic4.py ${BIN_INSTALL_DIR}/pykdeuic4) +PYTHON_INSTALL(pykdeuic4.py ${PYTHON_SITE_PACKAGES_DIR}/PyQt4/uic/) +find_path(cmake_module_dir create_exe_symlink.cmake ${CMAKE_MODULE_PATH}) +INSTALL(CODE "EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -DTARGET=${PYTHON_SITE_PACKAGES_DIR}/PyQt4/uic/pykdeuic4.py -DLINK_NAME=${BIN_INSTALL_DIR}/pykdeuic4 -P ${cmake_module_dir}/create_exe_symlink.cmake)" ) (This patch is against 4.3 branch) Created attachment 35565 [details]
attached
Please apply above fix - creating subdirectory in /usr/bin/ is not the way to go. Meh, righto, of course. I'll take care of fixing the mess. SVN commit 1004600 by rdieter: better (and working!) pykdeuic4 cmake fix BUG: 198632 M +3 -1 CMakeLists.txt WebSVN link: http://websvn.kde.org/?view=rev&revision=1004600 SVN commit 1004602 by rdieter: backport: better (and working!) pykdeuic4 cmake fix BUG: 198632 M +3 -1 CMakeLists.txt WebSVN link: http://websvn.kde.org/?view=rev&revision=1004602 One small thing, Riddell mentioned on irc that it may make more sense to put pykdeuic4 in ${PYTHON_SITE_PACKAGES_DIR}/PyKDE4/uic/ instead of ${PYTHON_SITE_PACKAGES_DIR}/PyQt4/uic/ and I think I would agree. Simon? Any comment/preference? After six months, and first seen in 4.2.95 this is still broken in 4.3.85. Are there any news to this? Or should this bug be closed as WONTFIX ? There is some sort of "working" kcm for printers now (not functional but the bug described here seems to be gone. |