-
-
Notifications
You must be signed in to change notification settings - Fork 329
Failures on Python 3.10 #669
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
Comments
This one comes from: zarr/tests/test_core.py::TestArrayWithLMDBStore::test_array_0d The error comes from On the tested numpy 1.19.4, 0d arrays have no length. Example:
|
_cffi_backend.buffer never had a tobytes() method. Maybe previously, the key type was not _cffi_backend.buffer but another type? Maybe I don't understand what is the "ffi" module in the CFFI documentation. I found At least, this test pass with this change:
|
This function comes from the lmdb project and the pymdb_put() function is defined with cffi as:
I understand that previously, bytearray and numpy.ndarray types were accepted by cffi as |
I tested cffi version 1.14.3 (Fedora package python3-cffi-1.14.3-1.fc34.x86_64). |
My guess is this directly affect https://github.com/jnwatson/py-lmdb/ or on PyPI: https://pypi.org/project/lmdband not zarr which is pure python. Which version of PyLMDB ? Do you want me to forward this to above repository or do you wish to do that yourself to have less indirections ? |
(replied on downstream bug) |
I think what Matthias is saying is true. Though maybe we can make some changes of our own to be less sensitive to LMDB's behavior. Submitted PR ( #670 ) to do that. This also puts the |
@vstinner, could you please try that PR and let us know how it goes? |
The zarr test suites pass on Python 3.10 after @encukou upgraded lmdb from 0.92 to 1.0.0. So we don't need to test #670 on Fedora. Thanks for your quick feedback, the issue is now solved on our side! |
Thanks for the update! |
Hi,
39 tests fails when run on Python 3.10. See logs below. There are 4 different errors:
I tested zarr-python 2.5.0. I get similar the same errors with zarr-python 2.6.1.
Downstream Fedora issue: https://bugzilla.redhat.com/show_bug.cgi?id=1903075
Full tests log: tests.log
Version and installation information
Please provide the following:
zarr.__version__
: 2.5.0numcodecs.__version__
: 0.7.2The text was updated successfully, but these errors were encountered: