Forums

Skip to content

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

Emerge portage-2.0.50 failed! [SOLVED]

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
14 posts • Page 1 of 1
Author
Message
gatiba
Guru
Guru
User avatar
Posts: 434
Joined: Sun Sep 01, 2002 10:20 am

Emerge portage-2.0.50 failed! [SOLVED]

  • Quote

Post by gatiba » Sat Feb 07, 2004 2:20 pm

Hi to all !
Upgrade to Portage 2.0.50 failed with those errors:

Code: Select all

bash-2.05b# emerge -v portage
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-apps/portage-2.0.50 to /
>>> md5 src_uri ;-) portage-2.0.50.tar.bz2
>>> Unpacking source...
>>> Unpacking portage-2.0.50.tar.bz2 to /var/tmp/portage/portage-2.0.50/work
>>> Source unpacked.
./create-localdecls
Checking truncate argument type... off_t
Checking libc version... libc.so.6
Checking glibc subversion... 2.3

gcc -march=i386 -O1 -pipe -Wall -c -D_GNU_SOURCE -DPIC -fPIC -D_REENTRANT libsandbox.c
gcc -march=i386 -O1 -pipe -Wall -c -D_GNU_SOURCE -DPIC -fPIC -D_REENTRANT sandbox_futils.c
gcc libsandbox.o sandbox_futils.o -shared -fPIC -ldl -lc -o libsandbox.so -nostdlib -lgcc
gcc -march=i386 -O1 -pipe -Wall -c sandbox.c
gcc sandbox.o sandbox_futils.o getcwd.c -ldl -lc -o sandbox

>>> Install portage-2.0.50 into /var/tmp/portage/portage-2.0.50/image/ category sys-apps
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "./setup.py", line 4, in ?
    from os import chdir, stat
ImportError: No module named os

!!! ERROR: sys-apps/portage-2.0.50 failed.
!!! Function src_install, Line 96, Exitcode 1
!!! Failed to install missingos module

bash-2.05b#
Anyone helps?
Last edited by gatiba on Tue Feb 10, 2004 9:13 pm, edited 1 time in total.
Top
mhodak
Veteran
Veteran
Posts: 1218
Joined: Sat Nov 15, 2003 9:23 am

  • Quote

Post by mhodak » Sun Feb 08, 2004 1:09 am

I just had the same problem. It seems to be due to existing /usr/bin/python2.2 file (even though I unmerged python2.2).
I removed the file and portage emerged correctly (It may be a better idea to set this file as a symlink to python2.3).
Top
Genone
Retired Dev
Retired Dev
User avatar
Posts: 9656
Joined: Fri Mar 14, 2003 6:02 pm
Location: beyond the rim

  • Quote

Post by Genone » Sun Feb 08, 2004 3:20 am

which python version ?
output of `ls -l /usr/lib/python2.?/os.*`
Top
mhodak
Veteran
Veteran
Posts: 1218
Joined: Sat Nov 15, 2003 9:23 am

  • Quote

Post by mhodak » Sun Feb 08, 2004 3:30 am

In my case:

Code: Select all

ls -l /usr/lib/python2.?/os.*
-rw-r--r--    1 root     root        21019 Jan 24 19:53 /usr/lib/python2.3/os.py
-rw-r--r--    1 root     root        25983 Jan 24 19:53 /usr/lib/python2.3/os.pyc
-rw-r--r--    1 root     root        25983 Jan 24 19:53 /usr/lib/python2.3/os.pyo
Recently, I upgraded from python2.2 to 2.3, I have run python-update script and unmerged 2.2. Did not have any problems until updating to new portage (other updates worked fine). Why /usr/bin/python2.2 was left on my system and why it caused problems now is beyond my understanding.
Top
gatiba
Guru
Guru
User avatar
Posts: 434
Joined: Sun Sep 01, 2002 10:20 am

  • Quote

Post by gatiba » Sun Feb 08, 2004 12:18 pm

This is the output:

Code: Select all

sh-2.05b$ ls -l /usr/lib/python2.?/os.*
-rw-r--r--    1 root     root        21019  7 feb 15:21 /usr/lib/python2.3/os.py
-rw-r--r--    1 root     root        25983  7 feb 15:21 /usr/lib/python2.3/os.pyc
-rw-r--r--    1 root     root        25983  7 feb 15:21 /usr/lib/python2.3/os.pyo
sh-2.05b$
Top
gatiba
Guru
Guru
User avatar
Posts: 434
Joined: Sun Sep 01, 2002 10:20 am

  • Quote

Post by gatiba » Mon Feb 09, 2004 10:22 pm

