-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
I've been trying to use the package to work with some multi-dimensional numpy arrays, unfortunately it does not seem to work
>>> import numpy as np
>>> import msgpack_numpy
>>> packed = msgpack_numpy.packb(np.ones((3,3)))
>>> msgpack_numpy.unpackb(packed)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.9/dist-packages/msgpack_numpy.py", line 287, in unpackb
return _unpackb(packed, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/msgpack/fallback.py", line 121, in unpackb
ret = unpacker._unpack()
File "/usr/local/lib/python3.9/dist-packages/msgpack/fallback.py", line 602, in _unpack
ret = self._object_hook(ret)
File "/usr/local/lib/python3.9/dist-packages/msgpack_numpy.py", line 103, in decode
return np.ndarray(buffer=obj[b'data'],
TypeError: buffer is too small for requested arrayI am using numpy 1.24.4, msgpack-numpy 0.4.8 and msgpack 0.5.6 on python 3.9.5
Metadata
Metadata
Assignees
Labels
No labels