From bf77bbb8437913602726081774ce94fc30bab395 Mon Sep 17 00:00:00 2001 From: Kristoffer Carlsson Date: Wed, 23 Oct 2024 17:01:43 +0200 Subject: [PATCH 1/2] put reading the `__version__` from the pyplot package in try catch since it can fail --- src/init.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/init.jl b/src/init.jl index 79d0813..7309c19 100644 --- a/src/init.jl +++ b/src/init.jl @@ -172,8 +172,8 @@ function __init__() ccall(:jl_generating_output, Cint, ()) == 1 && return nothing isjulia_display[] = isdisplayok() copy!(matplotlib, pyimport_conda("matplotlib", "matplotlib")) - mvers = matplotlib.__version__ global version = try + mvers = matplotlib.__version__ vparse(mvers) catch v"0.0.0" # fallback From cb7cefc2989cd45e41535accc78c540f92dd26d4 Mon Sep 17 00:00:00 2001 From: Kristoffer Carlsson Date: Tue, 29 Oct 2024 07:36:41 +0100 Subject: [PATCH 2/2] Update src/init.jl Co-authored-by: Steven G. Johnson --- src/init.jl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/init.jl b/src/init.jl index 7309c19..0c6db23 100644 --- a/src/init.jl +++ b/src/init.jl @@ -173,8 +173,7 @@ function __init__() isjulia_display[] = isdisplayok() copy!(matplotlib, pyimport_conda("matplotlib", "matplotlib")) global version = try - mvers = matplotlib.__version__ - vparse(mvers) + vparse(matplotlib.__version__) catch v"0.0.0" # fallback end