Time Module

Paul Boddie paul at boddie.net
Mon Jul 12 17:45:42 CEST 2004


at14 at st-andrews.ac.uk wrote in message news:<mailman.252.1089628342.5135.python-list at python.org>...
> To whom it may concern,
> 
> My group has python version 2.2.1 installed on a linux system.  I am in the
> process of trying to run some software that requires a module called time.  
> For some reason, our python installation is missing this module.

As far as I can tell, the time module is implemented as a C extension
and should always be present, unless some "advanced" configuration has
been undertaken somewhere. Is this a vendor/distribution-supplied
version of Python?

>                                                                   Our
> administrator has tried to install a new version, but has hit a brick wall
> with requests for strange dependencies.  Would it be possible to import the
> necessary files into our current installation directories?

Since the time module seems to be implemented by Modules/timemodule.c
then the answer to that question would be "no". What kinds of strange
dependencies are we talking about? Python compiles from source code
without any real configuration on any sane Linux distribution, and
should you *really* need to get Python running (before your
administrator sorts the problem out) then you could just build from
source and then install into some place in your home directory.

I'm starting to suspect package management issues in your environment,
however. Another possibility might be dynamic linking against a
libpython.so belonging to another Python release, but I've never
encountered that personally.

Paul



More information about the Python-list mailing list