Fixes #199: Report errors when run via setuptools. *Description of changes* *Related to:* (Add bug number here) See merge request !107