Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
portage & python mystery: >>>
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
rvalles
Tux's lil' helper
Tux's lil' helper


Joined: 19 Feb 2003
Posts: 121

PostPosted: Mon Nov 26, 2007 7:18 am    Post subject: portage & python mystery: >>> Reply with quote

When I call emerge:
Code:

nyu ~ # emerge
>>>

That is, I just get a python prompt :?. The same happens if I do # python /usr/bin/emerge.

But, if I do this:
Code:

nyu ~ # cat /usr/bin/emerge|python
emerge: the other white meat (command-line interface to the Portage system)
<blah>

The same happens with other tools.

I have no idea what's going on or what to try at this point.
Back to top
View user's profile Send private message
rvalles
Tux's lil' helper
Tux's lil' helper


Joined: 19 Feb 2003
Posts: 121

PostPosted: Mon Nov 26, 2007 8:29 am    Post subject: As requested by zmedico Reply with quote

Code:

nyu ~ # cat /usr/bin/emerge |python - =dev-lang/python-2.4.4-r7 =dev-lang/python-2.5.1-r4
Calculating dependencies... done!
>>> Verifying ebuild Manifests...
>>> starting parallel fetching
Traceback (most recent call last):
  File "<stdin>", line 6564, in <module>
  File "<stdin>", line 6558, in emerge_main
  File "<stdin>", line 6017, in action_build
  File "<stdin>", line 3759, in merge
  File "/usr/lib/portage/pym/portage_exec.py", line 179, in spawn
    raise CommandNotFound(mycommand[0])
portage_exception.CommandNotFound: -
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9643
Location: beyond the rim

PostPosted: Mon Nov 26, 2007 6:15 pm    Post subject: Reply with quote

No clue what's wrong there, but should help if you reinstall portage manually.
Back to top
View user's profile Send private message
rvalles
Tux's lil' helper
Tux's lil' helper


Joined: 19 Feb 2003
Posts: 121

PostPosted: Mon Nov 26, 2007 6:47 pm    Post subject: Reply with quote

I can do that, sure.

But the mistery would remain unsolved, that way :(
Back to top
View user's profile Send private message
dusanc
Apprentice
Apprentice


Joined: 19 Sep 2005
Posts: 248
Location: Serbia

PostPosted: Fri Dec 07, 2007 11:28 pm    Post subject: emerge exits to python shell when using kernel 2.6.23-r3 Reply with quote

This sounds strange I know.
When I switched to kernel 2.6.23-gentoo-r3 from 2.6.22-gentoo-r9 emerge stopped working, exited to python shell. Something lke:

emerge -s ltsp
>>>

And by only changing back to kernel 2.6.22-gentoo-r9 everything works OK. And other python scripts stopped working too (eg. klive).

I asked on #gentoo, but nothing, filled a bugreport (https://bugs.gentoo.org/show_bug.cgi?id=201621) but was redirected to forums.

Does anyone have any ideas?

Thanks in advance
Back to top
View user's profile Send private message
limn
l33t
l33t


Joined: 13 May 2005
Posts: 997

PostPosted: Sat Dec 08, 2007 2:26 pm    Post subject: Reply with quote

Try diff-ing your 2.6.22-gentoo-r9 config with your 2.6.23-gentoo-r3 config and see if anything stands out.

When you boot to 2.6.23-gentoo-r3 watch the console for unusual messages, perhaps it has something to do with your file system.
Back to top
View user's profile Send private message
dusanc
Apprentice
Apprentice


Joined: 19 Sep 2005
Posts: 248
Location: Serbia

PostPosted: Sun Dec 09, 2007 1:15 am    Post subject: Reply with quote

limn wrote:
Try diff-ing your 2.6.22-gentoo-r9 config with your 2.6.23-gentoo-r3 config and see if anything stands out.

When you boot to 2.6.23-gentoo-r3 watch the console for unusual messages, perhaps it has something to do with your file system.

When I had this problem, I tried to rebuild 2.6.23-r3 with 2.6.22 config which I copied from /proc/config, and nothing changed.
I reemerged python and nothing.
I did and emerge -e system, and nothing changed. Nothing on revdep-rebuild
I tried 2.6.24-rc2-mm1 and nothing :)
I used the system and tested it for hours with 2.6.23-r3 and only python scripts had troubles (Klive, emerge, revdep-rebuild).
Nothing in /var/log/messages
No errors in dmesg.
System is using CFLAGS="-O2 -march=nocona -pipe" and x86 arch.
Only thing that may be considered unstable is my / which is reiser4.
dev-lang/python: 2.4.4-r6

