[DB-SIG] Re: [Psycopg] mxDateTime still eludes me....
M.-A. Lemburg
mal@lemburg.com
Fri, 20 Apr 2001 10:06:46 +0200
Federico Di Gregorio wrote:
>
> Scavenging the mail folder uncovered kromag@nsacom.net's letter:
> > kromag@nsacom.net said:
>
> > /usr/local/lib/python2.1/site-packages/mx/DateTime/mxDateTime.so
> > to /usr/local/lib/python2.1/site-packages
> >
> > (the latter in conformance with Johann Sand's earlier post to PsycoPG)
>
> yes, this is a know problem of psycopg, it can't find mxDateTime outside
> the top level python library path. will be resolved in next release, i
> hope...
Note that if you use the import API mxDateTime_ImportModuleAndAPI()
from mxDateTime.h it will find the package all by itself -- you should
never import the C extension mxDateTime directly, please always use
import mx.DateTime.
The package exports a Python C object which you can use to access
the low-level C API, all of whcih is defined in mxDateTime.h.
Background: I believe that trying to import the .so directly is
the source of the problems which "kromag" is seeing here.
--
Marc-Andre Lemburg
______________________________________________________________________
Company & Consulting: http://www.egenix.com/
Python Pages: http://www.lemburg.com/python/