Idle install - no module time

Harold Weaver hweaver at pinetel.com
Thu Dec 16 14:52:32 EST 1999


I have a better definition of my problem: dynamically loaded modules are
absent from my installation.  Should this problem be referred to a
newsgroup that deals with "configure"ing and "make"ing ?

Harold Weaver wrote:

> 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
>
> ...
> <
>

The shared modules, *.so, are missing from ../lib-dynload, except for
_tkinter.so.

"make install" gives:
------------------------------------------------------------------
...
cd Modules;  make OPT="-g -O2" VERSION="1.5" \
                prefix="/usr/local" exec_prefix="/usr/local" \
                sharedmods
make[1]: Entering directory `/usr/src/Python-1.5.2/Modules'
make[1]: Nothing to be done for `sharedmods'.
make[1]: Leaving directory `/usr/src/Python-1.5.2/Modules'

...

make[1]: Entering directory `/usr/src/Python-1.5.2/Modules'
for i in X ; do \
                if test $i != X; \
                then ./../install-sh -c -m 555 $i
/usr/local/lib/python1.5/lib-dynload/$i; \
                fi; \
        done
make[1]: Leaving directory `/usr/src/Python-1.5.2/Modules'

...
----------------------------------------------------------------

AFAIK  this is the only deficiency in the installation.

If the solution is obvious, let me know.

Thanks.

-- Hal





More information about the Python-list mailing list