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.
--
[email protected] mailing list