-
Notifications
You must be signed in to change notification settings - Fork 295
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
'defusedxml' missing in "msi_safe" extras #2759
Comments
I believe this was discussed a couple months ago on the mailing list, but no pull request was every created related to it. I've assigned @mraspaud who I think originally made the change from the builtin lxml to the (more secure) defusedxml package as a dependency. A PR updating setup.py would be appreciated.
Depending on what you mean by this, the bottom line is that we just can't possibly expect users to install all dependencies for all readers. We would never want to require that and as new readers are added, new dependencies would be added too. Normally users are only interested in using 1 or 2 readers and a majority of our readers are either custom binary formats (using numpy to load the files), netcdf4 files, or hdf5 files. So installing just a couple packages can get users functionality for most readers. This is why netcdf4-python and h5py are hard requirements on the conda package from conda-forge. These dependencies are harder to install from pip so we don't include them as hard dependencies on the PyPI/pip package. |
Alright, regarding I just referred to this log lines:
I am happy to create a PR to add |
Right. Those readers are all MODIS readers (obviously) and some of only a handful that requires pyhdf (HDF4 is not a file format that is used for new satellite data files). It would be annoying for a lot of users if we required you to install pyhdf to use the other 90% of readers when they won't use it and it depends on the C-level HDF4 library which is not fun to install. |
Makes sense, thanks for the explanation. |
Describe the bug
When installing with extra like
'pip install satpy[msi_safe]'
the dependencydefusedxml
is missing here.To Reproduce
Expected behavior
ModuleNotFoundError should not be raised.
Actual results
Environment Info:
Additional context
I noticed that also other dependencies are missing for some Readers, like often
pyhdf
. Is this intentional?The text was updated successfully, but these errors were encountered: