[MonetDB-users] Python Library Problems

I'm having problems connecting to a MonetDB 5 SQL database via the Python interface. I am working on a Mac OS X (10.5.6) system, with python 2.5.1. I downloaded and compiled the Feb 2009 SP2 release from source and added the appropriate directory to my PYTHONPATH. When running the connect command, I get some errors:
I have checked and double checked that my user name and password are correct: I am able to login to the database from the same machine using SQL Explorer in Eclipse with the same credentials. The connection shows up in the merovingian log on the server as being proxied to the appropriate databse. The weird thing is, it doesn't show the connection ending until I quit() the python interactive session, or try connecting again, or do something else with the connection object (c = x.cursor() also causes a disconnect, and thows an exception that complains that x is not defined). Ideas anyone? The only thing I can think of that may be wrong is I'm not using the same releases of MonetDB for the python library and the server. mserver5 --version says I'm running MonetDB server v5.6.0 based on kernel v1.24.0 (I can't seem to remember/figure out which named release this corresponds to). Do the versions need to be the same? Thanks, Scott

Hi Scott, can you try, whether you can connect with a Feb2009-SP (v1.28.4) mclient (using the same username & password) to your Jun2008 (v5.6.0) mserver5? If not, the reason for you python problem might simply be that the client protokol (MAPI) has changed between the to versions (although the error message is indeed not clear about this). Then, you'd need to align your client & server versions ... If yes, we'd need to investigate further, what the origin of your problem might be ... Stefan On Thu, May 28, 2009 at 11:06:52PM -0500, Scott Stephens wrote:
-- | Dr. Stefan Manegold | mailto:Stefan.Manegold@cwi.nl | | CWI, P.O.Box 94079 | http://www.cwi.nl/~manegold/ | | 1090 GB Amsterdam | Tel.: +31 (20) 592-4212 | | The Netherlands | Fax : +31 (20) 592-4312 |

On 29-05-2009 09:42:47 +0200, Stefan Manegold wrote:
IIRC, the protocol has not changed between June2008 and Feb2009. It has, however, changed between Feb2009 and the coming May2009.
If yes, we'd need to investigate further, what the origin of your problem might be ...
I suspect a mix of merovingian/mserver5 for now.
participants (3)
-
Fabian Groffen
-
Scott Stephens
-
Stefan Manegold