Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 349433 - kde-base/kdeplasma-addons-4.4.5 failes generating ui_LancelotWindowBase.h
Summary: kde-base/kdeplasma-addons-4.4.5 failes generating ui_LancelotWindowBase.h
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-23 01:48 UTC by Xiang Zhai
Modified: 2011-05-21 19:13 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Xiang Zhai 2010-12-23 01:48:41 UTC
Hi,

When i emerge kde-base/kde-meta-4.4.5, it thrown such error message shown as below:

[ 72%] Generating ui_LancelotWindowBase.h
  File "/var/tmp/portage/kde-base/kdeplasma-addons-4.4.5/work/kdeplasma-addons-4.4.5/applets/lancelot/tools/puck/puck.py", line 126
    print "Plasma UI Compiler 0.1"
                                 ^
SyntaxError: invalid syntax
make[2]: *** [applets/lancelot/app/src/ui_LancelotWindowBase.h] Error 1
make[1]: *** [applets/lancelot/app/src/CMakeFiles/lancelot-menu.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Linking CXX shared module ../../lib/plasma_wallpaper_weather.so
[ 72%] Built target plasma_wallpaper_weather
make: *** [all] Error 2
emake failed

And I checked the puck.py at line126 shown as below:

# Main program: ##################################################################################

print "Plasma UI Compiler 0.1"
print "Generating ", sys.argv[2]
print "From ", sys.argv[1]

print "" in pre-version python is print("") in python 3.x

Then how to patch it? Could someone give some notice? Thanks a lot!
Comment 1 Günther Hutzl 2011-03-06 09:59:47 UTC
The solution here is to set the python interpreter to an older version. So make sure you have dev-lang/python:2.6 installed and the select it as the default interpreter by:

> eselect python set python2.6

After that you can emerge kde-base/kdeplasma-addons-4.4.5 without any problems. No patching needed. I don't know yet if it will cause any runtime issues if you set python back to 3.1 after the installation but it may be worth a try.
Comment 2 Andreas K. Hüttel archtester gentoo-dev 2011-04-25 21:03:04 UTC
Do you still have this problem with kde-4.6.2 ?
Comment 3 Andreas K. Hüttel archtester gentoo-dev 2011-05-21 19:13:49 UTC
No reply for a month.