Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Python 2.3.6-r2 is blocking python-updater. can't update p..
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10308
Location: Córdoba (Spain)

PostPosted: Thu Nov 15, 2007 3:14 pm    Post subject: Reply with quote

peterxsharp, to quote myself:

i92guboj wrote:
geforce wrote:
Should I try an

Code:
emerge --nodeps -v =dev-lang/python-2.4.4-r5


and afther run
Code:
emerge -C =dev-lang/python-2.3.6-r2


??


You could, but be sure you make the quickpkg first, as I told you above. So, if something goes wrong, you can revert emerge to a working state.

Also, in case this goes wrong, just unmerge python and use this guide to manually recover a working portage system:

http://www.gentoo.org/proj/en/portage/doc/manually-fixing-portage.xml


Look into that link, the instructions are precise enough.
_________________
Gentoo Handbook | My website
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10308
Location: Córdoba (Spain)

PostPosted: Thu Nov 15, 2007 3:17 pm    Post subject: Reply with quote

peterxsharp, to quote myself:

i92guboj wrote:
geforce wrote:
Should I try an

Code:
emerge --nodeps -v =dev-lang/python-2.4.4-r5


and afther run
Code:
emerge -C =dev-lang/python-2.3.6-r2


??


You could, but be sure you make the quickpkg first, as I told you above. So, if something goes wrong, you can revert emerge to a working state.

Also, in case this goes wrong, just unmerge python and use this guide to manually recover a working portage system:

http://www.gentoo.org/proj/en/portage/doc/manually-fixing-portage.xml


Look into that link, the instructions are precise enough.

EDIT: If you need to manually install python, and you got a tarball, post the output of:

Code:

tar -tvzf <tarball-file.tgz>


Be sure you change 'z' by 'j' if the file is a tbz2 or tar.bz2 file.
_________________
Gentoo Handbook | My website
Back to top
View user's profile Send private message
spindle
Apprentice
Apprentice


Joined: 01 Dec 2003
Posts: 243

PostPosted: Thu Nov 15, 2007 5:32 pm    Post subject: Reply with quote

This may work.

But use one of the package(s) that you get from
Code:
ls /usr/portage/distfiles/Python-*

It should still be on your machine.
Back to top
View user's profile Send private message
peterxsharp
n00b
n00b


Joined: 11 Oct 2007
Posts: 37

PostPosted: Thu Nov 15, 2007 7:04 pm    Post subject: Reply with quote

Code:
localhost root # emerge --nodeps -v =dev-lang/python-2.4.4-r5
-bash: /usr/bin/emerge: /usr/bin/python: bad interpreter: No such file or directory
localhost root # tar -tvzf <tarball-file.tgz>
-bash: syntax error near unexpected token `newline'
localhost root # ls /usr/portage/distfiles/Python-*
/usr/portage/distfiles/Python-2.4.4.tar.bz2
localhost root # tar -tvzf <tarballpython-2.4.4.tar.bz2>
-bash: syntax error near unexpected token `newline'
localhost root # tar -tvzf tarballpython-2.4.4.tar.bz2
tar: tarballpython-2.4.4.tar.bz2: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
localhost root # tar -tvzf tarball-python-2.4.4.tar.bz2
tar: tarball-python-2.4.4.tar.bz2: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
localhost root # tar -tvjf tarball-python-2.4.4.tar.bz2
tar: tarball-python-2.4.4.tar.bz2: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
localhost root # tar -tvjf tarball-python-2.51.tar     
tar: tarball-python-2.51.tar: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
localhost root # tar -tvzf tarball-python-2.51.tar
tar: tarball-python-2.51.tar: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
localhost root # cd root
-bash: cd: root: No such file or directory
localhost root # cd ..
localhost / # tar -tvzf tarball-python-2.51.tar
tar: tarball-python-2.51.tar: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors


what am i doing wrong

keep in mind i cannot use emerge

python was unmerged yesterday
Back to top
View user's profile Send private message
peterxsharp
n00b
n00b


Joined: 11 Oct 2007
Posts: 37

PostPosted: Thu Nov 15, 2007 7:10 pm    Post subject: Reply with quote

Quote:
Code:
localhost / # cd /root/portage-recover/portage-2.1.1
localhost portage-2.1.1 # cp -R pym bin /usr/lib/portage/
localhost portage-2.1.1 # emerge portage
-bash: /usr/bin/emerge: /usr/bin/python: bad interpreter: No such file or directory


