From 9be7d3ede60a8e6516474e6e8f408198919cf627 Mon Sep 17 00:00:00 2001 From: "Steven G. Johnson" Date: Mon, 28 Oct 2024 17:41:37 -0400 Subject: [PATCH] put reading the __version__ from the pyplot package in try catch since it can fail --- src/init.jl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/init.jl b/src/init.jl index 5c42475..4cc0ad9 100644 --- a/src/init.jl +++ b/src/init.jl @@ -148,9 +148,8 @@ function __init__() ccall(:jl_generating_output, Cint, ()) == 1 && return nothing isjulia_display[] = isdisplayok() PythonCall.pycopy!(matplotlib, pyimport("matplotlib")) - mvers = pyconvert(String, matplotlib.__version__) global version = try - vparse(mvers) + vparse(pyconvert(String, matplotlib.__version__)) catch v"0.0.0" # fallback end