From: Michael R S. <mse...@be...> - 2004-06-07 13:53:55
|
Gerhard, Thanks for your reply. It, mxDateTime, is installed. As I stated everything works the first time I call testQuery.=20 The problem occurs on the second call to testQuery. Mike -----Original Message----- From: pyp...@li... [mailto:pyp...@li...] On Behalf Of Gerhard Quell Sent: Monday, June 07, 2004 9:38 AM To: pyp...@li... 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=20 | connects to a PostgreSQL database. When I only load and execute the=20 | Python function all works OK. If I call the Python function a second=20 | time I get the following: Called PyObject_CallObject Traceback (most=20 | recent call last): | File=20 | "/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=20 | all works, call it a second time and the above error occurs | - -- - ------------------------------------------------------ skequell ------ ~ Gerhard Quell Software & Knowledge Engineering ~ Sch=FCtzenweg 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=3D =3DdnX2 -----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 Pyp...@li... https://lists.sourceforge.net/lists/listinfo/pypgsql-users |