Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Emerge Error after "emerge sync"
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3, 4, 5  Next  
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
dephzon
n00b
n00b


Joined: 27 Nov 2003
Posts: 7

PostPosted: Wed Apr 07, 2004 10:44 am    Post subject: Emerge Error after "emerge sync" Reply with quote

While running "emerge sync" emerge was updating the portage und quit with following error:

Code:
Traceback (most recent call last):
  File "/usr/bin/emerge", line 14, in ?
    import portage
  File "/usr/lib/portage/pym/portage.py", line 6128, in ?
    settings.regenerate() # XXX: Regenerate use after we get a vartree -- GLOBAL
  File "/usr/lib/portage/pym/portage.py", line 1392, in regenerate
    self.configdict["auto"]["USE"]=autouse(db[root]["vartree"],use_cache=use_cache)
  File "/usr/lib/portage/pym/portage.py", line 1121, in autouse
    myresult=dep_check(mydep,myvartree.dbapi,None,use="no",use_cache=use_cache)
  File "/usr/lib/portage/pym/portage.py", line 3309, in dep_check
    mylist=flatten(dep_listcleanup(dep_zapdeps(mysplit,mysplit2)))
  File "/usr/lib/portage/pym/portage.py", line 3052, in dep_zapdeps
    myresult=dep_zapdeps(unreduced[x],reduced[x])
  File "/usr/lib/portage/pym/portage.py", line 3038, in dep_zapdeps
    elif myportapi.match(x):
AttributeError: 'NoneType' object has no attribute 'match'


Now, whenever i call emerge again it's the same result. I have absolutely no clue what might the problem. Anyone does?

Thanks
dephzon
Code:
Back to top
View user's profile Send private message
btg308
n00b
n00b


Joined: 14 Aug 2002
Posts: 72
Location: Östersund, Sweden

PostPosted: Wed Apr 07, 2004 10:49 am    Post subject: Reply with quote

Same here. Both in an existing install and a new one. Tried the suggestions for removing stuff out of the virtuals file from in bug 40831, but I didn't have the Sun entry in there. Removed a blackdown entry just in case, didn't help. Fixvirtuals gives the same error.
_________________
Gentoo Linux - Feel the speed.
Kawasaki GPZ 1100 - The need for speed.
Back to top
View user's profile Send private message
tran
n00b
n00b


Joined: 07 Apr 2004
Posts: 7

PostPosted: Wed Apr 07, 2004 10:53 am    Post subject: Reply with quote

same problem here
Back to top
View user's profile Send private message
paour
n00b
n00b


Joined: 07 Apr 2004
Posts: 1

PostPosted: Wed Apr 07, 2004 10:58 am    Post subject: Reply with quote

I'm having the same problem.

It's the very first time I'm having a problem with Gentoo, in 8 months of pretty intense usage. Congratulations!
Back to top
View user's profile Send private message
geoffs
n00b
n00b


Joined: 15 Feb 2003
Posts: 35
Location: Canada

PostPosted: Wed Apr 07, 2004 11:13 am    Post subject: Reply with quote

UGH, me too.

What can I do at 5am now that gentoo is broken? Homework? NEVER!
_________________
CAT
Back to top
View user's profile Send private message
Peerke
n00b
n00b


Joined: 07 Apr 2004
Posts: 9

PostPosted: Wed Apr 07, 2004 11:14 am    Post subject: Reply with quote

Same problem here.
Does somebody know how to fix this?
Back to top
View user's profile Send private message
mastabog
n00b
n00b


Joined: 13 Mar 2004
Posts: 59

PostPosted: Wed Apr 07, 2004 11:16 am    Post subject: Reply with quote

Damn, same here. And i was hoping to find a solution since the last post was from today, but it seem to be pretty recent. I think they messed something up in the new tree.
Back to top
View user's profile Send private message
btg308
n00b
n00b


Joined: 14 Aug 2002
Posts: 72
Location: Östersund, Sweden

PostPosted: Wed Apr 07, 2004 11:17 am    Post subject: Reply with quote

The portage-rescue stunt should fix it, but it (IIRC) messes with your config files (make.conf, fstab et al) so back those up beforehand.
_________________
Gentoo Linux - Feel the speed.
Kawasaki GPZ 1100 - The need for speed.
Back to top
View user's profile Send private message
Peerke
n00b
n00b


Joined: 07 Apr 2004
Posts: 9

PostPosted: Wed Apr 07, 2004 11:18 am    Post subject: Reply with quote

If the new tree is wrong there will be a lot of people replying here soon.
Back to top
View user's profile Send private message
btg308
n00b
n00b


Joined: 14 Aug 2002
Posts: 72
Location: Östersund, Sweden

