Skip to content

ValueError: SHA256 hash of downloaded file (ascent.dat) does not match the known hash #4

@pllim

Description

@pllim

Hello. We started getting this error when trying to use this file for a test downstream. Is this expected? How do I make it accept the new SHA? Thanks!

Example log: https://github.com/astropy/astropy/actions/runs/3735545217/jobs/6338926910

ValueError: SHA256 hash of downloaded file (ascent.dat) does not match the known hash: ...
Deleted download for safety.
The downloaded file may have been corrupted or the known hash may be outdated.
        else:
>           scipy_data = scipy.datasets.ascent()

astropy/io/fits/tests/test_image.py:1202: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
scipy/datasets/_fetchers.py:71: in ascent
    fname = fetch_data("ascent.dat")
scipy/datasets/_fetchers.py:31: in fetch_data
    return data_fetcher.fetch(dataset_name)
pooch/core.py:587: in fetch
    stream_download(
pooch/core.py:773: in stream_download
    hash_matches(tmp, known_hash, strict=True, source=str(fname.name))

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