[Python-Dev] Problem reloading mx.DateTime in PyApache (original) (raw)
M.-A. Lemburg mal@lemburg.com
Tue, 29 Aug 2000 19:24:08 +0200
- Previous message: [Python-Dev] Problem reloading mx.DateTime in PyApache
- Next message: [Python-Dev] Problem reloading mx.DateTime in PyApache
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Jonathan LaCour wrote:
Well, it appears that this version raises a different problem. Do I need to be running anything higher than python-1.5.2? Possibly this has something to do with how I installed this pre-release. I simply moved the old DateTime directory out of the site-packages directory, and then moved the mx, and DateTime directories from the zip that was provided into the site-packages directory, and restarted. Here is the traceback from the apache error log: patientSearchResults.py failed for 192.168.168.130, reason: the script raised an unhandled exception. Script's traceback follows: Traceback (innermost last): File "/home/httpd/html/py-bin/patientSearchResults.py", line 3, in ? import ODBC.Solid File "/usr/lib/python1.5/site-packages/ODBC/init.py", line 21, in ? import DateTime # mxDateTime package must be installed first ! File "/usr/lib/python1.5/site-packages/DateTime/init.py", line 17, in ? from mx.DateTime import * File "/usr/lib/python1.5/site-packages/mx/DateTime/init.py", line 20, in ? from DateTime import * File "/usr/lib/python1.5/site-packages/mx/DateTime/DateTime.py", line 8, in ? from mxDateTime import * File "/usr/lib/python1.5/site-packages/mx/DateTime/mxDateTime/init.py", line 12, in ? setnowapi(time.time) NameError: setnowapi
This API is new... could it be that you didn't recompile the mxDateTime C extension inside the package ?
On Tue, 29 Aug 2000, M.-A. Lemburg wrote:
> Fredrik Lundh wrote: > > > > skip wrote: > > > Don't know if this should concern us in preparation for 2.0b1 release, but > > > the following came across c.l.py this morning. > > > > http://sourceforge.net/bugs/?func=detailbug&bugid=110601&groupid=5470 > > > > "The problem you describe is an artifact of the way mxDateTime > > tries to reuse the time.time() API available through the > > standard Python time module" > > > > Here is a pre-release version of mx.DateTime which should fix > the problem (the new release will use the top-level mx package > -- it does contain a backward compatibility hack though): > > http://starship.python.net/~lemburg/mxDateTime-1.4.0-prerelease.zip > > Please let me know if it fixes your problem... I don't use PyApache. > > Thanks, > -- > Marc-Andre Lemburg _> ____________________________________ > Business: http://www.lemburg.com/ > Python Pages: http://www.lemburg.com/python/ >
-- Marc-Andre Lemburg
Business: http://www.lemburg.com/ Python Pages: http://www.lemburg.com/python/
- Previous message: [Python-Dev] Problem reloading mx.DateTime in PyApache
- Next message: [Python-Dev] Problem reloading mx.DateTime in PyApache
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]