equo libtest fails on python3 [Solved]

Anything that pertains to Entropy, Equo or Sulfur

Moderator: Moderators

equo libtest fails on python3 [Solved]

Postby Asfhy » Mon Dec 17, 2012 20:36

Hi, since I updated some time ago my python and tryed to learn some python 3, I used eselect to use python3 by default. Since I've done that, "equo libtest" fails to execute, but if I go to "/usr/bin" in a console and run "python2 equo libtest" to force the use of python2, the it runs Ok with no problems.

Is there a way to force equo to run with python 2 instead of python 3 until it is updated to work with the new version? Or am stuck with the need of using "python2 equo" every time I want to run a libtest?

Thanks in advance
Last edited by Asfhy on Tue Dec 18, 2012 12:39, edited 1 time in total.
Asfhy
Baby Hen
 
Posts: 6
Joined: Wed Dec 05, 2012 21:21

Re: equo libtest fails on python3

Postby sabayonino » Mon Dec 17, 2012 21:34

Entropy works with python 2.7 . All other versions are not recommended.

you can see /etc/make.conf

## FUCK KILL PYTHON 3 WITH FIRE ##
# Avoids python.eclass to compile stuff for Python 3
USE_PYTHON="2.7"
PYTHON_TARGETS="python2_7"


It forces the use of PY2.7 to maintain the compatibility
User avatar
sabayonino
Sagely Hen
 
Posts: 1564
Joined: Sun Sep 21, 2008 1:12
Location: Italy

Re: equo libtest fails on python3

Postby Asfhy » Tue Dec 18, 2012 12:39

That's not what I was talking about. In fact, in that file those lines are pointing to python 2.7 a it should. What I was talking about is that when you run "equo install ..." or "equo search ..." or "equo deptest", equo is executed with your default python version, wich in my case is python 3. What I need is a way to tell the system that "equo" must be executed through python 2.7 and not using the default python version.

PS: I finally done it by editing the "/usr/bin/equo" file an changing the first line with this one:
Code: Select all
#!/bin/python2.7


In that way the equo command is allways executed with python 2.7 independently of my default python version, wich is python 3.2.3. Since the edit of the file, no more problems detected. May I suggest as a patch or update for the equo command? That solves problems for people that want to use python 3 by default and only needs python 2 for compatibility issues with equo or other software.
Asfhy
Baby Hen
 
Posts: 6
Joined: Wed Dec 05, 2012 21:21

Re: [auto-solved] equo libtest fails on python3

Postby sabayonino » Tue Dec 18, 2012 14:27

ah ok.

but remember that if you'll update equo/entropy , "/usr/bin/equo" will be overwritten :wink: restoring the content "#!/usr/bin/python"
User avatar
sabayonino
Sagely Hen
 
Posts: 1564
Joined: Sun Sep 21, 2008 1:12
Location: Italy

Re: [auto-solved] equo libtest fails on python3

Postby Asfhy » Wed Dec 19, 2012 0:44

sabayonino wrote:ah ok.

but remember that if you'll update equo/entropy , "/usr/bin/equo" will be overwritten :wink: restoring the content "#!/usr/bin/python"

Yes, I know. I must remember each time an update is done to check if the equo script has been modified or not. The fact of asking if it may be a good idea ask for a "patch" it's, in fact, for preventing the future problems. If someone uses python2.7 by default editing the script would not modify the system, but if someone, like me, uses other python version, editing the script on an update would correct the possible problems that comes from the python incompatibility.
Asfhy
Baby Hen
 
Posts: 6
Joined: Wed Dec 05, 2012 21:21

Re: equo libtest fails on python3 [Solved]

Postby sabayonino » Wed Dec 19, 2012 0:53

you can file a bug.
:roll:
User avatar
sabayonino
Sagely Hen
 
Posts: 1564
Joined: Sun Sep 21, 2008 1:12
Location: Italy

Re: equo libtest fails on python3 [Solved]

Postby Asfhy » Wed Dec 19, 2012 1:04

Ok, I submitted a bug and proposed the solution I found. I hope it's all ok ^_^: https://bugs.sabayon.org/show_bug.cgi?id=3864

Thanks ;)
Asfhy
Baby Hen
 
Posts: 6
Joined: Wed Dec 05, 2012 21:21


Return to Entropy|Equo|Rigo Package Managers

Who is online

Users browsing this forum: No registered users and 0 guests