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

"Michael R Seefelt" <[email protected]> Mon, 7 Jun 2004 09:49:39 -0400
Newsgroups gmane.comp.python.db.pypgsql.user
Message-ID <003601c44c96$4a7da490$06e1020a@mrsd0a4vwr2uhw>
Gerhard,
Thanks for your reply.

It, mxDateTime, is installed. As I stated everything works the first
time I call testQuery. 
The problem occurs on the second call to testQuery.

Mike



-----Original Message-----
From: pypgsql-users-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
[mailto:pypgsql-users-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of Gerhard
Quell
Sent: Monday, June 07, 2004 9:38 AM
To: [email protected]
Subject: Re: [Pypgsql-users] C-program->Python->mxDateTime Problem


-----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
_______________________________________________
Pypgsql-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pypgsql-users



-------------------------------------------------------
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