There was an error while loading. Please reload this page.
1 parent 2d14d57 commit 6b8a0ceCopy full SHA for 6b8a0ce
1 file changed
webviz_core_components/__init__.py
@@ -4,7 +4,7 @@
4
import sys as _sys
5
import json
6
7
-from pkg_resources import get_distribution, DistributionNotFound
+from importlib.metadata import version
8
9
import dash as _dash
10
@@ -21,9 +21,8 @@
21
__all__ += wrapped_components
22
23
try:
24
- __version__ = get_distribution(__name__).version
25
-except DistributionNotFound:
26
- # package is not installed
+ __version__ = version(__name__)
+except PackageNotFoundError, ModuleNotFoundError:
27
pass
28
29
if not hasattr(_dash, "development"):
0 commit comments