diff --git a/chatops/python/gitlab-to-pentext.py b/chatops/python/gitlab-to-pentext.py index a44f10f..020b178 100644 --- a/chatops/python/gitlab-to-pentext.py +++ b/chatops/python/gitlab-to-pentext.py @@ -33,12 +33,16 @@ import textwrap try: import gitlab import jxmlease - # path to docbuilder installation (needs the module) - sys.path.append('/usr/local/bin') + # Path of this script. The validate_report module is on the same path. import validate_report -except ImportError: - print('[-] This script needs gitlab, jxmlease and validate_report library', - file=sys.stderr) +except ImportError as e: + print('[-] This script needs python-gitlab, jxmlease and validate_report library', file=sys.stderr) + print("validate_report is part of the pentext framework", file=sys.stderr) + print("Install python-gitlab with: sudo pip install python-gitlab", file=sys.stderr) + print("Install pjxmlease with: sudo pip install jxmlease", file=sys.stderr) + print("", file=sys.stderr) + print("Currently missing: " + e.message,file=sys.stderr) + sys.exit(-1)