Trouble with Emerge

Pedro Lopez-Cabanillas pedro.lopez.cabanillas at gmail.com
Sat Feb 25 11:02:22 UTC 2012


On Saturday 25 February 2012, Patrick Spendrin wrote:
> Am 25.02.2012 01:19, schrieb Pedro Lopez-Cabanillas:
> > On Tuesday 21 February 2012, Andre Heinecke wrote:
> >> Am Donnerstag 16 Februar 2012 11:20:52 schrieb erle tveit-hansen:
> >>> Hi!
> >>> I'm having trouble getting KDE using Emerge. I have edited kdesettings 
and
> >>> run kdeenv, but when I try to run emerge qt I get an error message 
saying
> >>> there's a syntax error on line 168 of emerge.py, even though I haven't
> >>> touched it.. I assume this is caused by some other error, but I have no
> >>> idea what. Any help is appreciated.
> >>
> >> There were no changes to this file recently and it works here of course, 
can 
> >> you please check with git diff that it is really unchanged and also 
please 
> >> check your Python Version. You need Python 2.7 for emerge.
> > 
> > http://techbase.kde.org/Getting_Started/Build/Windows/emerge says:
> > "Beginning from the KDE 4.8 (including master and the frameworks branch) 
> > Python 3.2 will be required."
> > 
> > The 4.8 announcement at 
> > 
http://windows.kde.org/news.php#itemKDESoftwareCompilation480forWindowsavailable
> > also suggests that KDE 4.8 has moved to Python 3.
> > 
> > Following the previous documents, anybody trying emerge for KDE 4.8 will 
> > install Python 3.2, which doesn't work (throws a syntax error on line 168 
of 
> > emerge.py)
> 
> Hm, does the same happen for the python3 branch btw.? Those two should
> be similar. There is one more thing I can think of: Python registers the
> file extension .py to whichever python was installed last. Theoretically
> emerge shouldn't depend on that (at least we have tried to remove that),
> but you never know. Also please make sure that the environment variable
> PYTHONPATH is set to the location of your python 3.2. I'll have a new
> clean computer available to set up in a few days, if this error doesn't
> go away, I'll try to find it then.

I've started with a clean system, without any previous Python version. Then, 
I've installed Python 3.2 following the advices in the document: 
"techbase.kde.org/Getting_Started/Build/Windows/emerge". In order to get the 
emerge tool, this document provides a command line:

	git clone git://anongit.kde.org/emerge.git

I have master/trunk just after getting emerge from the git repository. With 
Python 3.2 I get a syntax error in emerge.py, line 168.

C:\kderoot\emerge\bin>emerge --help
  File "C:\kderoot\emerge\bin\emerge.py", line 168
    """
      ^
SyntaxError: invalid syntax

> > 
> > Can anybody clarify if there is something that requires Python 3 for KDE 
4.8,  
> > And if not, please fix the documentation?
> 
> Python 3 is required for using the kde-4.8 branch to build KDE 4.8.

I can confirm that Python 3.2 works with the emerge-kde-4.8 branch, but fails 
with the master/trunk branch. This is weird, isn't the master branch supposed 
to be  newer, and the currently developing one?

The document is not clear about the relationship between emerge branches and 
Python versions.

Additionally, git cloning and switching branches is unfriendly, and the 
documentation is too sparse at this point. There should be a strong remark 
that after cloning the emerge repository the user needs to switch the branch 
for the KDE version he wants to compile. A friendlier alternative would be to 
offer a zip file containing a basic "C:\kderoot" directory for the last stable 
KDE release containing emerge, the most basic development tools and up to date 
documentation.

Regards,
Pedro


More information about the Kde-windows mailing list