Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge error
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
hulmeman
Apprentice
Apprentice


Joined: 02 Jul 2002
Posts: 184
Location: Duchy of Lancaster, England.

PostPosted: Tue Jul 02, 2002 8:13 pm    Post subject: emerge error Reply with quote

Ive installed GENTOO and Im seriously impressed, till I installed netbeans. When I now try to install anything, nothing happens and I get this error message:

emerge -s dev-util/anjuta

!!! Invalid token (not "=") It's
Traceback (most recent call last):
File "/usr/bin/emerge", line 2, in ?
import os,sys,portage,xpak,string,re,commands,time,threading,grp
File "/usr/lib/python2.2/site-packages/portage.py", line 3468, in ?
settings=config()
File "/usr/lib/python2.2/site-packages/portage.py", line 648, in __init__
useorder=self["USE_ORDER"]
File "/usr/lib/python2.2/site-packages/portage.py", line 713, in __getitem__
if x.has_key(mykey):
AttributeError: 'NoneType' object has no attribute 'has_key'


Anyone help me?
Thanks
Baz
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Tue Jul 02, 2002 8:15 pm    Post subject: Reply with quote

That's not a netbeans thing, that's a Portage bug that the dev team knows about. A new version, with a fix, will be out Real Soon Now (TM).
_________________
I don't believe in witty sigs.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20053

PostPosted: Tue Jul 02, 2002 8:19 pm    Post subject: Reply with quote

It looks like portage might be broken. Do you know which version you have? Also, I think 'emerge -s anjuta'
is the command you want. For me, including dev-util returned 0 applications found.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Tue Jul 02, 2002 8:22 pm    Post subject: Reply with quote

Wait a minute... that's not the Real Soon Now (TM) bug.

Try using "emerge rsync --clean; emerge portage" to update your tree and re-install Portage.
_________________
I don't believe in witty sigs.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20053

PostPosted: Tue Jul 02, 2002 8:28 pm    Post subject: Reply with quote

delta407 wrote:
Wait a minute... that's not the Real Soon Now (TM) bug.

Try using "emerge rsync --clean; emerge portage" to update your tree and re-install Portage.
Just curious... was there something in particular that clued you in to this?
I'd hate to see "emerge rsync --clean; emerge portage" become Gentoo's
version of Microsoft's reboot :D
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Tue Jul 02, 2002 8:35 pm    Post subject: Reply with quote

kanuslupus wrote:
Just curious... was there something in particular that clued you in to this?


Yeah. The Real Soon Now (TM) bug is in dependency graph creation:

Code:
# emerge world -ep

These are the packages that I would merge, in order.

Calculating world dependencies -Traceback (most recent call last):
  File "/usr/bin/emerge", line 1227, in ?
    if not mydepgraph.syscreate(getworldlist()):
  File "/usr/bin/emerge", line 523, in syscreate
    if not self.create(self.match(myline,mykey="syscreate1")):
  File "/usr/bin/emerge", line 466, in create
    if not self.create(mynew,mybigkey):
  File "/usr/bin/emerge", line 466, in create
    if not self.create(mynew,mybigkey):
  File "/usr/bin/emerge", line 466, in create
    if not self.create(mynew,mybigkey):
  File "/usr/bin/emerge", line 466, in create
    if not self.create(mynew,mybigkey):
  File "/usr/bin/emerge", line 466, in create
    if not self.create(mynew,mybigkey):
  File "/usr/bin/emerge", line 466, in create
    if not self.create(mynew,mybigkey):
  File "/usr/bin/emerge", line 410, in create
    edepend=portage.db[myroot]["porttree"].dbapi.aux_get(mykey,portage.auxdbkeys)
  File "/usr/lib/python2.2/site-packages/portage.py", line 2565, in aux_get
    self.auxcache[mycpv][auxdbkeys[x]]=mylines[x][:-1]
IndexError: list index out of range


...whereas this error (which I didn't read very much ;)) is not:

Code:
!!! Invalid token (not "=") It's
Traceback (most recent call last):
File "/usr/bin/emerge", line 2, in ?
import os,sys,portage,xpak,string,re,commands,time,threading,grp
File "/usr/lib/python2.2/site-packages/portage.py", line 3468, in ?
settings=config()
File "/usr/lib/python2.2/site-packages/portage.py", line 648, in __init__
useorder=self["USE_ORDER"]
File "/usr/lib/python2.2/site-packages/portage.py", line 713, in __getitem__
if x.has_key(mykey):
AttributeError: 'NoneType' object has no attribute 'has_key'

_________________
I don't believe in witty sigs.
Back to top
View user's profile Send private message
hulmeman
Apprentice
Apprentice


Joined: 02 Jul 2002
Posts: 184
Location: Duchy of Lancaster, England.

PostPosted: Tue Jul 02, 2002 11:32 pm    Post subject: Reply with quote

mmmmmmmmmmmmmmmm!
none the wiser here, what can i do?
Even a fixed version wont install, as emerge is broken!

Baz
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20053

PostPosted: Wed Jul 03, 2002 2:00 am    Post subject: Reply with quote

hulmeman wrote:
mmmmmmmmmmmmmmmm!
none the wiser here, what can i do?
Even a fixed version wont install, as emerge is broken!

Baz
You did do the 'emerge rsync --clean; emerge portage', correct?
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
hulmeman
Apprentice
Apprentice


Joined: 02 Jul 2002
Posts: 184
Location: Duchy of Lancaster, England.

PostPosted: Wed Jul 03, 2002 6:18 am    Post subject: Reply with quote

i tried
'emerge rsync --clean; emerge portage'
I tried
'emerge [everything]'
and always get the identical error!
'!! Invalid token (not "=") It's
Traceback (most recent call last):
File "/usr/bin/emerge", line 2, in ?
import os,sys,portage,xpak,string,re,commands,time,threading,grp
File "/usr/lib/python2.2/site-packages/portage.py", line 3468, in ?
settings=config()
File "/usr/lib/python2.2/site-packages/portage.py", line 648, in __init__
useorder=self["USE_ORDER"]
File "/usr/lib/python2.2/site-packages/portage.py", line 713, in __getitem__
if x.has_key(mykey):
AttributeError: 'NoneType' object has no attribute 'has_key'

My portage is version 2.0.8
Baz
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Wed Jul 03, 2002 6:24 am    Post subject: Reply with quote

You can use one of the Portage recovery tarballs. I don't want to re-invent the wheel, so I'm going to have to say: RTFM.
(In the nicest way possible, of course. ;))

Code:
# less /usr/portage/sys-apps/portage/files/README.RESCUE

_________________
I don't believe in witty sigs.
Back to top
View user's profile Send private message
hulmeman
Apprentice
Apprentice


Joined: 02 Jul 2002
Posts: 184
Location: Duchy of Lancaster, England.

PostPosted: Wed Jul 03, 2002 7:40 am    Post subject: Reply with quote

Thanks Delta!
Worked a treat (once Id tracked the tarball down)
Sweet as now!

Baz :)
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