Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Emerge problem
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
Stumpy
n00b
n00b


Joined: 24 Jun 2002
Posts: 17

PostPosted: Wed Jun 26, 2002 5:08 pm    Post subject: Emerge problem Reply with quote

does anyone know what can be causing this problem? It also comes on --pretends.

Code:
!!! Invalid token (not “=”) apm
Traceback (most recent call last):
  File “/usr/bin/emerge”, line 2 in ?
    import os,sys,portage,xpak,strink,re,commands,time,threading
  File “/usr/lib/python2.2/site-packages/portage.py”, line 3457 in ?
    db[“/”][“porttree”]=portagetree(“/”,virts)
  File “/usr/lib/python2.2/site-packages/portage.py”, line 2254, in __init__
    self.portroot=settings[“PORTDIR”]
  File “/usr/lib/python2.2/site-packages/portage.py”, line 698, in __getitem__
    self.populate()
  File “/usr/lib/python2.2/site-packages/portage.py”, line 684, in populate
    userorder=self[“USE_ORDER”]
  File “/usr/lib/python2.2/site-packages/portage.py line 705 in __getitem__
    if x.has_key(mykey)
AttributeError: ‘NoneType’ object has no attribue ‘has_key’

[/code]
Back to top
View user's profile Send private message
AutoBot
l33t
l33t


Joined: 22 Apr 2002
Posts: 968
Location: Usually Out

PostPosted: Wed Jun 26, 2002 5:28 pm    Post subject: Reply with quote

It would seem somehow your python has gotten borked, try this:

Code:

wget http://www.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/Python-2.2.1.tgz
tar xzf Python-2.2.1.tgz
cd Python-2.2.1
./configure --with-fpectl --infodir=/usr/share/info/ --mandir=/usr/share/man --prefix=/usr
make
su
make install
rm /usr/bin/python 2>/dev/null
ln -s /usr/bin/python2 /usr/bin/python

_________________
This message self destructed a long time ago.
Back to top
View user's profile Send private message
Stumpy
n00b
n00b


Joined: 24 Jun 2002
Posts: 17

PostPosted: Wed Jun 26, 2002 5:37 pm    Post subject: Reply with quote

Thank you, I will try that now. :)
Back to top
View user's profile Send private message
AutoBot
l33t
l33t


Joined: 22 Apr 2002
Posts: 968
Location: Usually Out

PostPosted: Wed Jun 26, 2002 5:50 pm    Post subject: Reply with quote

If that does indeed work, I would go ahead emerge python just, well just because I like portage to do things instead of me :lol:
_________________
This message self destructed a long time ago.
Back to top
View user's profile Send private message
Stumpy
n00b
n00b


Joined: 24 Jun 2002
Posts: 17

PostPosted: Wed Jun 26, 2002 5:56 pm    Post subject: Reply with quote

I just did it, I get the same error. :(
Back to top
View user's profile Send private message
AutoBot
l33t
l33t


Joined: 22 Apr 2002
Posts: 968
Location: Usually Out

PostPosted: Wed Jun 26, 2002 6:21 pm    Post subject: Reply with quote

Ok then it looks like your going to need to use the portage rescue on the install disk.

Take a look at this thread also, so when you get your portage fixed and need to upgrad will know what version to use:

https://forums.gentoo.org/viewtopic.php?t=6002
_________________
This message self destructed a long time ago.
Back to top
View user's profile Send private message
Stumpy
n00b
n00b


Joined: 24 Jun 2002
Posts: 17

PostPosted: Wed Jun 26, 2002 7:42 pm    Post subject: Reply with quote

Thanks for the suggestion! :)

I'm a n00b to linux, so if possible can you explain how to perfrom the portage rescue?
Back to top
View user's profile Send private message
AutoBot
l33t
l33t


Joined: 22 Apr 2002
Posts: 968
Location: Usually Out

PostPosted: Wed Jun 26, 2002 8:10 pm    Post subject: Reply with quote

There should be some instructions inside the rescue file, never had to use it so I can't be of much assistance.
_________________
This message self destructed a long time ago.
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