Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MsgPack bug with NumPy 1.26 #470

Closed
jakirkham opened this issue Oct 2, 2023 · 1 comment
Closed

MsgPack bug with NumPy 1.26 #470

jakirkham opened this issue Oct 2, 2023 · 1 comment

Comments

@jakirkham
Copy link
Member

From @h-vetinari in conda-forge/numcodecs-feedstock#96 (comment) :

This looks like an issue with using deprecated numpy functionality that got removed in 1.25 or 1.26:

self = MsgPack(raw=False, use_bin_type=True, use_single_float=False)
buf = [[0], [1], [2, 3]]

    def encode(self, buf):
>       buf = np.asarray(buf)
E       ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (3,) + inhomogeneous part.

$PREFIX/lib/python3.10/site-packages/numcodecs/msgpacks.py:55: ValueError
=========================== short test summary info ============================
FAILED tests/test_json.py::test_non_numpy_inputs - ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (3,) + inhomogeneous part.
FAILED tests/test_msgpacks.py::test_non_numpy_inputs - ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (3,) + inhomogeneous part.
============ 2 failed, 536 passed, 34 skipped, 38 xfailed in 14.91s ============
@jakirkham
Copy link
Member Author

Nvm. Looks like this was already fixed with PR: #417

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant