From 40ed30f5b01859bb22464dea67e645ebbc9dd86d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fran=C3=A7ois=20Laurent?= <francois.laurent@posteo.net>
Date: Wed, 19 Apr 2023 20:14:18 +0200
Subject: [PATCH] attempt to identify the cause of a "PyCall not found" warning
 message on Maestro

---
 src/taggingbackends/explorer.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/taggingbackends/explorer.py b/src/taggingbackends/explorer.py
index 7c30b06..955d71b 100644
--- a/src/taggingbackends/explorer.py
+++ b/src/taggingbackends/explorer.py
@@ -14,11 +14,14 @@ JULIA_PROJECT = os.environ.get('JULIA_PROJECT', '')
 
 try:
     from julia import Julia
-    Julia(compiled_modules=False)
 except:
     logging.warning(f"PyCall not found in JULIA_PROJECT={JULIA_PROJECT}; \
 please see https://gitlab.pasteur.fr/nyx/TaggingBackends#recommended-installation")
 else:
+    try:
+        Julia(compiled_modules=False)
+    except:
+        logging.warning("Failed to set PyCall with compiled_modules=False")
     try:
         from julia import TaggingBackends
     except ImportError:
-- 
GitLab