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

Loading main package from higher-level env fails with extension of package in current env #49886

Closed
oschulz opened this issue May 19, 2023 · 1 comment
Assignees

Comments

@oschulz
Copy link
Contributor

oschulz commented May 19, 2023

We currently run into this problem with Plots plus IJulia frequently (on Julia v1.9.0):

using Plots

[ Info: Precompiling IJuliaExt [2f4121a4-3b3a-5ce6-9c5e-1f2673ce168a]
ERROR: LoadError: ArgumentError: Package IJulia [7073ff75-c697-5162-941a-fcdaad2a7d2a] is required but does not seem to be installed:
 - Run `Pkg.instantiate()` to install all recorded dependencies.

IJulia is a bit peculiar in that you can really only have one version of it at the same time, otherwise these "IJulia version doesn't match ..." warnings appear. This is because the (default) Jupyter kernelspec is bound to a specific IJulia version (since "kernel.json" points to ".julia/packages/IJulia/SOME_VERSION/src/kernel.jl"). So one often keeps IJulia in the default (e.g. "v1.9") environment and out of specific project environment like the the "Project/Manifest.toml" kept next to a notebook. Plots, on the other hand, will typically be part of the "local" environment, of course.

For details, see JuliaPlots/Plots.jl#4719.

We initially thought this would be fixed by #48352, but the issue seems to persists in Julia v1.9.0 (we'll use a workaround based on Base.require, provided by @KristofferC (thanks!), in Plots.jl for now).

CC @t-bltg

@Liozou
Copy link
Member

Liozou commented Jan 2, 2024

Duplicate of #49656, this was fixed by #49701. I tried locally and I could reproduce the problem on julia v1.9.0 but not v1.9.1 and later, so I'm marking this as fixed.

@Liozou Liozou closed this as completed Jan 2, 2024
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

3 participants