-
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
debug_on() could write relevant versions #1974
Comments
I think it would be better for In [1]: import xarray as xr
xr.show
In [2]: xr.show_versions()
/home/davidh/miniconda3/envs/satpy_py39/lib/python3.9/site-packages/_distutils_hack/__init__.py:36: UserWarning: Setuptools is replacing distutils.
warnings.warn("Setuptools is replacing distutils.")
INSTALLED VERSIONS
------------------
commit: None
python: 3.9.9 | packaged by conda-forge | (main, Dec 20 2021, 02:41:03)
[GCC 9.4.0]
python-bits: 64
OS: Linux
OS-release: 5.15.8-76051508-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: ('en_US', 'UTF-8')
libhdf5: 1.12.1
libnetcdf: 4.8.1
xarray: 0.20.2
pandas: 1.3.5
numpy: 1.20.3
scipy: 1.7.3
netCDF4: 1.5.8
pydap: None
h5netcdf: 0.12.0
h5py: 3.6.0
Nio: None
zarr: 2.10.3
cftime: 1.5.1.1
nc_time_axis: None
PseudoNetCDF: None
rasterio: 1.2.10
cfgrib: None
iris: None
bottleneck: 1.3.2
dask: 2021.12.0
distributed: 2021.12.0
matplotlib: 3.5.1
cartopy: 0.20.1
seaborn: None
numbagg: None
fsspec: 2021.11.1
cupy: None
pint: None
sparse: None
setuptools: 60.2.0
pip: 21.3.1
conda: None
pytest: 6.2.5
IPython: 7.30.1
sphinx: 4.3.2 |
You're probably right. I forgot about |
I think it would be nice! isn't there a way to use importlib for example to extract the version numbers? |
there is Glancing over the current How much backwards compatibility do we want? If it's important we can add another 'module' keyword argument and add another print section and fix the comment. If it's less important we could also change the extra section to a modules one and start returning a bool from the function (or fix the comment). |
I would be OK with either I think doing a simple |
To answer this question I checked this discussion and came to the conclusion that I've cobbled together a draft pr: #2913 I've renamed the 'extras' argument and used the packages @djhoese suggested + the ones that where 'extras'. This breaks backwards compatibility for this function, so not sure what the opinion is on that? |
I suppose we can close this as solved in #2913 |
Feature Request
Is your feature request related to a problem? Please describe.
Whenever I report a bug, I need to confirm what satpy version I am using. This is of course important, but it's also an extra step that could be semi-automated.
Describe the solution you'd like
I would like that
debug_on()
prints the relevant versions. When we report bugs, we anyway calldebug_on()
, so then this information enters the bug reports "for free".Describe any changes to existing user workflow
None.
Additional context
The text was updated successfully, but these errors were encountered: