Idle install - no module time
Harold Weaver
hweaver at pinetel.com
Wed Dec 15 14:26:47 EST 1999
When trying to start idle under Linux Redhat 5.1, it fails because it
can't find the module, time.
The interpreter can't find it, either:
>
Python 1.5.2 (#1, Apr 18 1999, 16:03:16) [GCC pgcc-2.91.60 19981201
(egcs-1.1.1 on linux2
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import time
Traceback (innermost last):
File "<stdin>", line 1, in ?
ImportError: No module named time
<
This really stumps me because I have an identical installion on another
box, which works fine. I ran diff on the relevant Setup*, Makefile*,
config* files for the two boxes.
Actually I can't import any of the modules that Setup should have made
available:
( from Setup)
>
...
array arraymodule.c # array objects
cmath cmathmodule.c # -lm # complex math library functions
math mathmodule.c # -lm # math library functions, e.g. sin()
strop stropmodule.c # fast string operations implemented in C
struct structmodule.c # binary structure packing/unpacking
time timemodule.c # -lm # time operations and variables
operator operator.c # operator.add() and similar goodies
#_locale _localemodule.c # access to ISO C locale support
# Modules with some UNIX dependencies -- on by default:
# (If you have a really backward UNIX, select and socket may not be
# supported...)
fcntl fcntlmodule.c # fcntl(2) and ioctl(2)
pwd pwdmodule.c # pwd(3)
grp grpmodule.c # grp(3)
select selectmodule.c # select(2); not on ancient System V
socket socketmodule.c # socket(2); not on ancient System V
#_socket socketmodule.c # socket(2); use this one for BeOS sockets
errno errnomodule.c # posix (UNIX) errno values
...
<
So, what gives? (This should be easy to figure out)
Thanks.
-- Hal
More information about the Python-list
mailing list