I don't understand how a different kernel can have influence on python.

Now my strategy is to wait and hope that this will get automagically resolved some time in future :(

Thanks
Dushan
Back to top
View user's profile Send private message
UberPinguin
Guru
Guru


Joined: 20 Nov 2005
Posts: 510
Location: 2416.94 Miles From Home

PostPosted: Sun Dec 09, 2007 6:55 pm    Post subject: Reply with quote

I don't know if it has any bearing on your particular issue, but I did run into some very strange behaviors when using a certain version of the reiser4 driver. Operations involving files of a certain size and/or its multiples failed with odd errors. If you have a spare box or a virtual machine handy, you might try duplicating your system with ext3 instead of reiser4 to see if the problem persists.
_________________
aidanjt wrote:
You see, instead of arguing from ignorance, and fear, there is only one way to verify a theory. And that's not by clutching a black book and begging the sky fairy for deliverance from the mad scientists and their big machines.
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9643
Location: beyond the rim

PostPosted: Sun Dec 09, 2007 7:01 pm    Post subject: Reply with quote

Might be worth to investigate this with strace or FEATURES=python-trace to find out where it goes wrong.
Back to top
View user's profile Send private message
dusanc
Apprentice
Apprentice


Joined: 19 Sep 2005
Posts: 248
Location: Serbia

PostPosted: Sun Dec 09, 2007 8:22 pm    Post subject: Reply with quote

Genone wrote:
Might be worth to investigate this with strace or FEATURES=python-trace to find out where it goes wrong.

That's a little above my head. :)

UberPinguin wrote:

I don't know if it has any bearing on your particular issue, but I did run into some very strange behaviors when using a certain version of the reiser4 driver. Operations involving files of a certain size and/or its multiples failed with odd errors. If you have a spare box or a virtual machine handy, you might try duplicating your system with ext3 instead of reiser4 to see if the problem persists.

I had no errors in my /var/log/messages, but I thought I'll try it if I don't think of something else. But I can only do it on weekend nights :)

Thanks
Back to top
View user's profile Send private message
rvalles
Tux's lil' helper
Tux's lil' helper


Joined: 19 Feb 2003
Posts: 121

PostPosted: Mon Dec 10, 2007 10:57 am    Post subject: Isolated the problem Reply with quote

This problem has been isolated to a recent reiser4 bug; booting an older kernel without some reiser4 patch I was testing fixed it.

If any of you experience such problems, you can go back to 2.6.22.x with the reiser4-2.6.22-2 patch and it'll work fine, the current 2.6.23 patch has this problem (and it's isolated to a patch I was helping test on 2.6.22, so hopefully it'll be fixed soon)

Cheers.
Back to top
View user's profile Send private message
dusanc
Apprentice
Apprentice


Joined: 19 Sep 2005
Posts: 248
Location: Serbia

PostPosted: Mon Dec 10, 2007 1:28 pm    Post subject: Reply with quote

Looks like this is the bug introduced in reiser4 after 2.6.22
Will keep you posted

thanks for your help
Back to top
View user's profile Send private message
limn
l33t
l33t


Joined: 13 May 2005
Posts: 997

PostPosted: Mon Dec 10, 2007 1:41 pm    Post subject: Reply with quote

dusanc wrote:
I reemerged python and nothing.
I did and emerge -e system, and nothing changed. Nothing on revdep-rebuild

To clarify, is it that only emerges with certain options and certain python scripts exhibit this behavior with the new kernel?
Back to top
View user's profile Send private message
dusanc
Apprentice
Apprentice


Joined: 19 Sep 2005
Posts: 248
Location: Serbia

PostPosted: Mon Dec 10, 2007 1:48 pm    Post subject: Reply with quote

limn wrote:
dusanc wrote:
I reemerged python and nothing.
I did and emerge -e system, and nothing changed. Nothing on revdep-rebuild

To clarify, is it that only emerges with certain options and certain python scripts exhibit this behavior with the new kernel?

All python scripts I tried (emerge -s,-p etc. revdep rebuild and Klive on startup)
More reports: https://forums.gentoo.org/viewtopic-t-622022-highlight-reiser4.html
Back to top
View user's profile Send private message
desultory
Bodhisattva
Bodhisattva


Joined: 04 Nov 2005
Posts: 9410

PostPosted: Tue Dec 11, 2007 9:37 am    Post subject: Reply with quote

Merged nine of the above ten posts. The exception being the most recent post by rvalles.
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