On Nov 16, 2007 1:49 AM, Stefan Manegold
On Fri, Nov 16, 2007 at 09:36:44AM +0100, Niels Nes wrote:
On Thu, Nov 15, 2007 at 02:58:05PM -0700, m h wrote:
Hello-
The simple python example from the website is crashing [0]. I get the following output when I try to run it:
Matt
On which version of MonetDB are you trying this?
works fine for me with the latest CVS version (stable branches), both M5 & M4; the released ("-0") version fails to load CMapi: ======== Traceback (most recent call last): File "/tmp/mdb.py", line 1, in ? import MonetSQLdb File "/net/corona.ins.cwi.nl/export/scratch0/manegold/Monet/Testing/Stable_X-20/prefix.--enable-strict_--disable-optimize_--enable-debug_--enable-assert/lib64/python2.4/site-packages/MonetSQLdb/__init__.py", line 45, in ? from CMapi import * ImportError: No module named CMapi ========
I believe this is bug 1814768. I had to fix this to. Here's the fix I used: --- __init__.py~ 2007-11-12 15:36:02.000000000 -0700 +++ __init__.py 2007-11-15 11:05:03.000000000 -0700 @@ -42,7 +42,7 @@ paramstyle = "pyformat" -from CMapi import * +from MonetDB.CMapi import * from monetexceptions import * import cursors, converters -matt