mxDateTime in Python2.2 on Tru64

Richard Papworth richard.papworth at bbsrc.ac.uk
Thu Feb 21 10:59:05 EST 2002


Hi

After upgrading from Python 1.52 I'm having trouble getting mx
Extensions to work with Python 2.2.

Compilation went OK (although config.h was missing from the Python
includes directory). However, when I try to load up the DateTime
module I run into problems:

Python 2.2 (#2, Feb 20 2002, 11:44:40) 
[GCC 2.95 19990728 (release)] on osf1V4
Type "help", "copyright", "credits" or "license" for more information.
>>> from mx import DateTime
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/nfs3/users/postgres/usr/local/lib/python2.2/site-packages/mx/DateTime/__init__.py",
line 8, in ?
    from DateTime import *
  File "/nfs3/users/postgres/usr/local/lib/python2.2/site-packages/mx/DateTime/DateTime.py",
line 441, in ?
    MaxDateTime = DateTime(sys.maxint / 366 - 1,12,31)
OverflowError: signed integer is greater than maximum
>>> 

The other mx extensions seem to be OK. Does anyone know what's going
wrong?

Thanks in advance for any help.

Richard



More information about the Python-list mailing list