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

Python crashes when loading Julia module #350

Closed
EmanuelCastanho opened this issue Aug 22, 2023 · 1 comment
Closed

Python crashes when loading Julia module #350

EmanuelCastanho opened this issue Aug 22, 2023 · 1 comment
Labels
question Further information is requested

Comments

@EmanuelCastanho
Copy link

I installed JuliaCall on my Conda environment using pip install juliacall.
I am trying to run a module created by my colleague in Julia that has important functions that I need to use on my Python code. The module uses Flux, BSON and Glob packages.

However, this is giving me a segmentation fault .

When I run only the following lines of code, it gives me Load Errors.

from juliacall import Main as jl
jl.include("modules/Classification.jl")
ERROR: LoadError: Artifact "OpenSpecFun" was not found by looking in the paths:
  ~/.julia/artifacts/083301655942999198605bee77f89f1d41bf820e
  ~/.julia/juliaup/julia-1.9.2+0.x64.apple.darwin14/local/share/julia/artifacts/083301655942999198605bee77f89f1d41bf820e
  ~/.julia/juliaup/julia-1.9.2+0.x64.apple.darwin14/share/julia/artifacts/083301655942999198605bee77f89f1d41bf820e
Try `using Pkg; Pkg.instantiate()` to re-install all missing resources if the artifact is part of a package

I think it is related with some confusion using the correct Julia version, I use juliaup to control my versions. Any idea how to solve this? I am using macOS and Python3.9.

@EmanuelCastanho EmanuelCastanho added the question Further information is requested label Aug 22, 2023
@EmanuelCastanho
Copy link
Author

Solved: I changed my juliaup default version and installed the packages Flux, BSON and Glob inside the julia_env of the Conda environment.

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

No branches or pull requests

1 participant