felipenoris / BLPData.jl

Julia language wrapper for the Bloomberg™ API
Other
19 stars 4 forks source link

Cannot install #22

Closed tseaward closed 2 months ago

tseaward commented 5 months ago

Hi,

Firstly, thank you for creating this package.

Unfortunately, I'm having trouble installing it due to a SHA mismatch:

(@v1.10) pkg> add BLPData
   Resolving package versions...
  Downloaded artifact: blpapi
  Downloaded artifact: blpapi
ERROR: Unable to automatically download/install artifact 'blpapi' from sources listed in 'C:\Users\tseaward\.julia\packages\BLPData\huief\Artifacts.toml'.
Sources attempted:
- https://pkg.julialang.org/artifact/5c366268f16c55e522bad96ae446ba619b904c0c
    Error: RequestError: HTTP/1.1 404 Not Found while requesting https://pkg.julialang.org/artifact/5c366268f16c55e522bad96ae446ba619b904c0c
- https://github.com/felipenoris/BLPData.jl/releases/download/blpapi-3.12.3.1/blpapi_cpp_3.12.3.1-windows-x64.tar.gz
    Error: Tree Hash Mismatch!
  Expected git-tree-sha1:   5c366268f16c55e522bad96ae446ba619b904c0c
  Calculated git-tree-sha1: 57b7ceb6bdb7d7df12f208fbd71d5be13afa2f4e
felipenoris commented 2 months ago

~This is a Julia v1.10 bug.~

See https://github.com/JuliaLang/Pkg.jl/issues/3643, https://github.com/JuliaLang/Pkg.jl/issues/3856

As a workaround you can use the env variable JULIA_PKG_IGNORE_HASHES=1.

felipenoris commented 2 months ago

Looks like the hash was wrong in the first place, and Julia started to check for it on windows on release v1.10. I just updated the hash and it should now work.