Commit f4bfe464 by David Baumgold

Friendly error message if you don't have dependencies installed

parent 938b4f81
...@@ -4,19 +4,26 @@ a release-master multitool ...@@ -4,19 +4,26 @@ a release-master multitool
""" """
from __future__ import print_function, unicode_literals from __future__ import print_function, unicode_literals
import sys import sys
from path import path
from git import Repo, Commit
from git.refs.symbolic import SymbolicReference
import argparse import argparse
from datetime import date, timedelta from datetime import date, timedelta
from dateutil.parser import parse as parse_datestring
import re import re
import collections import collections
import functools import functools
import textwrap import textwrap
import requests
import json import json
import getpass import getpass
try:
from path import path
from git import Repo, Commit
from git.refs.symbolic import SymbolicReference
from dateutil.parser import parse as parse_datestring
import requests
except ImportError:
print("Error: missing dependencies! Please run this command to install them:")
print("pip install path.py requests python-dateutil GitPython==0.3.2.RC1")
sys.exit(1)
try: try:
from pygments.console import colorize from pygments.console import colorize
except ImportError: except ImportError:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment