* [gentoo-user] broken python howto
@ 2007-01-29 18:06 Daniel Iliev
2007-01-29 18:29 ` Kent Fredric
2007-01-29 18:34 ` Albert Hopkins
0 siblings, 2 replies; 9+ messages in thread
From: Daniel Iliev @ 2007-01-29 18:06 UTC (permalink / raw
To: gentoo-user
Hi, everyone
I'm facing the following problem:
emerge "<whatever>"
!!! Failed to complete python imports. These are internal modules for
!!! python and failure here indicates that you have a problem with python
!!! itself and thus portage is not able to continue processing.
!!! You might consider starting python with verbose flags to see what has
!!! gone wrong. Here is the information we got for this exception:
No module named time
Traceback (most recent call last):
File "/usr/bin/emerge", line 28, in ?
import portage
File "/usr/lib/portage/pym/portage.py", line 20, in ?
import copy, errno, os, re, shutil, string, time, types
ImportError: No module named time
How could I fix this? I found an official "howto" on recovering broken
portage but the problem here is with python, isn't it? I have no
experience with python other than using the python based tools of Gentoo
(such as portage itself) therefore I'm helpless.
Any ideas and/or suggestions will be much appreciated.
--
Best regards,
Daniel
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] broken python howto
2007-01-29 18:06 [gentoo-user] broken python howto Daniel Iliev
@ 2007-01-29 18:29 ` Kent Fredric
2007-01-29 19:38 ` Daniel Iliev
2007-01-29 18:34 ` Albert Hopkins
1 sibling, 1 reply; 9+ messages in thread
From: Kent Fredric @ 2007-01-29 18:29 UTC (permalink / raw
To: gentoo-user
On 1/30/07, Daniel Iliev <danny@ilievnet.com> wrote:
> Any ideas and/or suggestions will be much appreciated.
>
> --
The Last time i had one of those problems I cracked out an old binpkg
I had lying around ( a lesson I learned a while back on freebsd when i
had make,gcc and tar ALL break due to a common lib dying : moral of
the story: always have static copies of tar/make/bz2 in binpkgs :| )
I know its a nasty solution, but in times of desperation, a manual
untarring of a binpkg into the right place will save you much anguish.
I've not read of any other way to save that problem, other than
hacking up a recent "snapshot" and copying the files into place.
I'm sure theres a better answer than this, but I've yet to see it.
--
Kent
ruby -e '[1, 2, 4, 7, 0, 9, 5, 8, 3, 10, 11, 6, 12, 13].each{|x| print
"enNOSPicAMreil kdrtf@gma.com"[(2*x)..(2*x+1)]}'
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] broken python howto
2007-01-29 18:06 [gentoo-user] broken python howto Daniel Iliev
2007-01-29 18:29 ` Kent Fredric
@ 2007-01-29 18:34 ` Albert Hopkins
2007-01-29 20:00 ` [gentoo-user] broken python howto [SOLVED] Daniel Iliev
1 sibling, 1 reply; 9+ messages in thread
From: Albert Hopkins @ 2007-01-29 18:34 UTC (permalink / raw
To: gentoo-user
On Mon, 2007-01-29 at 20:06 +0200, Daniel Iliev wrote:
> Hi, everyone
>
> I'm facing the following problem:
>
> emerge "<whatever>"
>
>
> !!! Failed to complete python imports. These are internal modules for
> !!! python and failure here indicates that you have a problem with
> python
> !!! itself and thus portage is not able to continue processing.
>
> !!! You might consider starting python with verbose flags to see what
> has
> !!! gone wrong. Here is the information we got for this exception:
> No module named time
>
> Traceback (most recent call last):
> File "/usr/bin/emerge", line 28, in ?
> import portage
> File "/usr/lib/portage/pym/portage.py", line 20, in ?
> import copy, errno, os, re, shutil, string, time, types
> ImportError: No module named time
>
>
> How could I fix this? I found an official "howto" on recovering broken
> portage but the problem here is with python, isn't it? I have no
> experience with python other than using the python based tools of
> Gentoo
> (such as portage itself) therefore I'm helpless.
>
> Any ideas and/or suggestions will be much appreciated.
First question: what did you do?
# python
Python 2.4.4 (#1, Jan 2 2007, 19:55:21)
[GCC 4.1.1 (Gentoo 4.1.1-r3)] on linux2
Type "help", "copyright", "credits" or "license" for more
information.
>>> import time
>>> time.__file__
'/usr/lib/python2.4/lib-dynload/time.so'
Make sure that file exists and that the files that it links to exist.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] broken python howto
2007-01-29 18:29 ` Kent Fredric
@ 2007-01-29 19:38 ` Daniel Iliev
0 siblings, 0 replies; 9+ messages in thread
From: Daniel Iliev @ 2007-01-29 19:38 UTC (permalink / raw
To: gentoo-user
Kent Fredric wrote:
>
> The Last time i had one of those problems I cracked out an old binpkg
> I had lying around ( a lesson I learned a while back on freebsd when i
> had make,gcc and tar ALL break due to a common lib dying : moral of
> the story: always have static copies of tar/make/bz2 in binpkgs :| )
>
> I know its a nasty solution, but in times of desperation, a manual
> untarring of a binpkg into the right place will save you much anguish.
>
> I've not read of any other way to save that problem, other than
> hacking up a recent "snapshot" and copying the files into place.
>
> I'm sure theres a better answer than this, but I've yet to see it.
Thanks for the reply.
Yes, I keep this solutions as my last resort before full reinstall. I
just didn't want to take rash course of action before asking for advice
here.
--
Best regards,
Daniel
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] broken python howto [SOLVED]
2007-01-29 18:34 ` Albert Hopkins
@ 2007-01-29 20:00 ` Daniel Iliev
2007-01-29 21:18 ` Albert Hopkins
0 siblings, 1 reply; 9+ messages in thread
From: Daniel Iliev @ 2007-01-29 20:00 UTC (permalink / raw
To: gentoo-user
Albert Hopkins wrote:
>
> First question: what did you do?
>
> # python
> Python 2.4.4 (#1, Jan 2 2007, 19:55:21)
> [GCC 4.1.1 (Gentoo 4.1.1-r3)] on linux2
> Type "help", "copyright", "credits" or "license" for more
> information.
> >>> import time
> >>> time.__file__
> '/usr/lib/python2.4/lib-dynload/time.so'
>
> Make sure that file exists and that the files that it links to exist.
>
>
>
First of all thank you very much! :))
Actually I don't know what happened yet. I have another system with the
same hardware, the same software configuration and almost the same world
file. The first thing I checked after your message was:
"ls -la /usr/lib/python2.4/lib-dynload/"
on the broken system and it showed an empty dir. Next I made the same
check on the healthy system and it was full of files including
"time.so". So, I transfered the whole directory to the broken system and
now "emerge" works fine (at least at first glance).
Thanks again!
[OT]
Strange.
I did
"qfile time.so"
on the healthy system and it gave no results. Also I did
"qlist python | grep time.so"
and it gave no results either. I suspect something went wrong on both
systems but I'm not sure what and how to fix it.
Even more strange.
Before sending my question here I tried
"quickpkg python portage"
and extracted the contents of the archives in the root ("/") dir of the
broken system. This action didn't help. After your answer I checked the
contents of the packages made by "quickpkg":
localhost / # tar jtf python-2.4.3-r4.tbz2 | grep lib-dyn
./usr/lib/python2.4/lib-dynload/
bzip2: (stdin): trailing garbage after EOF ignored
localhost / # tar jtf portage-2.1.1-r2.tbz2 | grep lib-dyn
bzip2: (stdin): trailing garbage after EOF ignored
It appears that python only creates this directory, but I can't figure
out which packages put files in it.
Is it normal?
--
Best regards,
Daniel
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] broken python howto [SOLVED]
2007-01-29 20:00 ` [gentoo-user] broken python howto [SOLVED] Daniel Iliev
@ 2007-01-29 21:18 ` Albert Hopkins
2007-01-29 21:59 ` [gentoo-user] broken python howto [SOLVED][OT] Daniel Iliev
0 siblings, 1 reply; 9+ messages in thread
From: Albert Hopkins @ 2007-01-29 21:18 UTC (permalink / raw
To: gentoo-user
You didn't do something crazy like put "-static" in your CFLAGS did you?
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] broken python howto [SOLVED][OT]
2007-01-29 21:18 ` Albert Hopkins
@ 2007-01-29 21:59 ` Daniel Iliev
2007-01-29 22:13 ` Statux
0 siblings, 1 reply; 9+ messages in thread
From: Daniel Iliev @ 2007-01-29 21:59 UTC (permalink / raw
To: gentoo-user
Albert Hopkins wrote:
> You didn't do something crazy like put "-static" in your CFLAGS did you?
>
>
No, I don't have it in my CFLAGS:
grep CFLA /etc/make.conf
CFLAGS="-march=pentium2 -mmmx -pipe -O3 -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
(yes it's an old Compaq Pentium II @400MHz with 128MB RAM serving it's
last days as a gateway)
...but I do have "static" in mu USE flags. Forgotten there for may be a
year or so when I wanted a static busybox for init-fs. Until now I never
had problems with that system - every day it gets synced and almost
everyday I do "emerge -DuN world". I don't see "static" USE flag showing
up in python and I guess its disabled by the ebuild:
emerge -pv python
Calculating dependencies ... done!
[ebuild R ] dev-lang/python-2.4.3-r4 USE="gdbm ncurses readline ssl
-berkdb -bootstrap -build -doc -ipv6 -nocxx -tk -ucs2" 0 kB
Is this USE flag a problem?
--
Best regards,
Daniel
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] broken python howto [SOLVED][OT]
2007-01-29 21:59 ` [gentoo-user] broken python howto [SOLVED][OT] Daniel Iliev
@ 2007-01-29 22:13 ` Statux
2007-01-29 23:20 ` Daniel Iliev
0 siblings, 1 reply; 9+ messages in thread
From: Statux @ 2007-01-29 22:13 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 264 bytes --]
> No, I don't have it in my CFLAGS:
> grep CFLA /etc/make.conf
> CFLAGS="-march=pentium2 -mmmx -pipe -O3 -fomit-frame-pointer"
> CXXFLAGS="${CFLAGS}"
shouldn't -mmmx be -mmx or have I been looking at too many switches and
use flags and going cross-eyed?
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] broken python howto [SOLVED][OT]
2007-01-29 22:13 ` Statux
@ 2007-01-29 23:20 ` Daniel Iliev
0 siblings, 0 replies; 9+ messages in thread
From: Daniel Iliev @ 2007-01-29 23:20 UTC (permalink / raw
To: gentoo-user
Statux wrote:
>> No, I don't have it in my CFLAGS:
>> grep CFLA /etc/make.conf
>> CFLAGS="-march=pentium2 -mmmx -pipe -O3 -fomit-frame-pointer"
>> CXXFLAGS="${CFLAGS}"
>>
>
> shouldn't -mmmx be -mmx or have I been looking at too many switches and
> use flags and going cross-eyed?
>
>
When used as a CFLAG it should be "-mmmx" (according to "man gcc").
When used as an USE flag it should be "mmx" (according to "euse -i mmx").
--
Best regards,
Daniel
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2007-01-29 23:25 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-29 18:06 [gentoo-user] broken python howto Daniel Iliev
2007-01-29 18:29 ` Kent Fredric
2007-01-29 19:38 ` Daniel Iliev
2007-01-29 18:34 ` Albert Hopkins
2007-01-29 20:00 ` [gentoo-user] broken python howto [SOLVED] Daniel Iliev
2007-01-29 21:18 ` Albert Hopkins
2007-01-29 21:59 ` [gentoo-user] broken python howto [SOLVED][OT] Daniel Iliev
2007-01-29 22:13 ` Statux
2007-01-29 23:20 ` Daniel Iliev
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox