Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Be careful with the last portage-9999 build it makes sepuku
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Kollin
Veteran
Veteran


Joined: 25 Feb 2006
Posts: 1139
Location: Sofia/Bulgaria

PostPosted: Wed Jan 22, 2014 9:15 pm    Post subject: Be careful with the last portage-9999 build it makes sepuku Reply with quote

After the last update of portage-9999 the result of emerge command is:
Code:
                                                       
Traceback (most recent call last):                                                       
  File "/usr/bin/emerge", line 50, in <module>                                       
    retval = emerge_main()                                                               
  File "/usr/lib64/portage/pym/_emerge/main.py", line 1016, in emerge_main               
    action=myaction, args=myfiles, opts=myopts)                                           
  File "/usr/lib64/portage/pym/portage/proxy/objectproxy.py", line 31, in __call__       
    return result(*args, **kwargs)                                                       
  File "/usr/lib64/portage/pym/_emerge/actions.py", line 3232, in load_emerge_config     
    root_trees["root_config"] = RootConfig(settings, root_trees, setconfig)               
  File "/usr/lib64/portage/pym/_emerge/RootConfig.py", line 27, in __init__               
    self.sets = self.setconfig.getSets()                                                 
  File "/usr/lib64/portage/pym/portage/_sets/__init__.py", line 263, in getSets           
    self._parse()                                                                         
  File "/usr/lib64/portage/pym/portage/_sets/__init__.py", line 223, in _parse           
    newsets = setclass.multiBuilder(optdict, self.settings, self.trees)                   
  File "/usr/lib64/portage/pym/portage/_sets/files.py", line 154, in multiBuilder     
    if d[:1] == '.':                                                                     
BytesWarning: Comparison between bytes and string


The solution is : http://www.gentoo.org/proj/en/portage/doc/manually-fixing-portage.xml
_________________
"Dear Enemy: may the Lord hate you and all your kind, may you be turned orange in hue, and may your head fall off at an awkward moment."
"Linux is like a wigwam - no windows, no gates, apache inside..."


Last edited by Kollin on Thu Jan 23, 2014 12:26 am; edited 1 time in total
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Wed Jan 22, 2014 11:30 pm    Post subject: Reply with quote

"Portage makes sepuku" sounds like a card from Cards Against Humanity. :lol:
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
TomWij
Retired Dev
Retired Dev


Joined: 04 Jul 2012
Posts: 1553

PostPosted: Thu Jan 23, 2014 9:49 pm    Post subject: Reply with quote

You can do `PYTHONWARNINGS=i emerge -1uDN =sys-apps/portage-9999` to upgrade to the version which contains a fix by Arfrever; he is one of the Portage developers, who has also suggested this temporary solution.
Back to top
View user's profile Send private message
Kollin
Veteran
Veteran


Joined: 25 Feb 2006
Posts: 1139
Location: Sofia/Bulgaria

PostPosted: Sat Jan 25, 2014 12:22 pm    Post subject: Reply with quote

TomWij wrote:
You can do `PYTHONWARNINGS=i emerge -1uDN =sys-apps/portage-9999` to upgrade to the version which contains a fix by Arfrever; he is one of the Portage developers, who has also suggested this temporary solution.


Thank you!
_________________
"Dear Enemy: may the Lord hate you and all your kind, may you be turned orange in hue, and may your head fall off at an awkward moment."
"Linux is like a wigwam - no windows, no gates, apache inside..."
Back to top
View user's profile Send private message
Kollin
Veteran
Veteran


Joined: 25 Feb 2006
Posts: 1139
Location: Sofia/Bulgaria

PostPosted: Wed Apr 09, 2014 4:27 pm    Post subject: Reply with quote

Now every time i run portage (ver sys-apps/portage-2.2.10) i'm getting this:

Code:
emerge -pv gcc
/usr/lib64/portage/pym/portage/_sets/files.py:154: BytesWarning: Comparison between bytes and string
  if d[:1] == '.':


How can i fix this?
Thank you!
_________________
"Dear Enemy: may the Lord hate you and all your kind, may you be turned orange in hue, and may your head fall off at an awkward moment."
"Linux is like a wigwam - no windows, no gates, apache inside..."
Back to top
View user's profile Send private message
TomWij
Retired Dev
Retired Dev


Joined: 04 Jul 2012
Posts: 1553

PostPosted: Wed Apr 09, 2014 5:26 pm    Post subject: Reply with quote

Seems the same thing as your first post; quite odd, reconsider to switch to either stable or 9999 using the before mentioned PYTHONWARNINGS trick.
Back to top
View user's profile Send private message
Kollin
Veteran
Veteran


Joined: 25 Feb 2006
Posts: 1139
Location: Sofia/Bulgaria

PostPosted: Wed Apr 09, 2014 5:46 pm    Post subject: Reply with quote

Thank you!
_________________
"Dear Enemy: may the Lord hate you and all your kind, may you be turned orange in hue, and may your head fall off at an awkward moment."
"Linux is like a wigwam - no windows, no gates, apache inside..."
Back to top
View user's profile Send private message
Chryyz
n00b
n00b


Joined: 12 Jan 2013
Posts: 2

PostPosted: Wed Jun 04, 2014 12:38 am    Post subject: Reply with quote

I have been watching this warning show up constantly through several portage updates, and even a world update and system rebuild. The above PYTHONWARNINGS solution does not seem to accomplish anything for me. Any advice on how to proceed?
Back to top
View user's profile Send private message
TomWij
Retired Dev
Retired Dev


Joined: 04 Jul 2012
Posts: 1553

PostPosted: Wed Jun 04, 2014 8:56 pm    Post subject: Reply with quote

According to other Portage developers, this is as intended as warnings were turned on to be able to catch them; please file bugs about them, such that the warnings can be fixed. Thank you very much in advance.

Bug reports can be filed at Gentoo Bugzilla. Read here how to write a bug report, for more in-depth details and troubleshooting steps you can read our Bugzilla HOWTO.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum