Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge broke after a few uses.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
gratewhitesmurf
n00b
n00b


Joined: 29 Jul 2011
Posts: 4
Location: State College, PA

PostPosted: Wed Mar 21, 2012 8:48 pm    Post subject: emerge broke after a few uses. Reply with quote

I just installed Sabayon, which is based on Gentoo. As far as I can tell, it's just Gentoo, with an installer. I was able to merge a few things, but since I merged Openssh (I think that was the last one) every time I try to use the emerge command I get this:

Traceback (most recent call last):
File "/usr/bin/emerge", line 37, in <module>
from _emerge.main import emerge_main
File "/usr/lib64/portage/pym/_emerge/main.py", line 39, in <module>
from _emerge.actions import action_config, action_sync, action_metadata, \
File "/usr/lib64/portage/pym/_emerge/actions.py", line 45, in <module>
from portage.package.ebuild.doebuild import _check_temp_dir
File "/usr/lib64/portage/pym/portage/package/ebuild/doebuild.py", line 40, in <module>
from portage.dbapi.porttree import _parse_uri_map
File "/usr/lib64/portage/pym/portage/dbapi/porttree.py", line 35, in <module>
from _emerge.EbuildMetadataPhase import EbuildMetadataPhase
File "/usr/lib64/portage/pym/_emerge/EbuildMetadataPhase.py", line 4, in <module>
from _emerge.SubProcess import SubProcess
File "/usr/lib64/portage/pym/_emerge/SubProcess.py", line 5, in <module>
from _emerge.AbstractPollTask import AbstractPollTask
File "/usr/lib64/portage/pym/_emerge/AbstractPollTask.py", line 10, in <module>
from _emerge.AsynchronousTask import AsynchronousTask
File "/usr/lib64/portage/pym/_emerge/AsynchronousTask.py", line 5, in <module>
from _emerge.SlotObject import SlotObject
ImportError: No module named SlotObject

I tried revdep-rebuild, which didn't help.
I tried to reinstall portage, by unpacking Gentoo's portage .tar, that didn't do it.
I feel like the answer might be obvious to anyone who knows python, but I am unfamiliar with that language.
Back to top
View user's profile Send private message
Hu
Watchman
Watchman


Joined: 06 Mar 2007
Posts: 9393

PostPosted: Wed Mar 21, 2012 10:48 pm    Post subject: Reply with quote

What is the output of emerge --info --verbose sys-apps/portage ; equery check portage?
Back to top
View user's profile Send private message
The Doctor
Veteran
Veteran


Joined: 27 Jul 2010
Posts: 1727

PostPosted: Wed Mar 21, 2012 10:53 pm    Post subject: Reply with quote

Quote:
As far as I can tell, it's just Gentoo, with an installer.


No, its not. The world file is a mess, as are package.use, package.keywords, package.mask, and package.unmask.
If you want Gentoo, you should install Gentoo. It will give you enough experience to use the system understand it. It will also be cleaner because you will only have what you want installed. Trust me on this: it is less trouble to install Gentoo than to try to clean up Sabayon and turn it into Gentoo.

A guess for a solution if you want to save you system: try reinstalling python and portage using equo or sulfer. Emerge breaks the Sabayon tools because they loose track of what is installed, and that could be your problem. Also make sure python is set on 2.7 because python 3 is not ready for system use yet. Use this command:
Code:
sudo eselect python list
sudo eselect python set <#>
where <#> is the number for python 2.7 For my output below, that would be 1.
You should see something like this:
Code:
Available Python interpreters:
  [1]   python2.7 *
  [2]   python3.2

If you changed versions, run python-updater

EDIT: ahh, I see Hu got here first.
_________________
First things first, but not necessarily in that order.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 8486
Location: Somewhere over Atlanta, Georgia

PostPosted: Thu Mar 22, 2012 11:41 am    Post subject: Reply with quote

Moved from Portage & Programming to Unsupported Software as Sabayon is not Gentoo.

- John
_________________
I can confirm that I have received between 0 and 999 National Security Letters.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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