1 |
On Mon, 2007-01-29 at 20:06 +0200, Daniel Iliev wrote: |
2 |
> Hi, everyone |
3 |
> |
4 |
> I'm facing the following problem: |
5 |
> |
6 |
> emerge "<whatever>" |
7 |
> |
8 |
> |
9 |
> !!! Failed to complete python imports. These are internal modules for |
10 |
> !!! python and failure here indicates that you have a problem with |
11 |
> python |
12 |
> !!! itself and thus portage is not able to continue processing. |
13 |
> |
14 |
> !!! You might consider starting python with verbose flags to see what |
15 |
> has |
16 |
> !!! gone wrong. Here is the information we got for this exception: |
17 |
> No module named time |
18 |
> |
19 |
> Traceback (most recent call last): |
20 |
> File "/usr/bin/emerge", line 28, in ? |
21 |
> import portage |
22 |
> File "/usr/lib/portage/pym/portage.py", line 20, in ? |
23 |
> import copy, errno, os, re, shutil, string, time, types |
24 |
> ImportError: No module named time |
25 |
> |
26 |
> |
27 |
> How could I fix this? I found an official "howto" on recovering broken |
28 |
> portage but the problem here is with python, isn't it? I have no |
29 |
> experience with python other than using the python based tools of |
30 |
> Gentoo |
31 |
> (such as portage itself) therefore I'm helpless. |
32 |
> |
33 |
> Any ideas and/or suggestions will be much appreciated. |
34 |
|
35 |
First question: what did you do? |
36 |
|
37 |
# python |
38 |
Python 2.4.4 (#1, Jan 2 2007, 19:55:21) |
39 |
[GCC 4.1.1 (Gentoo 4.1.1-r3)] on linux2 |
40 |
Type "help", "copyright", "credits" or "license" for more |
41 |
information. |
42 |
>>> import time |
43 |
>>> time.__file__ |
44 |
'/usr/lib/python2.4/lib-dynload/time.so' |
45 |
|
46 |
Make sure that file exists and that the files that it links to exist. |
47 |
|
48 |
|
49 |
-- |
50 |
gentoo-user@g.o mailing list |