-
Notifications
You must be signed in to change notification settings - Fork 303
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
Missing dependency causes strange error during unit tests #267
Comments
What about with satpy's |
I think we have hit the problem with an unresolved import. The message is just cryptic! |
Interesting. What is the import? If that is something other than the required deps in |
It was netCDF4. Fixed with |
@adybbroe Any idea what test file imports netCDF4 directly? Imports for optional dependencies should only happen inside the test functions. |
@davidh-ssec it*s from |
Ah looks like hdf5_utils and netcdf_utils tests import those file handlers outside of the tests to make a fake handler class. Hmmm not sure the best way to handle that right now. |
@djhoese Maybe make a new issue, and close this one then? |
I'll just make this issue that issue. |
I think the best (not a ton of work) workaround is to use |
Now I have a similar issue with
|
At least you got a logical error this time. I think I've fixed this in my grib PR or at least "fixed" it. My solution would cause failed tests for the missing import. I suppose I should add all of these dependencies to the test requires in setup.py. |
@sjoro How about I add the test requires to my branch, wait for tests to pass, merge to develop, and you test that out? |
@djhoese sure, sounds good! |
Code Sample, a minimal, complete, and verifiable piece of code
Problem description
Trying to run unit tests from command line with the command above produces an error
Versions of Python, package at hand and relevant dependencies
python 3.4.6
satpy master
Behaviour verified by me and @adybbroe. Python versions 2.7.5 and 3.6.4 work.
Thank you for reporting an issue !
The text was updated successfully, but these errors were encountered: