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

[Bug]: Min req tests failing on import zarr #98

Open
3 tasks done
rly opened this issue Jun 18, 2023 · 1 comment
Open
3 tasks done

[Bug]: Min req tests failing on import zarr #98

rly opened this issue Jun 18, 2023 · 1 comment
Assignees
Labels
category: bug errors in the code or code behavior priority: low alternative solution already working and/or relevant to only specific user(s) topic: testing issues related to testing

Comments

@rly
Copy link
Contributor

rly commented Jun 18, 2023

What happened?

The nightly macos-python3.7-minimum tests have been failing for 2 days. See stacktrace.

Steps to Reproduce

See https://github.com/hdmf-dev/hdmf-zarr/actions/runs/5301947163/jobs/9596558206

Traceback

==================================== ERRORS ====================================
________________ ERROR collecting tests/unit/test_io_convert.py ________________
ImportError while importing test module '/Users/runner/work/hdmf-zarr/hdmf-zarr/tests/unit/test_io_convert.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../../hostedtoolcache/Python/3.7.17/x64/lib/python3.7/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/unit/test_io_convert.py:40: in <module>
    from hdmf_zarr.backend import (ZarrIO,
src/hdmf_zarr/__init__.py:1: in <module>
    from .backend import ZarrIO
src/hdmf_zarr/backend.py:12: in <module>
    import zarr
.tox/py37-minimum/lib/python3.7/site-packages/zarr/__init__.py:2: in <module>
    from zarr.codecs import *
.tox/py37-minimum/lib/python3.7/site-packages/zarr/codecs.py:2: in <module>
    from numcodecs import *
.tox/py37-minimum/lib/python3.7/site-packages/numcodecs/__init__.py:32: in <module>
    from numcodecs.bz2 import BZ2
.tox/py37-minimum/lib/python3.7/site-packages/numcodecs/bz2.py:1: in <module>
    import bz2 as _bz2
../../../hostedtoolcache/Python/3.7.17/x64/lib/python3.7/bz2.py:19: in <module>
    from _bz2 import BZ2Compressor, BZ2Decompressor
E   ModuleNotFoundError: No module named '_bz2'
__________________ ERROR collecting tests/unit/test_zarrio.py __________________
ImportError while importing test module '/Users/runner/work/hdmf-zarr/hdmf-zarr/tests/unit/test_zarrio.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../../hostedtoolcache/Python/3.7.17/x64/lib/python3.7/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/unit/test_zarrio.py:12: in <module>
    from tests.unit.base_tests_zarrio import (BaseTestZarrWriter,
tests/unit/base_tests_zarrio.py:13: in <module>
    import zarr
.tox/py37-minimum/lib/python3.7/site-packages/zarr/__init__.py:2: in <module>
    from zarr.codecs import *
.tox/py37-minimum/lib/python3.7/site-packages/zarr/codecs.py:2: in <module>
    from numcodecs import *
.tox/py37-minimum/lib/python3.7/site-packages/numcodecs/__init__.py:32: in <module>
    from numcodecs.bz2 import BZ2
.tox/py37-minimum/lib/python3.7/site-packages/numcodecs/bz2.py:1: in <module>
    import bz2 as _bz2
../../../hostedtoolcache/Python/3.7.17/x64/lib/python3.7/bz2.py:19: in <module>
    from _bz2 import BZ2Compressor, BZ2Decompressor
E   ModuleNotFoundError: No module named '_bz2'

Operating System

Linux

Python Executable

Conda

Python Version

3.7

Package Versions

No response

Code of Conduct

@rly rly added category: bug errors in the code or code behavior priority: low alternative solution already working and/or relevant to only specific user(s) topic: testing issues related to testing labels Jun 18, 2023
@rly rly self-assigned this Jun 18, 2023
@rly
Copy link
Contributor Author

rly commented Jun 18, 2023

This appears to be due to the CI-based installation of Python 3.7.17 missing the _bz2 module. See actions/setup-python#682

This is a CI/environment issue and not a problem of hdmf-zarr. It will hopefully be resolved, but even if not, Python 3.7 is near end of life and we can drop 3.7 support to avoid this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: bug errors in the code or code behavior priority: low alternative solution already working and/or relevant to only specific user(s) topic: testing issues related to testing
Projects
None yet
Development

No branches or pull requests

1 participant