the recovery i did before i unmerged python yesterday
so i know its still good but it doesn't do anything
Back to top
View user's profile Send private message
peterxsharp
n00b
n00b


Joined: 11 Oct 2007
Posts: 37

PostPosted: Thu Nov 15, 2007 7:15 pm    Post subject: Reply with quote

localhost root # ls /usr/portage/distfiles/Python-*
/usr/portage/distfiles/Python-2.4.4.tar.bz2

it there but i can't do anything with it

no emerge nothing
Back to top
View user's profile Send private message
peterxsharp
n00b
n00b


Joined: 11 Oct 2007
Posts: 37

PostPosted: Thu Nov 15, 2007 7:18 pm    Post subject: Reply with quote

Code:
localhost root # emerge -uDv python
-bash: /usr/bin/emerge: /usr/bin/python: bad interpreter: No such file or directory     // same error whenever i use emerge

localhost root # $ head /usr/bin/emerge
-bash: $: command not found
localhost root # head /usr/bin/emerge
#!/usr/bin/python -O
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id: emerge 4406 2006-09-04 22:35:17Z zmedico $

import sys
# This block ensures that ^C interrupts are handled quietly.
try:
        import signal

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


Joined: 04 Nov 2005
Posts: 9345

PostPosted: Fri Nov 16, 2007 8:04 am    Post subject: Reply with quote

peterxsharp wrote:
i got the python 2.5 package form net unpaked it and moved it to /usr/bin/Python-2.5
Where from?

The simplest fix would be to download the package from the tinderbox repository which matched the architecture of the system from which dev-lang/python was removed. Place that file in $PKGDIR on that system. Then unpack that package directly under /, tar xvjf $PKGDIR/python-2.4.4-r6.tbz2 should do it, though $PKGDIR will likely need to be manually expanded as it is not typically present in the environment. Next emerge -K dev-lang/python, then continue with updating python and the other packages as you had been.
Back to top
View user's profile Send private message
peterxsharp
n00b
n00b


Joined: 11 Oct 2007
Posts: 37

PostPosted: Fri Nov 16, 2007 6:13 pm    Post subject: Reply with quote

Code:
localhost root # emerge -K dev-lang/python
-bash: /usr/bin/emerge: /usr/bin/python: bad interpreter: No such file or directory


i followed the
Quote:
The simplest fix would be to download the package from the tinderbox repository which matched the architecture of the system from which dev-lang/python was removed. Place that file in $PKGDIR on that system. Then unpack that package directly under /, tar xvjf $PKGDIR/python-2.4.4-r6.tbz2 should do it


everything is fine package installed and all

then then i get the error uptop
Back to top
View user's profile Send private message
peterxsharp
n00b
n00b


Joined: 11 Oct 2007
Posts: 37

PostPosted: Fri Nov 16, 2007 6:27 pm    Post subject: Reply with quote

all files are where they should be

but i still cannot use emerge
Back to top
View user's profile Send private message
desultory
Administrator
Administrator


Joined: 04 Nov 2005
Posts: 9345

PostPosted: Mon Nov 19, 2007 9:43 am    Post subject: Reply with quote

With the tarball unpacked into /, ln -s /usr/bin/python2.4 /usr/bin/python should be enough to get python working for emerge -K dev-lang/python, after which you should be able to proceed normally.
Back to top
View user's profile Send private message
peterxsharp
n00b
n00b


Joined: 11 Oct 2007
Posts: 37

PostPosted: Mon Nov 19, 2007 1:34 pm    Post subject: Fixed Reply with quote

