One line fix to automatically import the __version__ attribute as in the main DLC package for consistency between the packages.
Steps to repro
For deeplabcutcore, run:
try:
import deeplabcut as dlc
except ModuleNotFoundError:
import deeplabcutcore as dlc
import tensorflow as tf
print(f"Loaded DeepLabCut {dlc.__version__} for Tensorflow {tf.__version__}")
raises
Traceback (most recent call last):
File "test.py", line 8, in <module>
print(f"Loaded DeepLabCut {dlc.__version__} for Tensorflow {tf.__version__}")
AttributeError: module 'deeplabcutcore' has no attribute '__version__'
One line fix to automatically import the
__version__
attribute as in the main DLC package for consistency between the packages.Steps to repro
For
deeplabcutcore
, run:raises