PostPosted: Wed Apr 07, 2004 11:19 am    Post subject: Reply with quote

geoffs wrote:
What can I do at 5am now that gentoo is broken? Homework? NEVER!

Have some fun while you wait: http://www.phdcomics.com/comics/archive.php?comicid=3

Set a Topic Reply Notification and relax. ;-)
_________________
Gentoo Linux - Feel the speed.
Kawasaki GPZ 1100 - The need for speed.
Back to top
View user's profile Send private message
mastabog
n00b
n00b


Joined: 13 Mar 2004
Posts: 59

PostPosted: Wed Apr 07, 2004 11:27 am    Post subject: Reply with quote

For those of you who can read french here might be a solution:
https://forums.gentoo.org/viewtopic.php?t=155845&highlight=emerge+traceback

For those of you who don't, they practically suggest to recompile python by hand. I haven't tried this yet, but if a solution doesn't come up soon i will.

Anyone fixed this yet?

Cheers
Back to top
View user's profile Send private message
geoffs
n00b
n00b


Joined: 15 Feb 2003
Posts: 35
Location: Canada

PostPosted: Wed Apr 07, 2004 11:28 am    Post subject: Reply with quote

I fixed it instead of having fun :) Or was fixing it fun? I don't know...it is late.

Check this bug out
https://bugs.gentoo.org/show_bug.cgi?id=40831

I used comment #19

Quote:
Line 3029 in /usr/lib/portage/pym/portage.py.
From
if portdbapi:
To
if myportapi:


As well as comment #36 and #37

I CAN EMERGE AGAIN! But now I really should do homework.
_________________
CAT
Back to top
View user's profile Send private message
mastabog
n00b
n00b


Joined: 13 Mar 2004
Posts: 59

PostPosted: Wed Apr 07, 2004 11:32 am    Post subject: Reply with quote

this is the 3rd reply i'm typing since 5 minutes ago and already someone came up with a fix.

THANKS! I'll try it asap.

p.s. This is one of the main reasons i LOVE gentoo ... because of its damn and simple official forum .. Why in the hell don't all other distribuitions have one???
Back to top
View user's profile Send private message
gspr
Tux's lil' helper
Tux's lil' helper


Joined: 07 Sep 2002
Posts: 127

PostPosted: Wed Apr 07, 2004 11:33 am    Post subject: Reply with quote

Same problem here.
Regarding geoffs' suggestion: What exactly will that do?
_________________
"People said I should accept the world. Bullshit! I don't accept the world." -- RMS.
"We are to admit no more causes of natural things than such as are both true and sufficient to explain their appearances." -- Newton.
Back to top
View user's profile Send private message
geoffs
n00b
n00b


Joined: 15 Feb 2003
Posts: 35
Location: Canada

PostPosted: Wed Apr 07, 2004 11:35 am    Post subject: Reply with quote

NO! Why does anyone use a different distro is my question.
_________________
CAT
Back to top
View user's profile Send private message
geoffs
n00b
n00b


Joined: 15 Feb 2003
Posts: 35
Location: Canada

PostPosted: Wed Apr 07, 2004 11:36 am    Post subject: Reply with quote

gspr wrote:
Same problem here.
Regarding geoffs' suggestion: What exactly will that do?


It will take away the problems that you are having...like magic :) Well it did for me, YMMV.
_________________
CAT
Back to top
View user's profile Send private message
btg308
n00b
n00b


Joined: 14 Aug 2002
Posts: 72
Location: Östersund, Sweden

PostPosted: Wed Apr 07, 2004 11:37 am    Post subject: Reply with quote

There you go, I had tried the other suggestions in that bug (not that one since it seemed from the reports that it didn't help) but it did the trick.
_________________
Gentoo Linux - Feel the speed.
Kawasaki GPZ 1100 - The need for speed.
Back to top
View user's profile Send private message
mastabog
n00b
n00b


Joined: 13 Mar 2004
Posts: 59

PostPosted: Wed Apr 07, 2004 11:43 am    Post subject: Reply with quote

1st off, thanks go to geoffs for his fast responses and mining abilities at that late hour :D

Then, here are the 2 bugs submitted at gentoo.org reffering to this:
https://bugs.gentoo.org/show_bug.cgi?id=40831
https://bugs.gentoo.org/show_bug.cgi?id=47063

The 2nd one is the exact bug we have experienced in this thread. Read the 1st comment, it contains the fix:

Code:
------- Additional Comment #1 From Artur Brodowski 2004-04-07 04:23 PST -------
Something is wrong with "virtuals" file.
I've copied one from profiles/default-x86-1.4 to profiles/default-x86-2004.0
and portage seems to work now.


Either do that or the fix geoffs suggested earlier and you'd e ok.

Cheers and happy emerging once again :)
Back to top
View user's profile Send private message
tran
n00b
n00b


