Skip to content

sys.so not found if julia is a soft link #196

Closed
@dpinol

Description

@dpinol

On my machine, I have softlinks to all available julia versions under my $HOME/.local/bin folder

(sc-pyjulia) ➜  sc-pyjulia git:(develop) ✗ ll ~/.local/bin 
lrwxrwxrwx 1 dani dani    9 May 30 09:50 julia -> julia-1.8
lrwxrwxrwx 1 dani dani   32 May 26 08:01 julia-1.7 -> /opt/julia/julia-1.7.3/bin/julia
lrwxrwxrwx 1 dani dani   36 Jun  3 16:55 julia-1.8 -> /opt/julia/julia-1.8.0-rc1/bin/julia

But with this setup, after version 0.92, I get the followin error.

ERROR: could not load library "/home/dani/.local/bin/../lib/julia/sys.so"
/home/dani/.local/bin/../lib/julia/sys.so: cannot open shared object file: No such file or directory

I suggest creating this method in juliapkg

def bin_dir():
    exec = executable()
    return os.path.dirname(os.path.realpath(exec))

and use it in juliacall. I can create MR if you agree with this approach.

thanks

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