ValueError when using toarray()


Hi everyone,

I am trying to use the toarray() function to pull the data, but I get this error:


~\AppData\Local\Continuum\Anaconda3\lib\site-packages\scidb_py-15.12.dev0-py3.5.egg\scidbpy\ in _nonstring_attribute_dict(array, **kwargs)
    180     dtype = [(str(nm), null_typemap[t, nullable])
    181              for nm, t, nullable in array.sdbtype.full_rep]
--> 182     data = np.fromstring(contents, dtype=dtype)
    184     # process nullable attributes

ValueError: string size must be a multiple of element size

There are some errors up the chain, but that’s the last error. However, if I execute the contents() function, it’s all good and in there:



What’s going on? How come toarray() is unhappy when contents() is there?

Any suggestions are much appreciated!



This seems to be an issue on win32 platforms. This pull request is a potential fix.