Joined: 07 Apr 2004
Posts: 7

PostPosted: Wed Apr 07, 2004 11:45 am    Post subject: Reply with quote

strange. i had the error after doing "emerge sync" this morning. i've done this:

Quote:

Line 3029 in /usr/lib/portage/pym/portage.py.
From
if portdbapi:
To
if myportapi:


after that, "emerge sync" works. then, i've done "emerge -U world". this installs the portage update, but afer that, emerge is broken again.

fixed /usr/lib/portage/pym/portage.py again an now emerge is working.
Back to top
View user's profile Send private message
mastabog
n00b
n00b


Joined: 13 Mar 2004
Posts: 59

PostPosted: Wed Apr 07, 2004 11:50 am    Post subject: Reply with quote

Still can't believe this got fixed in less than 30 minutes

Long live the forums, in concept and the gentoo ones. Damn they are powerful, both :)
Back to top
View user's profile Send private message
BlinkEye
Veteran
Veteran


Joined: 21 Oct 2003
Posts: 1046
Location: Gentoo Forums

PostPosted: Wed Apr 07, 2004 12:27 pm    Post subject: Reply with quote

any idea why this isn't working for a to-be-gentoo installation? i downloaded the current 2004.gentoo stage1 and am stucking with
Code:
emerge sync

your suggestions helped to remove the errors, but now portage hangs (forever):
Code:
# emerge --version


Performing Global Updates: /usr/portage/profiles/updates/1Q-2003
(Could take a couple minutes if you have a lot of binary packages.)
  .='update pass'  *='binary update'  @='/var/db move'
  s='/var/db SLOT move' S='binary SLOT move'
..........................


Performing Global Updates: /usr/portage/profiles/updates/1Q-2004
(Could take a couple minutes if you have a lot of binary packages.)
  .='update pass'  *='binary update'  @='/var/db move'
  s='/var/db SLOT move' S='binary SLOT move'
.........................................


Performing Global Updates: /usr/portage/profiles/updates/2Q-2004
(Could take a couple minutes if you have a lot of binary packages.)
  .='update pass'  *='binary update'  @='/var/db move'
  s='/var/db SLOT move' S='binary SLOT move'
.................

ah, this is annoying. everytime i think or say: "bah, this isn't gonna take long" something proves me wrong. murphy's law?


Last edited by BlinkEye on Wed Apr 07, 2004 12:30 pm; edited 1 time in total
Back to top
View user's profile Send private message
GamesBond
n00b
n00b


Joined: 15 Mar 2004
Posts: 66
Location: Amsterdam

PostPosted: Wed Apr 07, 2004 12:29 pm    Post subject: Reply with quote

After applying the fix, is it safe to try an emerge sync again?

Or will that break the system again?
Back to top
View user's profile Send private message
mrjackson2k
n00b
n00b


Joined: 10 Aug 2003
Posts: 38

PostPosted: Wed Apr 07, 2004 12:57 pm    Post subject: Reply with quote

i did an emerge sync before i left for work this morning and got the error and proceeded to freak out :oops:
first topic on the forumn was this one and now i'm back in buisness :) thanks guys

i upgated portage after fixing the script and it broke again, so i fixed the script again and it seems to be good now
_________________
emerge -s girlfriend
Searching...
[ Results For Search Key : girlfriend ]
[ Applications Found : 0 ]
Back to top
View user's profile Send private message
sirber
n00b
n00b


Joined: 07 Apr 2004
Posts: 37

PostPosted: Wed Apr 07, 2004 1:11 pm    Post subject: Reply with quote

geoffs wrote:
I fixed it instead of having fun :) Or was fixing it fun? I don't know...it is late.

Check this bug out
https://bugs.gentoo.org/show_bug.cgi?id=40831

I used comment #19

Quote:
Line 3029 in /usr/lib/portage/pym/portage.py.
From
if portdbapi:
To
if myportapi:


As well as comment #36 and #37

I CAN EMERGE AGAIN! But now I really should do homework.
Worked for me! Thanks!!!! :D
Back to top
View user's profile Send private message
BlinkEye
Veteran
Veteran


Joined: 21 Oct 2003
Posts: 1046
Location: Gentoo Forums

PostPosted: Wed Apr 07, 2004 1:16 pm    Post subject: Reply with quote

well,
Code:
emerge-webrsync
seems to work with the adjustement of geoffs. i hope that after having installed the hole system the problem will be solved.
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
Goto page 1, 2, 3, 4, 5  Next
Page 1 of 5

 
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