-
-
Notifications
You must be signed in to change notification settings - Fork 286
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
Regression in v2.18.0 when setting an item in an object array #1874
Comments
FWIW I couldn't reproduce this on python 3.11 |
I have tried with a simpler environment in Python 3.12 and 3.11 on Windows. I set up a virtual environment (via
for both Python 3.11.3 and Python 3.12.3. This works fine, but if I upgrade Zarr to 2.18.0, I see the exception in both Python versions. Edited to add traceback from Python 3.12.3:
|
@aplowman - would you mind adding a complete traceback to your report above? |
Does this happen for you on Linux? FWIW tried reproducing on macOS with Conda and was unable to |
I can reproduce the issue on Google Colab, which is Ubuntu: https://colab.research.google.com/drive/1IO3WFOJM5rGJOvve_j-UZahk_t3hke0J?usp=sharing |
Thanks for the example! 🙏 Looking through the code paths in the traceback in Am wondering what would have changed that would lead to this issue The only relevant thing I can think of is this PR ( zarr-developers/numcodecs#417 ), but that landed over 1yr ago Are others aware of changes that occurred here that might be relevant? |
Ok was eventually able to reproduce. The issue goes away when reverting the change in PR: #1800 @dcherian would you be able to take a closer look at the error here? Edit: Possibly the easiest change is just to revert that code in v2. In v3 breaking changes would be expected (though maybe we could warn about this in v2?). Though not sure if there is a reason we want that optimization in v2 also (if so maybe it needs a closer look) |
What did it take to reproduce? Does #1875 fix it? If not, I agree that it's best to revert. |
Since this is about a singleton array ( |
Sorry I misread the reproducer. Now fixed on #1875 |
I'm not sure #1875 fully resolves this issue. I am able to set the item now, but I cannot then retrieve it: https://colab.research.google.com/drive/1hTmv23yTQbTgv2tY0uOBW-Kd1YyasBlu?usp=sharing . The item retrieval stack trace is below.
|
Zarr version
v2.18.0
Numcodecs version
0.12.1
Python Version
3.12
Operating System
Windows
Installation
via
poetry install
Description
There seems to be a regression in v2.18.0 (compared to v2.17.2) concerning setting items in an object array.
Steps to reproduce
Setup:
Problem:
Using Zarr v2.17.2, no such exception is raised, and the first item is successfully modified.
Additional output
No response
The text was updated successfully, but these errors were encountered: