From: Gerhard Q. <gq...@sk...> - 2004-06-07 13:39:46
|
-----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: gq...@sk... 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----- |