Skip to content

Failures on Python 3.10 #669

@vstinner

Description

@vstinner

Hi,

39 tests fails when run on Python 3.10. See logs below. There are 4 different errors:

  • _lib.pymdb_put(): TypeError: initializer for ctype 'char *' must be a cdata pointer, not bytearray
  • _lib.pymdb_put(): TypeError: initializer for ctype 'char *' must be a cdata pointer, not numpy.ndarray
  • _lib.pymdb_put(): TypeError: len() of unsized object
  • _lmdb_decode_key_buffer(): AttributeError: '_cffi_backend.buffer' object has no attribute 'tobytes'

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:

  • Value of zarr.__version__: 2.5.0
  • Value of numcodecs.__version__: 0.7.2
  • Version of Python interpreter: Python 3.10.0a2
  • Operating system (Linux/Windows/Mac): Linux
  • How Zarr was installed (e.g., "using pip into virtual environment", or "using conda"): build the Fedora package, see https://src.fedoraproject.org/rpms/python-zarr/tree/master

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions