TensorBFS / TensorInference.jl

Probabilistic inference using contraction of tensor networks
https://tensorbfs.github.io/TensorInference.jl/
MIT License
18 stars 2 forks source link

Hash mismatch when downloading artifact #38

Closed GiggleLiu closed 1 year ago

GiggleLiu commented 1 year ago
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.9.2 (2023-07-05)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

julia> using TensorInference, Artifacts, Pkg

julia> Pkg.ensure_artifact_installed("uai2014", pkgdir(TensorInference, "test", "Artifacts.toml"));
  Downloaded artifact: uai2014
 Downloading artifact: uai2014
┌ Error: Hash Mismatch!
│   Expected sha256:   73c91cd68931aec562499ab66ed2326771b829aa715e790609c6a1b86c9a9ad8
│   Calculated sha256: 8cca9f24ad2db6a3a2fae6b253dbf169429c3e23d358e92e5f18a64ae2540117
└ @ Pkg.PlatformEngines ~/.julia/juliaup/julia-1.9.2+0.x64.linux.gnu/share/julia  Downloaded artifact: uai2014
ERROR: Unable to automatically download/install artifact 'uai2014' from sources listed in '/home/leo/.julia/dev/TensorInference/test/Artifacts.toml'.
Sources attempted:
- https://pkg.julialang.org/artifact/d05c5e541cc06f1cb4d8e24c1067e07472e36c24
    Error: RequestError: HTTP/2 404 while requesting https://pkg.julialang.org/artifact/d05c5e541cc06f1cb4d8e24c1067e07472e36c24
- https://github.com/mroavi/uai-2014-inference-competition/raw/main/uai2014.tar.gz
    Error: Verification failed. Download does not match expected hash

Stacktrace:
 [1] error(s::String)
   @ Base ./error.jl:35
 [2] ensure_artifact_installed(name::String, meta::Dict{String, Any}, artifacts_toml::String; platform::Base.BinaryPlatforms.Platform, verbose::Bool, quiet_download::Bool, io::Base.TTY)
   @ Pkg.Artifacts ~/.julia/juliaup/julia-1.9.2+0.x64.linux.gnu/share/julia/stdlib/v1.9/Pkg/src/Artifacts.jl:443
 [3] ensure_artifact_installed(name::String, artifacts_toml::String; platform::Base.BinaryPlatforms.Platform, pkg_uuid::Nothing, verbose::Bool, quiet_download::Bool, io::Base.TTY)
   @ Pkg.Artifacts ~/.julia/juliaup/julia-1.9.2+0.x64.linux.gnu/share/julia/stdlib/v1.9/Pkg/src/Artifacts.jl:383
 [4] ensure_artifact_installed(name::String, artifacts_toml::String)
   @ Pkg.Artifacts ~/.julia/juliaup/julia-1.9.2+0.x64.linux.gnu/share/julia/stdlib/v1.9/Pkg/src/Artifacts.jl:372
 [5] top-level scope
   @ REPL[2]:1