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!
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.
Do you still have this problem with kde-4.6.2 ?
No reply for a month.