Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LoadError: Cannot locate artifact 'blpapi' #19

Open
banachtech opened this issue Nov 8, 2022 · 2 comments
Open

LoadError: Cannot locate artifact 'blpapi' #19

banachtech opened this issue Nov 8, 2022 · 2 comments

Comments

@banachtech
Copy link

Seems like an Apple silicon specific issue? On M1 Max Studio:

Precompiling project... ✗ BLPData 1 dependency successfully precompiled in 1 seconds. 289 already precompiled. 1 dependency errored. To see a full report either run import Pkg; Pkg.precompile()` or load the package

julia> using BLPData
[ Info: Precompiling BLPData [eb622722-88ce-45f2-a8b9-c2f73a5cb263]
ERROR: LoadError: Cannot locate artifact 'blpapi' for aarch64-apple-darwin-libgfortran5-cxx11-julia_version+1.8.2 in '/Users/xxxx/.julia/packages/BLPData/huief/Artifacts.toml'
`

@felipenoris
Copy link
Owner

Yes, this is a M1 issue.

I don't know if the macos artifact is compatible with M1. Given that Bloomberg provides the compiled binary (see https://www.bloomberg.com/professional/support/api-library/), my guess is that it was not compiled for aarch64.

One thing you can try is to add this to your Artifacts.toml file and retry.

[[blpapi]]
arch = "aarch64"
git-tree-sha1 = "2efdd93e172b25ccb55877c2006e1dbe8790b5a4"
os = "macos"

    [[blpapi.download]]
    sha256 = "5a2bbd14da0e46f6aed8c02da5c4917baa1fffa958ebb0d2c02e22ddab4fa222"
    url = "https://github.com/felipenoris/BLPData.jl/releases/download/blpapi-3.12.3.1/blpapi_cpp_3.14.3.1-macos-x64.tar.gz"

@banachtech
Copy link
Author

Thank you Felipe. I tried the Artifacts edit and now get:
julia> using BLPData ERROR: InitError: could not load library "/Users/xxx/.julia/artifacts/2efdd93e172b25ccb55877c2006e1dbe8790b5a4/libblpapi3_64.so" dlopen(/Users/xxx/.julia/artifacts/2efdd93e172b25ccb55877c2006e1dbe8790b5a4/libblpapi3_64.so.dylib, 0x0001): tried: '/Users/xxx/.julia/artifacts/2efdd93e172b25ccb55877c2006e1dbe8790b5a4/libblpapi3_64.so.dylib' (no such file)

The .so file exists though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants