Check minimal versions of libraries on import
Description
We have observed errors in the tests that could be tracked to outdated libraries, see #270 (closed), in particular here, and #286 (closed).
When installing via setup.py
(!209 (merged)), including presumably pypi in the future, these minimal versions are enforced.
This is, however, not the case when installing "by hand" on a system with preinstalled libraries.
To avoid confusing error messages, one could therefore check the versions of libraries on (first) import.
Demo
- tests pass on properly configured system
- error is raised on import with meaningful error message when using "outdated" libraries (can be confirmed using suitably configured docker image)