Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Problem with mxDateTime on HPUX 11.11 machine !

Reply
Thread Tools

Problem with mxDateTime on HPUX 11.11 machine !

 
 
Tien Nguyen
Guest
Posts: n/a
 
      08-27-2003
Hi There,

I installed python2.3 (configured with option
--with-libs='lpthread -lcl'), and egenix-mx-base-2.0.5 on an HPUX
B.11.11 machine. Everything seems to be OK. I can start python and
import mx modules successfully.

tnguyen@local_host:/users/denver/tnguyen 71 % python
Python 2.3 (#1, Aug 26 2003, 16:06:40)
[GCC 3.1] on hp-ux11
Type "help", "copyright", "credits" or "license" for more information.
>>> from mxDateTime import *
>>> from mxDateTime import __version__
>>> from DateTime import *
>>> from DateTime import __version__
>>>


The problem was that, in my c program, I call the python API:

PyObject* call_module = PyImport_ImportModule("module_name");

call_module always NULL and I got the following error on screen:

*** You don't have the (right) mxDateTime binaries installed !

I think this message comes from:
python_home/lib/python2.3/site-packages/mx/DateTime/mxDateTime/__init__.py
----------------------------------------------------------
""" mxDateTime - Date and time handling routines and types

Copyright (c) 2000, Marc-Andre Lemburg; (E-Mail Removed)
Copyright (c) 2000-2001, eGenix.com Software GmbH;
(E-Mail Removed)
See the documentation for further information on copyrights,
or contact the author. All Rights Reserved.
"""
try:
from mxDateTime import *
from mxDateTime import __version__
except ImportError, why:
print "*** You don't have the (right) mxDateTime binaries
installed !"
raise ImportError, why
#from mxDateTime_Python import *
#from mxDateTime_Python import __version__

# Python part of the intialization
try:
import time
setnowapi(time.time)
del time

except NameError:
pass
--------------------------------------------
I don't know why it always raise exception like that!?

Can any python expert or mxBase expert help me with this?

Thank you very much.

Tien Nguyen
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mxDateTime on Mac: Fatal Python Error contact@alanlittle.org Python 3 03-07-2005 11:49 PM
ANN: eGenix mx Base Package 2.0.6 (mxDateTime, mxTextTools, etc.) M.-A. Lemburg Python 0 12-06-2004 06:38 PM
mxDateTime package question Prashant Pai Python 2 10-13-2004 10:27 AM
C-program->Python->mxDateTime Problem Michael R Seefelt Python 1 06-06-2004 03:12 AM
MySQLdb and egenix mxDateTime dumps core Dave Harrison Python 0 08-05-2003 10:49 PM



Advertisments