Skip to content

ModuleNotFoundError: No module named '_lzma' when running tests for google-cloud-bigquery-storage #14884

Closed
Stars1233/google-cloud-python
#14

Description

@parthea

When running tests for google-cloud-bigquery-storage using librarian, I get the following stack trace.

==================================== ERRORS ====================================
________________ ERROR collecting tests/unit/test_reader_v1.py _________________
ImportError while importing test module '/repo/packages/google-cloud-bigquery-storage/tests/unit/test_reader_v1.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
.nox/unit-3-14-protobuf_implementation-upb/lib/python3.14/site-packages/fastavro/read.py:2: in <module>
    from . import _read
fastavro/_read.pyx:10: in init fastavro._read
    ???
/usr/local/lib/python3.14/lzma.py:28: in <module>
    from _lzma import *
E   ModuleNotFoundError: No module named '_lzma'

During handling of the above exception, another exception occurred:
/usr/local/lib/python3.14/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/unit/test_reader_v1.py:22: in <module>
    import fastavro
.nox/unit-3-14-protobuf_implementation-upb/lib/python3.14/site-packages/fastavro/__init__.py:47: in <module>
    import fastavro.read
.nox/unit-3-14-protobuf_implementation-upb/lib/python3.14/site-packages/fastavro/read.py:4: in <module>
    from . import _read_py as _read  # type: ignore
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox/unit-3-14-protobuf_implementation-upb/lib/python3.14/site-packages/fastavro/_read_py.py:9: in <module>
    import lzma
/usr/local/lib/python3.14/lzma.py:28: in <module>
    from _lzma import *
E   ModuleNotFoundError: No module named '_lzma'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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