| View previous topic :: View next topic |
| Author |
Message |
dephzon n00b

Joined: 27 Nov 2003 Posts: 7
|
Posted: Wed Apr 07, 2004 10:44 am Post subject: Emerge Error after "emerge sync" |
|
|
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 |
|
| Back to top |
|
 |
btg308 n00b


Joined: 14 Aug 2002 Posts: 72 Location: Östersund, Sweden
|
Posted: Wed Apr 07, 2004 10:49 am Post subject: |
|
|
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 |
|
 |
tran n00b

Joined: 07 Apr 2004 Posts: 7
|
Posted: Wed Apr 07, 2004 10:53 am Post subject: |
|
|
| same problem here |
|
| Back to top |
|
 |
paour n00b

Joined: 07 Apr 2004 Posts: 1
|
Posted: Wed Apr 07, 2004 10:58 am Post subject: |
|
|
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 |
|
 |
geoffs n00b


Joined: 15 Feb 2003 Posts: 35 Location: Canada
|
Posted: Wed Apr 07, 2004 11:13 am Post subject: |
|
|
UGH, me too.
What can I do at 5am now that gentoo is broken? Homework? NEVER! _________________ CAT |
|
| Back to top |
|
 |
Peerke n00b

Joined: 07 Apr 2004 Posts: 9
|
Posted: Wed Apr 07, 2004 11:14 am Post subject: |
|
|
Same problem here.
Does somebody know how to fix this? |
|
| Back to top |
|
 |
mastabog n00b


Joined: 13 Mar 2004 Posts: 59
|
Posted: Wed Apr 07, 2004 11:16 am Post subject: |
|
|
| 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 |
|
 |
btg308 n00b


Joined: 14 Aug 2002 Posts: 72 Location: Östersund, Sweden
|
Posted: Wed Apr 07, 2004 11:17 am Post subject: |
|
|
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 |
|
 |
Peerke n00b

Joined: 07 Apr 2004 Posts: 9
|
Posted: Wed Apr 07, 2004 11:18 am Post subject: |
|
|
| If the new tree is wrong there will be a lot of people replying here soon. |
|
| Back to top |
|
 |
btg308 n00b


Joined: 14 Aug 2002 Posts: 72 Location: Östersund, Sweden
|
Posted: Wed Apr 07, 2004 11:19 am Post subject: |
|
|
| 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 |
|
 |
mastabog n00b


Joined: 13 Mar 2004 Posts: 59
|
|
| Back to top |
|
 |
geoffs n00b


Joined: 15 Feb 2003 Posts: 35 Location: Canada
|
Posted: Wed Apr 07, 2004 11:28 am Post subject: |
|
|
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 |
|
 |
mastabog n00b


Joined: 13 Mar 2004 Posts: 59
|
Posted: Wed Apr 07, 2004 11:32 am Post subject: |
|
|
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 |
|
 |
gspr Tux's lil' helper


Joined: 07 Sep 2002 Posts: 127
|
Posted: Wed Apr 07, 2004 11:33 am Post subject: |
|
|
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 |
|
 |
geoffs n00b


Joined: 15 Feb 2003 Posts: 35 Location: Canada
|
Posted: Wed Apr 07, 2004 11:35 am Post subject: |
|
|
NO! Why does anyone use a different distro is my question. _________________ CAT |
|
| Back to top |
|
 |
geoffs n00b


Joined: 15 Feb 2003 Posts: 35 Location: Canada
|
Posted: Wed Apr 07, 2004 11:36 am Post subject: |
|
|
| 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 |
|
 |
btg308 n00b


Joined: 14 Aug 2002 Posts: 72 Location: Östersund, Sweden
|
Posted: Wed Apr 07, 2004 11:37 am Post subject: |
|
|
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 |
|
 |
mastabog n00b


Joined: 13 Mar 2004 Posts: 59
|
Posted: Wed Apr 07, 2004 11:43 am Post subject: |
|
|
1st off, thanks go to geoffs for his fast responses and mining abilities at that late hour
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 |
|
 |
tran n00b

Joined: 07 Apr 2004 Posts: 7
|
Posted: Wed Apr 07, 2004 11:45 am Post subject: |
|
|
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 |
|
 |
mastabog n00b


Joined: 13 Mar 2004 Posts: 59
|
Posted: Wed Apr 07, 2004 11:50 am Post subject: |
|
|
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 |
|
 |
BlinkEye Veteran

Joined: 21 Oct 2003 Posts: 1046 Location: Gentoo Forums
|
Posted: Wed Apr 07, 2004 12:27 pm Post subject: |
|
|
any idea why this isn't working for a to-be-gentoo installation? i downloaded the current 2004.gentoo stage1 and am stucking with
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 |
|
 |
GamesBond n00b

Joined: 15 Mar 2004 Posts: 66 Location: Amsterdam
|
Posted: Wed Apr 07, 2004 12:29 pm Post subject: |
|
|
After applying the fix, is it safe to try an emerge sync again?
Or will that break the system again? |
|
| Back to top |
|
 |
mrjackson2k n00b

Joined: 10 Aug 2003 Posts: 38
|
Posted: Wed Apr 07, 2004 12:57 pm Post subject: |
|
|
i did an emerge sync before i left for work this morning and got the error and proceeded to freak out
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 |
|
 |
sirber n00b


Joined: 07 Apr 2004 Posts: 37
|
Posted: Wed Apr 07, 2004 1:11 pm Post subject: |
|
|
| 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!!!!  |
|
| Back to top |
|
 |
BlinkEye Veteran

Joined: 21 Oct 2003 Posts: 1046 Location: Gentoo Forums
|
Posted: Wed Apr 07, 2004 1:16 pm Post subject: |
|
|
| well, 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 |
|
 |
|