Open valeriupredoi opened 1 year ago
So we either tel the users to install Tool, and immediately after Julia, then do the Core dev installation, then reset the JULIA_LOAD_PATH
- which is bulky, or we tell them to grab Core from git themselves, and install it with the classical pip install -e .[develop]
which I have always used and had no issues with any paths or Julias
@bouweandela I just had an attentive read through the installation instructions of ESMValTool with ESMValCore in dev mode (git clone etc) - those are very nice and valid, and are not susceptible to the issue described here - well done us! The issue with Julia's path creeps up only when one uses git+ssh install for Core - as such, I reckon we either add a note to the doc saying don't git+ssh Core (even though we don't instruct users to do it) or, we just forget about it! I'd change the test in #2994 to reproduce exatly the install steps we tell users to follow, if I were you :+1:
Thanks for looking into this @valeriupredoi! I just tried this in the branch test-esmvalcore-development-install, but unfortunately test running a Julia diagnostic is still failing (same as on my laptop).
I've just pushed a change to that branch that if it doesn't solve the issue then I will officially eat my hat :tophat: on the next TLT call :grin: No, but seriously now, your steps in the PR were missing both the installation of Tool after env activation, and installing Julia after the install of Core in dev mode, which the second thing should not matter, but let's replicate exactly the install instructions in the documentation
@bouweandela found an issue with the auto testing implemented in #2994 - specifically Julia-related; then I started digging in and noticing that Julia was improperly configured when installing Core in dev mode; I intially blamed the porr Circle CI machine for messing around with paths - it proves the whole thing is not Circle's fault, but ours. Here are a few steps to reproduce the issue:
Steps to reproduce issue with Julia path
Manifest.toml
inesmvaltool/install/Julia/
-> ain't there!and reinstall Julia pkgs:
esmvaltool install Julia
TL;DR - the way we tell users how to install Core in dev mode is not optimal at all:
the actual runtime Julia can't find it and belches out with pkg YAML not found etc.