From 5e612686ffc295de9c5dbfbad05e9f5bdca2f553 Mon Sep 17 00:00:00 2001 From: Horea Christian Date: Fri, 2 Feb 2024 14:54:11 -0500 Subject: [PATCH] Failsafe etelemetry import --- dandi/files/bases.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dandi/files/bases.py b/dandi/files/bases.py index 45f5929f5..c105f9bd6 100644 --- a/dandi/files/bases.py +++ b/dandi/files/bases.py @@ -18,7 +18,6 @@ from dandischema.models import BareAsset, CommonModel from dandischema.models import Dandiset as DandisetMeta from dandischema.models import get_schema_version -from etelemetry import get_project from packaging.version import Version from pydantic import ValidationError import requests @@ -737,6 +736,8 @@ def _get_nwb_inspector_version(): _current_nwbinspector_version = get_package_version(name="nwbinspector") # Ensure latest version of NWB Inspector is installed and used client-side try: + from etelemetry import get_project + max_version = Version( get_project(repo="NeurodataWithoutBorders/nwbinspector")["version"] )