Juliaup now installs app on macOS?

I’m curious whether something changed in regards to how juliaup installs julia macOS? I have a Julia package for which I provide a python wrapper via juliacall. This worked without a hitch until I tried it on a new system today. Running through the installation instructions I used before (available here: GitHub - grero/RNNTrialStructures.py: Python wrapper for RNNTrialStructures.jl), I now get an error:

File ~/miniconda3/envs/trialstructs/lib/python3.14/site-packages/juliapkg/find_julia.py:205, in ju_find_julia_noinstall(compat)
    203 ver = julia_version(exe)
    204 if ver is None:
--> 205     raise Exception(
    206         f"{exe} (installed by juliaup) is not a valid Julia executable"
    207     )
    208 if compat is None or ver in compat:
    209     return (exe, ver)

Exception: /Users/roger/.julia/juliaup/julia-1.11.9+0.aarch64.apple.darwin14/bin/julia (installed by juliaup) is not a valid Julia executable
```. 

It seems that juliaup installed everything under 

$HOME/.julia/juliaup/julia-1.11.9+0.aarch64.apple.darwin14/Julia-1.11.app

whereas before I had

```bash
(base) roger@work29 ~ % ls  $HOME/.julia/juliaup/julia-1.11.8+0.aarch64.apple.darwin14/
bin		etc		include		lib		libexec		LICENSE.md	share

Is this something I should submit an issue to juliacall over, or is there something else going on?

This was an intentional change in Juliaup. By installing the .app (from the .dmg), we don’t need to re-notarize.

I suspect that pyjuliapkg (and maybe other tools that are downstream of Juliaup) will need to be updated.

@ianshmean Does Juliaup expose any functionality that would allow downstream tools to detect the path to the Julia binary?

2 Likes

Basically I think the path pyjuliapkg/src/juliapkg/find_julia.py at 89bffa73c56c494e081a6f1291535a066dfa67b4 · JuliaPy/pyjuliapkg · GitHub can no longer be hardcoded.

1 Like

That function should be using juliaup api getconfig1 (which exists for the vscode extension to use for similar reasons) and parsing the output of that, not parsing juliaup config files which could change format and making assumptions about paths etc.

Though, juliaup api getconfig1 isn’t documented and explicitly hidden, so I think it would be reasonable to request that, or something similar, be made public.

2 Likes

I just submitted an issue: find_julia no longer works on macOS · Issue #81 · JuliaPy/pyjuliapkg · GitHub