Skip to content

Commit 8dd3016

Browse files
author
Alejandro Dau
committed
Show an error if the packaging dependency is not present
1 parent c9ff45b commit 8dd3016

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

bin/fades

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@
2222
import os
2323
import sys
2424

25+
try:
26+
import packaging
27+
except ImportError:
28+
print("Import failed for `packaging` dependency. Please do `pip3 install packaging` and try again")
29+
exit(-1)
30+
2531
# small hack to allow fades to be run directly from the project, using code
2632
# from project itself, not anything already installed in the system
2733
parent_dir = os.path.dirname(os.path.dirname(os.path.realpath(sys.argv[0])))

0 commit comments

Comments
 (0)