How to connnect to scidb via python


#1

(received via pm: probably intended as a forum post)

Sent: Sun Sep 30, 2012 1:18 am
From: Xianmang
To: danielw
Hi, experts! I tried to connet to the SciDB server and execute commands.

The contend of the file test.py :
he@he-p6-1095cn:/opt/scidb/12.3/lib$ cat test.py
import sys
sys.path.append(’/opt/scidb/12.3/lib’)
import libscidbclient as scidb
help(scidb)
db=scidb.connect(“localhost”, 1239)
result=db.executeQuery(“scan(m4X4)”,“afl”)
print result

and the error is :

he@he-p6-1095cn:/opt/scidb/12.3/lib$ python test.py
Traceback (most recent call last):
File “test.py”, line 3, in
import libscidbclient as scidb

ImportError: dynamic module does not define init function (initlibscidbclient)

thanks !