Scidb-py error


#1

So I recently downloaded the v15.12 scidb virtual box and also installed v15.12 scidb-py package on it. Then I found out the following code didn’t work…

from scidbpy import connect sdb = connect('http://localhost:8080')

The error is:
Traceback (most recent call last):
File “mean.py”, line 2, in
sdb = connect(‘http://localhost:8080’)
File “/usr/local/lib/python2.7/dist-packages/scidbpy/interface.py”, line 1919, in connect
result = SciDBShimInterface(url, user=username, password=password)
File “/usr/local/lib/python2.7/dist-packages/scidbpy/interface.py”, line 1706, in init
self._refresh_afl()
File “/usr/local/lib/python2.7/dist-packages/scidbpy/interface.py”, line 1626, in _refresh_afl
op_list = self.afl.list("‘operators’").toarray() # query the connected SciDB engine to view the currently supported list of operators
File “/usr/local/lib/python2.7/dist-packages/scidbpy/scidbarray.py”, line 999, in toarray
return parse.toarray(self, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/scidbpy/parse.py”, line 357, in toarray
return func(array, compression=compression)
File “/usr/local/lib/python2.7/dist-packages/scidbpy/parse.py”, line 286, in toarray_sparse
atts = _attribute_dict(unpacked, compression)
File “/usr/local/lib/python2.7/dist-packages/scidbpy/parse.py”, line 224, in _attribute_dict
a = _string_attribute_dict(subarray, compression=compression)
File “/usr/local/lib/python2.7/dist-packages/scidbpy/parse.py”, line 155, in _string_attribute_dict
result = np.array(list(_iter_strings(contents, nullable)), dtype=object)
File “/usr/local/lib/python2.7/dist-packages/scidbpy/parse.py”, line 135, in _iter_strings
yield None if masked else contents[offset: offset + sz - 1].decode(‘utf-8’)
TypeError: only integer scalar arrays can be converted to a scalar index


#2

This is a known bug, see https://github.com/Paradigm4/SciDB-Py/issues/96 You can try downgrading your NumPy to 1.11