Skip to content

invalid header #16

Description

@shimwell

download_endf --r b8.0

results in this error on ubuntu 25.04

Extracting [PosixPath('endf-b8.0-download/uhbxlrx7hvxqw27psymfbhi7bx7s6u6a.xz')] to endf-b8.0-hdf5
Traceback (most recent call last):
File "/home/jon/.openmc/bin/download_endf", line 8, in
sys.exit(main())
^^^^^^
File "/home/jon/.openmc/lib/python3.11/site-packages/openmc_data/download/download_endf.py", line 91, in main
extract(
File "/home/jon/.openmc/lib/python3.11/site-packages/openmc_data/utils.py", line 119, in extract
with tarfile.open(f, 'r') as tgz:
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/tarfile.py", line 1812, in open
raise ReadError(f"file could not be opened successfully:\n{error_msgs_summary}")
tarfile.ReadError: file could not be opened successfully:

  • method gz: ReadError('not a gzip file')
  • method bz2: ReadError('not a bzip2 file')
  • method xz: CompressionError('lzma module is not available')
  • method tar: ReadError('invalid header')

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