#!/usr/bin/env python
import sys
try:
    from flimp.importer import execute
except ImportError:
    print """You must have the fom, PyYaml and (optionally) simplejson packages installed. Try:

  pip install -U fom
  pip install -U PyYaml

and if you're using Python version 2.5 or below:

  pip install -U simplejson

before running flimp again."""
    sys.exit()

if __name__ == '__main__':
    try:
        execute()
    except Exception, ex:
        print "Oops! Something went wrong:\n\n%s\n\nCheck the flimp.log file!" % ex
