Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve plugin loading #1487

Merged
merged 6 commits into from
Dec 10, 2017
Merged

Conversation

astrofrog
Copy link
Member

Import entry point manually instead of using .load() to bypass strict requirement check which causes issues for users for unimportant dependencies. For example, a common error type would be:

INFO:glue:Loading plugin fits_format failed (Exception: (pytest 2.6.0 (/Users/tom/miniconda3/envs/py27/lib/python2.7/site-packages), Requirement.parse('pytest>=2.8'), set(['astropy'])))

whereas importing astropy directly would work, so users would be confused. This often indicates an environment in which there may be conda and pip versions of packages. In most cases it's safer to just proceed and not check the versions of all the requirements of requirements, as this is what would happen anyway if importing e.g. astropy directly.

… requirement check which causes issues for users for unimportant dependencies.
@astrofrog astrofrog added this to the v0.12.4 milestone Dec 7, 2017
@astrofrog astrofrog merged commit 8298391 into glue-viz:master Dec 10, 2017
astrofrog added a commit that referenced this pull request Jan 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant