From 64c4766314301c4b852f669bc13d8fe577e10082 Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Tue, 3 Dec 2024 11:00:34 -0700 Subject: [PATCH] fix: Add missing importlib.util import * Without first importing importlib.util an AttributeError will be raised ``` Traceback (most recent call last): File "/madanalysis5/./bin/ma5", line 51, in if not importlib.util.find_spec("six"): ^^^^^^^^^^^^^^ AttributeError: module 'importlib' has no attribute 'util' ``` --- bin/ma5 | 1 + doc/releases/changelog-dev.md | 3 +++ 2 files changed, 4 insertions(+) diff --git a/bin/ma5 b/bin/ma5 index a7974cf4..63663514 100755 --- a/bin/ma5 +++ b/bin/ma5 @@ -34,6 +34,7 @@ and call immediately the command line interface scripts """ import importlib +import importlib.util import os import sys diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md index 9400eed3..7000c89c 100644 --- a/doc/releases/changelog-dev.md +++ b/doc/releases/changelog-dev.md @@ -6,6 +6,9 @@ ## Bug fixes +* Add missing `importlib.util` import. +([#278](https://github.com/MadAnalysis/madanalysis5/pull/278)) + ## Contributors This release contains contributions from (in alphabetical order):