  
          try:
              import tkinter
          except ImportError:
              print(
                  "It looks like TkInter isn't installed for your OS, so "
                  "the GUI has been disabled. To enable the GUI please "
                  "install the TkInter application.\n\n"
                  "You can try:\n"
                  "  Anaconda:           conda install tk\n"
 
</s> remove             import tkinter
 </s> add             # pylint: disable=unused-variable
            import tkinter  # noqa </s> remove                 "install the TkInter application.\n\n"
                "You can try:\n"
                "  Anaconda:           conda install tk\n"
                "  Windows/macOS:      Install ActiveTcl Community "
                "Edition from http://www.activestate.com\n"
                "  Ubuntu/Mint/Debian: sudo apt install python3-tk\n"
                "  Arch:               sudo pacman -S tk\n"
                "  CentOS/Redhat:      sudo yum install tkinter\n"
                "  Fedora:             sudo dnf install python3-tkinter\n")
 </s> add                 "install the TkInter application. You can try:")
            logger.info("Anaconda: conda install tk")
            logger.info("Windows/macOS: Install ActiveTcl Community Edition from "
                        "http://www.activestate.com")
            logger.info("Ubuntu/Mint/Debian: sudo apt install python3-tk")
            logger.info("Arch: sudo pacman -S tk")
            logger.info("CentOS/Redhat: sudo yum install tkinter")
            logger.info("Fedora: sudo dnf install python3-tkinter") </s> remove             print("No display detected. GUI mode has been disabled.")
 </s> add             logger.warning("No display detected. GUI mode has been disabled.") </s> remove                 print("macOS users need to install XQuartz. "
                      "See https://support.apple.com/en-gb/HT201341")
 </s> add                 logger.info("macOS users need to install XQuartz. "
                            "See https://support.apple.com/en-gb/HT201341")
            logger.warning(
  
          try:
              import tkinter
          except ImportError:
            logger.warning(
                  "It looks like TkInter isn't installed for your OS, so "
                  "the GUI has been disabled. To enable the GUI please "
                  "install the TkInter application.\n\n"
                  "You can try:\n"
                  "  Anaconda:           conda install tk\n"
keep keep keep keep replace keep keep keep keep keep
 Logging (#541)

* Convert prints to logger. Further logging improvements. Tidy  up

* Fix system verbosity. Allow SystemExit

* Fix reload extract bug

* Child Traceback handling

* Safer shutdown procedure

* Add shutdown event to queue manager

* landmarks_as_xy > property. GUI notes + linting. Aligner bugfix

* fix FaceFilter. Enable nFilter when no Filter is supplied

* Fix blurry face filter

* Continue on IO error. Better error handling

* Explicitly print stack trace tocrash log

* Windows Multiprocessing bugfix

* Add git info and conda version to crash log

* Windows/Anaconda mp bugfix

* Logging fixes for training 
lib/cli.py