View previous topic :: View next topic |
Author |
Message |
Stumpy n00b
Joined: 24 Jun 2002 Posts: 17
|
Posted: Wed Jun 26, 2002 5:08 pm Post subject: Emerge problem |
|
|
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 |
|
|
AutoBot l33t
Joined: 22 Apr 2002 Posts: 968 Location: Usually Out
|
Posted: Wed Jun 26, 2002 5:28 pm Post subject: |
|
|
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 |
|
|
Stumpy n00b
Joined: 24 Jun 2002 Posts: 17
|
Posted: Wed Jun 26, 2002 5:37 pm Post subject: |
|
|
Thank you, I will try that now. |
|
Back to top |
|
|
AutoBot l33t
Joined: 22 Apr 2002 Posts: 968 Location: Usually Out
|
Posted: Wed Jun 26, 2002 5:50 pm Post subject: |
|
|
If that does indeed work, I would go ahead emerge python just, well just because I like portage to do things instead of me _________________ This message self destructed a long time ago. |
|
Back to top |
|
|
Stumpy n00b
Joined: 24 Jun 2002 Posts: 17
|
Posted: Wed Jun 26, 2002 5:56 pm Post subject: |
|
|
I just did it, I get the same error. |
|
Back to top |
|
|
AutoBot l33t
Joined: 22 Apr 2002 Posts: 968 Location: Usually Out
|
Posted: Wed Jun 26, 2002 6:21 pm Post subject: |
|
|
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 |
|
|
Stumpy n00b
Joined: 24 Jun 2002 Posts: 17
|
Posted: Wed Jun 26, 2002 7:42 pm Post subject: |
|
|
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 |
|
|
AutoBot l33t
Joined: 22 Apr 2002 Posts: 968 Location: Usually Out
|
Posted: Wed Jun 26, 2002 8:10 pm Post subject: |
|
|
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 |
|
|
|