On a Gentoo System at work portage emerged fine.

I can't understand what happens on my home system... :( :(
Top
Genone
Retired Dev
Retired Dev
User avatar
Posts: 9656
Joined: Fri Mar 14, 2003 6:02 pm
Location: beyond the rim

  • Quote

Post by Genone » Tue Feb 10, 2004 9:07 pm

Can you run 'python -c "import os"' on the box in question without erros ?
Top
gatiba
Guru
Guru
User avatar
Posts: 434
Joined: Sun Sep 01, 2002 10:20 am

  • Quote

Post by gatiba » Tue Feb 10, 2004 9:12 pm

I solved emerging first Python-2.2.3-r5 (2.3.3 was already merged).
After this i emerged portage-2.0.50-r1 without errors!! :o
Top
ayssaver
n00b
n00b
Posts: 2
Joined: Tue Mar 16, 2004 9:41 am

  • Quote

Post by ayssaver » Tue Mar 16, 2004 9:48 am

Well... it not solved problem in my case. I still got error messages while emerging portage-2.50-r1 and none of portage commands work :( . Could anybody say WHY all this is happening? Maybe then I'll work out solution myself, cause I didn't find any working for me on any forums :( . Worst of all, I'm green with python ...

Code: Select all

Traceback (most recent call last):
  File "./emerge", line 14, in ?
    import portage
  File "/usr/lib/portage/pym/portage.py", line 6394, in 
    for y in db["/"]["porttree"].dbapi.xmatch("match-all", x):
  File "/usr/lib/portage/pym/portage.py", line 4705, in xmatch
    myval=match_from_list(mydep,self.cp_list(mykey))
  File "/usr/lib/portage/pym/portage.py", line 3539, in match_from_list
    raise KeyError, "Specific key requires an operator (%s) (try adding an '=')" % (mydep)
KeyError: "Specific key requires an operator (sys-kernel/linux-headers-2.6.0) (try adding an '=')"
This is stderr from emerge, etc-update and all others.
AYss
Top
Genone
Retired Dev
Retired Dev
User avatar
Posts: 9656
Joined: Fri Mar 14, 2003 6:02 pm
Location: beyond the rim

  • Quote

Post by Genone » Tue Mar 16, 2004 10:24 am

broken entry in the world file or in one of the /etc/portage files
Top
ayssaver
n00b
n00b
Posts: 2
Joined: Tue Mar 16, 2004 9:41 am

  • Quote

Post by ayssaver » Tue Mar 16, 2004 11:25 am

world file is updated with emerge sync or sth like that? Because i did it many times.
In /etc/portage only file is package.unmask and it contains only sys-kernel/linux-headers-2.6.0 .

New ideas... I don't have linux-headers-2.6.0 ... but 2.6.3-r1 . But I don't know where to change it for python scripts (as emerge). Maybe that's problem... :?
AYss
Top
BobDoLe
n00b
n00b
Posts: 1
Joined: Wed Mar 03, 2004 1:16 pm

oh jesus

  • Quote

Post by BobDoLe » Wed Mar 24, 2004 12:22 am

i just fixed my problem.

i went to /etc/portage

and hey you know that file that never existed there.. package.unmask ??

well i deleted whatever was in it.
so if yours has

linux-headers-2.6.0 in it... delete it

i hope this helps someone out somewhere down the line.
Top
0ctane
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 115
Joined: Sat Jun 21, 2003 4:23 pm
Location: Cincinnati, OH

  • Quote

Post by 0ctane » Sat Apr 24, 2004 10:07 pm

hmmm...
I do not even have a /etc/portage file or directory.

I think the actual fix has to do with python 2.3. The process is looking for python 2.2 while python 2.3 is also installed. If you make a symlink to python 2.2, everything works fine.

Code: Select all

cd /usr/bin
mv python2.2 python2.2.old
ln -s python2.3 python2.2
Then emerge portage.
<signature></signature>
-----------------------------
Top
Lucho[FLCL]
Apprentice
Apprentice
User avatar
Posts: 245
Joined: Tue Dec 02, 2003 5:51 pm
Location: Buenos Aires - Argentina

  • Quote

Post by Lucho[FLCL] » Sun Aug 08, 2004 5:27 am

0ctane wrote:hmmm...
I do not even have a /etc/portage file or directory.

I think the actual fix has to do with python 2.3. The process is looking for python 2.2 while python 2.3 is also installed. If you make a symlink to python 2.2, everything works fine.

Code: Select all

cd /usr/bin
mv python2.2 python2.2.old
ln -s python2.3 python2.2
Then emerge portage.
That worked for me :D
Top
Post Reply

14 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 Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic