Skip to content

Commit

Permalink
Address import error for Python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
lbianchi-lbl committed Sep 29, 2023
1 parent 4999f97 commit 70a79b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion foqus_lib/gui/main/mainWindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@

try:
from importlib import metadata
except ModuleNotFoundError:
except ImportError:
import importlib_metadata as metadata
from typing import Dict
from types import ModuleType
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@
"TurbineClient ~= 4.0, >= 4.0.3",
"winshell; sys_platform == 'win32'",
"websocket_client>=1.1.0",
"importlib_metadata; python_version < '3.8'",
],
)

Expand Down

0 comments on commit 70a79b2

Please sign in to comment.