Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Emerge problem

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
Stumpy
n00b
n00b
Posts: 17
Joined: Mon Jun 24, 2002 4:57 pm

Emerge problem

  • Quote

Post by Stumpy » Wed Jun 26, 2002 5:08 pm

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

Code: Select all

!!! 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]
Top
AutoBot
l33t
l33t
User avatar
Posts: 968
Joined: Mon Apr 22, 2002 7:04 am
Location: Usually Out

  • Quote

Post by AutoBot » Wed Jun 26, 2002 5:28 pm

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

Code: Select all

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.
Top
Stumpy
n00b
n00b
Posts: 17
Joined: Mon Jun 24, 2002 4:57 pm

  • Quote

Post by Stumpy » Wed Jun 26, 2002 5:37 pm

Thank you, I will try that now. :)
Top
AutoBot
l33t
l33t
User avatar
Posts: 968
Joined: Mon Apr 22, 2002 7:04 am
Location: Usually Out

  • Quote

Post by AutoBot » Wed Jun 26, 2002 5:50 pm

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.
Top
Stumpy
n00b
n00b
Posts: 17
Joined: Mon Jun 24, 2002 4:57 pm

  • Quote

Post by Stumpy » Wed Jun 26, 2002 5:56 pm

I just did it, I get the same error. :(
Top
AutoBot
l33t
l33t
User avatar
Posts: 968
Joined: Mon Apr 22, 2002 7:04 am
Location: Usually Out

  • Quote

Post by AutoBot » Wed Jun 26, 2002 6:21 pm

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:

http://forums.gentoo.org/viewtopic.php?t=6002
This message self destructed a long time ago.
Top
Stumpy
n00b
n00b
Posts: 17
Joined: Mon Jun 24, 2002 4:57 pm

  • Quote

Post by Stumpy » Wed Jun 26, 2002 7:42 pm

Thanks for the suggestion! :)

I'm a n00b to linux, so if possible can you explain how to perfrom the portage rescue?
Top
AutoBot
l33t
l33t
User avatar
Posts: 968
Joined: Mon Apr 22, 2002 7:04 am
Location: Usually Out

  • Quote

Post by AutoBot » Wed Jun 26, 2002 8:10 pm

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.
Top
Post Reply

8 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Authors
Gentoo is a trademark of the Gentoo Foundation, Inc. and of Förderverein Gentoo e.V.
The contents of this document, unless otherwise expressly stated, are licensed under the CC-BY-SA-4.0 license.
The Gentoo Name and Logo Usage Guidelines apply.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy