Re: C-program->Python->mxDateTime Problem

Gerhard Quell <gquell-N1YKUU++/[email protected]> Mon, 07 Jun 2004 15:37:53 +0200
Newsgroups gmane.comp.python.db.pypgsql.user
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Mike,

~ install the mx-DateTime-Modul in your python:

http://www.egenix.com/files/python/egenix-mx-base-2.0.5.tar.gz


Greetings Gerhard
- --------------
Michael R Seefelt wrote:
|
| I have written a simple C-program that loads a Python Function that
| connects to a PostgreSQL database. When I only load and execute the
| Python function all works OK. If I call the Python function a second
| time I get the following: Called PyObject_CallObject Traceback (most
| recent call last):
|   File
| "/home/mike/src/arthur/query_server/query_analyzer/Query_Analyzer.py",
| line 25, in processQuery
|     from pyPgSQL import PgSQL
|   File "/usr/local/lib/python2.3/site-packages/pyPgSQL/PgSQL.py", line
| 388, in ?
|     raise ImportError, \
| ImportError: You need to install mxDateTime
|         (http://www.egenix.com/files/python/eGenix-mx-Extensions.html)
|
| Any ideas?
|
| Thanks, Mike
|
| Here is the code: (hope it helps) If I call testQuery 1 time and exit
| all works, call it a second time and the above error occurs
|

- --
- ------------------------------------------------------ skequell ------
~ Gerhard Quell                       Software & Knowledge Engineering
~ Schützenweg 3      eMail:     gquell-N1YKUU++/[email protected]  Fon: 0731-26400651
~ 89275 Elchingen    web  : http://www.skequell.de  Fax: 0731-26400652
- --------------- pgp: 473EC53C  -  http://www.keyserver.net/en---------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQFAxG+vvHbZD0c+xTwRAnOvAJ972V8nI2/jeL6Bvemt7CDf0UiwMQCeOHgN
5I+oraW0hNnGSuBc+xZdarY=
=dnX2
-----END PGP SIGNATURE-----


-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504