[egenix-users] mxDateTime

keithmoore1 at adelphia.net keithmoore1 at adelphia.net
Sat Oct 9 00:16:46 CEST 2004


I am new to Python...

I am attempting to call a Python routine from C++. I tested the routine with 
the Python interpreter.  I get no errors.  But when I try to access it from 
C++, using PyImport_ImportModule(...) (See snippet below), I get "*** you don't 
have the (right) mxDateTime binaries installed!" I've downloaded the latest 
version. I ran the .exe provided to install the files.  Do I need to manually 
compile the files?  If so, how?  I didn't see setup.py in the installed 
directory.

I've been struggling with this problem for the last 3 days.  What am I doing 
wrong?


Snippet:::::::::::::::::::::::::::::::::::::::::::
someClass::someMethod()
{
    PyObject *pstr, *pmod;
    printf("embed-object\n");
    Py_Initialize();

    // get usermod.message
    pmod = PyImport_ImportModule("OMS_Query");
    ...
}


Thanks,

Keith



More information about the egenix-users mailing list