Skip to content

Coverage reports "No source for code: '..src/netCDF4/_netCDF4.pyx';" with 1.7.3 #1439

Description

@pjonsson

Using the GDAL 3.10.3 ubuntu-full image (Ubuntu 24.04, Python 3.12), coverage.py started reporting:

No source for code: '<my package root directory>/src/netCDF4/_netCDF4.pyx'; see https://coverage.readthedocs.io/en/7.11.0/messages.html#error-no-source

after upgrading to version netCDF4 1.7.3 when running uv run coverage xml -o cobertura-coverage.xml after running uv run pytest -vv --cov --cov-report term-missing --junitxml=filename-report.xml tests ..

Reverting to netCDF4 1.7.2 and keeping all other package versions the same, re-running the tests followed by running coverage produces the coverage XML as expected. Have used all the latest releases continuously since February 2023, and have never had this problem before.

I did not compile the package myself, so I'm guessing I'm using https://files.pythonhosted.org/packages/97/1a/78b19893197ed7525edfa7f124a461626541e82aec694a468ba97755c24e/netcdf4-1.7.3-cp311-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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