1) cd /root
2) tar xjf /usr/portage/distfiles/Python-2.4.4.tar.bz2
3) cd Python-2.4.4
4) ./configure && make && make install && cp -a /usr/local/bin/* /usr/bin/ && cp -a /usr/local/lib/* /usr/lib

did the trick
Back to top
View user's profile Send private message
drescherjm
Advocate
Advocate


Joined: 05 Jun 2004
Posts: 2779
Location: Pittsburgh, PA, USA

PostPosted: Mon Nov 19, 2007 5:28 pm    Post subject: Reply with quote

I did the following
Code:
emerge =dev-lang/python-2.3.6-r2


then
Code:
emerge python


And it installed the latest version but if I run python-updater I have the following problem:

Code:
 # python-updater
 * Starting Python Updater from 2.3 to 2.4 :
 * Searching for packages with files in /usr/lib/python2.3 /usr/lib32/python2.3 /usr/lib64/python2.3 ..
 * Adding to list: =sys-apps/file-4.10
 * Adding to list: =dev-python/python-fchksum-1.7.1
 * Adding to list: =dev-python/pycrypto-2.0.1-r5
Calculating dependencies |
emerge: there are no ebuilds to satisfy "=sys-apps/file-4.10".


The interesting thing is that sys-apps/file-4.10 is the version installed. I assume the problem here is that version was removed from portage.

Other than that emerge works.
_________________
John

My gentoo overlay
Instructons for overlay
Back to top
View user's profile Send private message
desultory
Administrator
Administrator


Joined: 04 Nov 2005
Posts: 9345

PostPosted: Tue Nov 20, 2007 8:01 am    Post subject: Reply with quote

Code:
python-updater -i
Back to top
View user's profile Send private message
drescherjm
Advocate
Advocate


Joined: 05 Jun 2004
Posts: 2779
Location: Pittsburgh, PA, USA

PostPosted: Tue Nov 20, 2007 5:53 pm    Post subject: Reply with quote

Thank you. I saw that but was not sure if it was the correct thing to do. I just started that. 29 packages need to be updated.
_________________
John

My gentoo overlay
Instructons for overlay
Back to top
View user's profile Send private message
r1chardgreen
n00b
n00b


Joined: 10 Feb 2003
Posts: 43

PostPosted: Thu Nov 22, 2007 10:27 pm    Post subject: Reply with quote

Thanks, that did it for me too!

RoTTe wrote:

Hi,

I have the same problem, solved with this:

First: python-update:

SerVer ~ # python-updater
* Logging disabled due to permissions
* Starting Python Updater from 2.3 to 2.4 :
* Searching for packages with files in /usr/lib/python2.3 /usr/lib32/python2.3 /usr/lib64/python2.3 ..
* Calculating Upgrade Package List ..
* Re-ordering packages to merge ..
* Preparing to merge these packages in this order:
* Python update completed successfully.

This change the python 2.3 to 2.4.

Now:

SerVer ~ # emerge -pCv python-2.3.5

>>> These are the packages that would be unmerged:

dev-lang/python
selected: 2.3.5
protected: none
omitted: 2.4.3-r4

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.

And now:

emerge -pv python

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild N ] app-admin/python-updater-0.2 3 kB
[ebuild U ] dev-lang/python-2.4.4-r5 [2.4.3-r4] USE="berkdb gdbm ipv6 ncurses readline ssl -bootstrap -build -doc -examples% -nocxx -nothreads% -tk -ucs2" 7,976 kB

The problem was python-update script to change the "slots?" (you NEED execute, my system need more mantience :()

.
.
.
Back to top
View user's profile Send private message
letartare
n00b
n00b


Joined: 13 Jan 2007
Posts: 2

PostPosted: Sun Dec 02, 2007 11:37 pm    Post subject: Reply with quote

peterxsharp wrote:
Code:
localhost root # emerge -K dev-lang/python
-bash: /usr/bin/emerge: /usr/bin/python: bad interpreter: No such file or directory


i followed the
Quote:
The simplest fix would be to download the package from the tinderbox repository which matched the architecture of the system from which dev-lang/python was removed. Place that file in $PKGDIR on that system. Then unpack that package directly under /, tar xvjf $PKGDIR/python-2.4.4-r6.tbz2 should do it


everything is fine package installed and all

then then i get the error uptop


I also followed the solution mentioned in the innermost quote above.
Unpacking the package simply into / worked fine. Then emerge did not work (as above), but this is because the package only contains the binary file /usr/bin/python2.4.

You need to create one or two more symbolic links. I created the following two (emerge needs the second one, but I also created the first one, as I saw it existing on another gentoo system):
ln -s /usr/bin/python2.4 /usr/bin/python2
ln -s /usr/bin/python2.4 /usr/bin/python

Then emerge finds the just unpacked python, and all is well :).
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
Goto page Previous  1, 2
Page 2 of 2

 
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