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

2022.03.0: sphinx fails on generate documentation #6454

Closed
kloczek opened this issue Apr 7, 2022 · 10 comments
Closed

2022.03.0: sphinx fails on generate documentation #6454

kloczek opened this issue Apr 7, 2022 · 10 comments
Labels
plan to close May be closeable, needs more eyeballs topic-documentation usage question

Comments

@kloczek
Copy link

kloczek commented Apr 7, 2022

What happened?

Looks like sphinx fails on generate documentation with error message jupyter_client.kernelspec.NoSuchKernel: No such kernel named python3

Here is full sphinx output:

+ /usr/bin/python3 -sBm build -w --no-isolation
* Getting dependencies for wheel...
/usr/lib/python3.8/site-packages/setuptools/dist.py:505: UserWarning: Normalizing '2022.03.0' to '2022.3.0'
  warnings.warn(tmpl.format(**locals()))
running egg_info
creating xarray.egg-info
writing xarray.egg-info/PKG-INFO
writing dependency_links to xarray.egg-info/dependency_links.txt
writing requirements to xarray.egg-info/requires.txt
writing top-level names to xarray.egg-info/top_level.txt
writing manifest file 'xarray.egg-info/SOURCES.txt'
listing git files failed - pretending there aren't any
reading manifest file 'xarray.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'xarray.egg-info/SOURCES.txt'
* Building wheel...
/usr/lib/python3.8/site-packages/setuptools/dist.py:505: UserWarning: Normalizing '2022.03.0' to '2022.3.0'
  warnings.warn(tmpl.format(**locals()))
running bdist_wheel
running build
running build_py
creating build
creating build/lib
creating build/lib/xarray
copying xarray/__init__.py -> build/lib/xarray
copying xarray/conventions.py -> build/lib/xarray
copying xarray/convert.py -> build/lib/xarray
copying xarray/testing.py -> build/lib/xarray
copying xarray/tutorial.py -> build/lib/xarray
copying xarray/ufuncs.py -> build/lib/xarray
creating build/lib/xarray/backends
copying xarray/backends/__init__.py -> build/lib/xarray/backends
copying xarray/backends/api.py -> build/lib/xarray/backends
copying xarray/backends/cfgrib_.py -> build/lib/xarray/backends
copying xarray/backends/common.py -> build/lib/xarray/backends
copying xarray/backends/file_manager.py -> build/lib/xarray/backends
copying xarray/backends/h5netcdf_.py -> build/lib/xarray/backends
copying xarray/backends/locks.py -> build/lib/xarray/backends
copying xarray/backends/lru_cache.py -> build/lib/xarray/backends
copying xarray/backends/memory.py -> build/lib/xarray/backends
copying xarray/backends/netCDF4_.py -> build/lib/xarray/backends
copying xarray/backends/netcdf3.py -> build/lib/xarray/backends
copying xarray/backends/plugins.py -> build/lib/xarray/backends
copying xarray/backends/pseudonetcdf_.py -> build/lib/xarray/backends
copying xarray/backends/pydap_.py -> build/lib/xarray/backends
copying xarray/backends/pynio_.py -> build/lib/xarray/backends
copying xarray/backends/rasterio_.py -> build/lib/xarray/backends
copying xarray/backends/scipy_.py -> build/lib/xarray/backends
copying xarray/backends/store.py -> build/lib/xarray/backends
copying xarray/backends/zarr.py -> build/lib/xarray/backends
creating build/lib/xarray/coding
copying xarray/coding/__init__.py -> build/lib/xarray/coding
copying xarray/coding/calendar_ops.py -> build/lib/xarray/coding
copying xarray/coding/cftime_offsets.py -> build/lib/xarray/coding
copying xarray/coding/cftimeindex.py -> build/lib/xarray/coding
copying xarray/coding/frequencies.py -> build/lib/xarray/coding
copying xarray/coding/strings.py -> build/lib/xarray/coding
copying xarray/coding/times.py -> build/lib/xarray/coding
copying xarray/coding/variables.py -> build/lib/xarray/coding
creating build/lib/xarray/core
copying xarray/core/__init__.py -> build/lib/xarray/core
copying xarray/core/_reductions.py -> build/lib/xarray/core
copying xarray/core/_typed_ops.py -> build/lib/xarray/core
copying xarray/core/accessor_dt.py -> build/lib/xarray/core
copying xarray/core/accessor_str.py -> build/lib/xarray/core
copying xarray/core/alignment.py -> build/lib/xarray/core
copying xarray/core/arithmetic.py -> build/lib/xarray/core
copying xarray/core/combine.py -> build/lib/xarray/core
copying xarray/core/common.py -> build/lib/xarray/core
copying xarray/core/computation.py -> build/lib/xarray/core
copying xarray/core/concat.py -> build/lib/xarray/core
copying xarray/core/coordinates.py -> build/lib/xarray/core
copying xarray/core/dask_array_compat.py -> build/lib/xarray/core
copying xarray/core/dask_array_ops.py -> build/lib/xarray/core
copying xarray/core/dataarray.py -> build/lib/xarray/core
copying xarray/core/dataset.py -> build/lib/xarray/core
copying xarray/core/dtypes.py -> build/lib/xarray/core
copying xarray/core/duck_array_ops.py -> build/lib/xarray/core
copying xarray/core/extensions.py -> build/lib/xarray/core
copying xarray/core/formatting.py -> build/lib/xarray/core
copying xarray/core/formatting_html.py -> build/lib/xarray/core
copying xarray/core/groupby.py -> build/lib/xarray/core
copying xarray/core/indexes.py -> build/lib/xarray/core
copying xarray/core/indexing.py -> build/lib/xarray/core
copying xarray/core/merge.py -> build/lib/xarray/core
copying xarray/core/missing.py -> build/lib/xarray/core
copying xarray/core/nanops.py -> build/lib/xarray/core
copying xarray/core/npcompat.py -> build/lib/xarray/core
copying xarray/core/nputils.py -> build/lib/xarray/core
copying xarray/core/ops.py -> build/lib/xarray/core
copying xarray/core/options.py -> build/lib/xarray/core
copying xarray/core/parallel.py -> build/lib/xarray/core
copying xarray/core/pdcompat.py -> build/lib/xarray/core
copying xarray/core/pycompat.py -> build/lib/xarray/core
copying xarray/core/resample.py -> build/lib/xarray/core
copying xarray/core/resample_cftime.py -> build/lib/xarray/core
copying xarray/core/rolling.py -> build/lib/xarray/core
copying xarray/core/rolling_exp.py -> build/lib/xarray/core
copying xarray/core/types.py -> build/lib/xarray/core
copying xarray/core/utils.py -> build/lib/xarray/core
copying xarray/core/variable.py -> build/lib/xarray/core
copying xarray/core/weighted.py -> build/lib/xarray/core
creating build/lib/xarray/plot
copying xarray/plot/__init__.py -> build/lib/xarray/plot
copying xarray/plot/dataset_plot.py -> build/lib/xarray/plot
copying xarray/plot/facetgrid.py -> build/lib/xarray/plot
copying xarray/plot/plot.py -> build/lib/xarray/plot
copying xarray/plot/utils.py -> build/lib/xarray/plot
creating build/lib/xarray/static
copying xarray/static/__init__.py -> build/lib/xarray/static
creating build/lib/xarray/tests
copying xarray/tests/__init__.py -> build/lib/xarray/tests
copying xarray/tests/conftest.py -> build/lib/xarray/tests
copying xarray/tests/test_accessor_dt.py -> build/lib/xarray/tests
copying xarray/tests/test_accessor_str.py -> build/lib/xarray/tests
copying xarray/tests/test_backends.py -> build/lib/xarray/tests
copying xarray/tests/test_backends_api.py -> build/lib/xarray/tests
copying xarray/tests/test_backends_common.py -> build/lib/xarray/tests
copying xarray/tests/test_backends_file_manager.py -> build/lib/xarray/tests
copying xarray/tests/test_backends_locks.py -> build/lib/xarray/tests
copying xarray/tests/test_backends_lru_cache.py -> build/lib/xarray/tests
copying xarray/tests/test_calendar_ops.py -> build/lib/xarray/tests
copying xarray/tests/test_cftime_offsets.py -> build/lib/xarray/tests
copying xarray/tests/test_cftimeindex.py -> build/lib/xarray/tests
copying xarray/tests/test_cftimeindex_resample.py -> build/lib/xarray/tests
copying xarray/tests/test_coarsen.py -> build/lib/xarray/tests
copying xarray/tests/test_coding.py -> build/lib/xarray/tests
copying xarray/tests/test_coding_strings.py -> build/lib/xarray/tests
copying xarray/tests/test_coding_times.py -> build/lib/xarray/tests
copying xarray/tests/test_combine.py -> build/lib/xarray/tests
copying xarray/tests/test_computation.py -> build/lib/xarray/tests
copying xarray/tests/test_concat.py -> build/lib/xarray/tests
copying xarray/tests/test_conventions.py -> build/lib/xarray/tests
copying xarray/tests/test_cupy.py -> build/lib/xarray/tests
copying xarray/tests/test_dask.py -> build/lib/xarray/tests
copying xarray/tests/test_dataarray.py -> build/lib/xarray/tests
copying xarray/tests/test_dataset.py -> build/lib/xarray/tests
copying xarray/tests/test_distributed.py -> build/lib/xarray/tests
copying xarray/tests/test_dtypes.py -> build/lib/xarray/tests
copying xarray/tests/test_duck_array_ops.py -> build/lib/xarray/tests
copying xarray/tests/test_extensions.py -> build/lib/xarray/tests
copying xarray/tests/test_formatting.py -> build/lib/xarray/tests
copying xarray/tests/test_formatting_html.py -> build/lib/xarray/tests
copying xarray/tests/test_groupby.py -> build/lib/xarray/tests
copying xarray/tests/test_indexes.py -> build/lib/xarray/tests
copying xarray/tests/test_indexing.py -> build/lib/xarray/tests
copying xarray/tests/test_interp.py -> build/lib/xarray/tests
copying xarray/tests/test_merge.py -> build/lib/xarray/tests
copying xarray/tests/test_missing.py -> build/lib/xarray/tests
copying xarray/tests/test_nputils.py -> build/lib/xarray/tests
copying xarray/tests/test_options.py -> build/lib/xarray/tests
copying xarray/tests/test_plot.py -> build/lib/xarray/tests
copying xarray/tests/test_plugins.py -> build/lib/xarray/tests
copying xarray/tests/test_print_versions.py -> build/lib/xarray/tests
copying xarray/tests/test_sparse.py -> build/lib/xarray/tests
copying xarray/tests/test_testing.py -> build/lib/xarray/tests
copying xarray/tests/test_tutorial.py -> build/lib/xarray/tests
copying xarray/tests/test_ufuncs.py -> build/lib/xarray/tests
copying xarray/tests/test_units.py -> build/lib/xarray/tests
copying xarray/tests/test_utils.py -> build/lib/xarray/tests
copying xarray/tests/test_variable.py -> build/lib/xarray/tests
copying xarray/tests/test_weighted.py -> build/lib/xarray/tests
creating build/lib/xarray/util
copying xarray/util/__init__.py -> build/lib/xarray/util
copying xarray/util/generate_ops.py -> build/lib/xarray/util
copying xarray/util/generate_reductions.py -> build/lib/xarray/util
copying xarray/util/print_versions.py -> build/lib/xarray/util
creating build/lib/xarray/static/css
copying xarray/static/css/__init__.py -> build/lib/xarray/static/css
creating build/lib/xarray/static/html
copying xarray/static/html/__init__.py -> build/lib/xarray/static/html
running egg_info
writing xarray.egg-info/PKG-INFO
writing dependency_links to xarray.egg-info/dependency_links.txt
writing requirements to xarray.egg-info/requires.txt
writing top-level names to xarray.egg-info/top_level.txt
listing git files failed - pretending there aren't any
reading manifest file 'xarray.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'xarray.egg-info/SOURCES.txt'
copying xarray/py.typed -> build/lib/xarray
creating build/lib/xarray/tests/data
copying xarray/tests/data/bears.nc -> build/lib/xarray/tests/data
copying xarray/tests/data/example.grib -> build/lib/xarray/tests/data
copying xarray/tests/data/example.ict -> build/lib/xarray/tests/data
copying xarray/tests/data/example.uamiv -> build/lib/xarray/tests/data
copying xarray/tests/data/example_1.nc -> build/lib/xarray/tests/data
copying xarray/tests/data/example_1.nc.gz -> build/lib/xarray/tests/data
copying xarray/static/css/style.css -> build/lib/xarray/static/css
copying xarray/static/html/icons-svg-inline.html -> build/lib/xarray/static/html
installing to build/bdist.linux-x86_64/wheel
running install
running install_lib
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/wheel
creating build/bdist.linux-x86_64/wheel/xarray
copying build/lib/xarray/__init__.py -> build/bdist.linux-x86_64/wheel/xarray
copying build/lib/xarray/conventions.py -> build/bdist.linux-x86_64/wheel/xarray
copying build/lib/xarray/convert.py -> build/bdist.linux-x86_64/wheel/xarray
copying build/lib/xarray/testing.py -> build/bdist.linux-x86_64/wheel/xarray
copying build/lib/xarray/tutorial.py -> build/bdist.linux-x86_64/wheel/xarray
copying build/lib/xarray/ufuncs.py -> build/bdist.linux-x86_64/wheel/xarray
creating build/bdist.linux-x86_64/wheel/xarray/backends
copying build/lib/xarray/backends/__init__.py -> build/bdist.linux-x86_64/wheel/xarray/backends
copying build/lib/xarray/backends/api.py -> build/bdist.linux-x86_64/wheel/xarray/backends
copying build/lib/xarray/backends/cfgrib_.py -> build/bdist.linux-x86_64/wheel/xarray/backends
copying build/lib/xarray/backends/common.py -> build/bdist.linux-x86_64/wheel/xarray/backends
copying build/lib/xarray/backends/file_manager.py -> build/bdist.linux-x86_64/wheel/xarray/backends
copying build/lib/xarray/backends/h5netcdf_.py -> build/bdist.linux-x86_64/wheel/xarray/backends
copying build/lib/xarray/backends/locks.py -> build/bdist.linux-x86_64/wheel/xarray/backends
copying build/lib/xarray/backends/lru_cache.py -> build/bdist.linux-x86_64/wheel/xarray/backends
copying build/lib/xarray/backends/memory.py -> build/bdist.linux-x86_64/wheel/xarray/backends
copying build/lib/xarray/backends/netCDF4_.py -> build/bdist.linux-x86_64/wheel/xarray/backends
copying build/lib/xarray/backends/netcdf3.py -> build/bdist.linux-x86_64/wheel/xarray/backends
copying build/lib/xarray/backends/plugins.py -> build/bdist.linux-x86_64/wheel/xarray/backends
copying build/lib/xarray/backends/pseudonetcdf_.py -> build/bdist.linux-x86_64/wheel/xarray/backends
copying build/lib/xarray/backends/pydap_.py -> build/bdist.linux-x86_64/wheel/xarray/backends
copying build/lib/xarray/backends/pynio_.py -> build/bdist.linux-x86_64/wheel/xarray/backends
copying build/lib/xarray/backends/rasterio_.py -> build/bdist.linux-x86_64/wheel/xarray/backends
copying build/lib/xarray/backends/scipy_.py -> build/bdist.linux-x86_64/wheel/xarray/backends
copying build/lib/xarray/backends/store.py -> build/bdist.linux-x86_64/wheel/xarray/backends
copying build/lib/xarray/backends/zarr.py -> build/bdist.linux-x86_64/wheel/xarray/backends
creating build/bdist.linux-x86_64/wheel/xarray/coding
copying build/lib/xarray/coding/__init__.py -> build/bdist.linux-x86_64/wheel/xarray/coding
copying build/lib/xarray/coding/calendar_ops.py -> build/bdist.linux-x86_64/wheel/xarray/coding
copying build/lib/xarray/coding/cftime_offsets.py -> build/bdist.linux-x86_64/wheel/xarray/coding
copying build/lib/xarray/coding/cftimeindex.py -> build/bdist.linux-x86_64/wheel/xarray/coding
copying build/lib/xarray/coding/frequencies.py -> build/bdist.linux-x86_64/wheel/xarray/coding
copying build/lib/xarray/coding/strings.py -> build/bdist.linux-x86_64/wheel/xarray/coding
copying build/lib/xarray/coding/times.py -> build/bdist.linux-x86_64/wheel/xarray/coding
copying build/lib/xarray/coding/variables.py -> build/bdist.linux-x86_64/wheel/xarray/coding
creating build/bdist.linux-x86_64/wheel/xarray/core
copying build/lib/xarray/core/__init__.py -> build/bdist.linux-x86_64/wheel/xarray/core
copying build/lib/xarray/core/_reductions.py -> build/bdist.linux-x86_64/wheel/xarray/core
copying build/lib/xarray/core/_typed_ops.py -> build/bdist.linux-x86_64/wheel/xarray/core
copying build/lib/xarray/core/accessor_dt.py -> build/bdist.linux-x86_64/wheel/xarray/core
copying build/lib/xarray/core/accessor_str.py -> build/bdist.linux-x86_64/wheel/xarray/core
copying build/lib/xarray/core/alignment.py -> build/bdist.linux-x86_64/wheel/xarray/core
copying build/lib/xarray/core/arithmetic.py -> build/bdist.linux-x86_64/wheel/xarray/core
copying build/lib/xarray/core/combine.py -> build/bdist.linux-x86_64/wheel/xarray/core
copying build/lib/xarray/core/common.py -> build/bdist.linux-x86_64/wheel/xarray/core
copying build/lib/xarray/core/computation.py -> build/bdist.linux-x86_64/wheel/xarray/core
copying build/lib/xarray/core/concat.py -> build/bdist.linux-x86_64/wheel/xarray/core
copying build/lib/xarray/core/coordinates.py -> build/bdist.linux-x86_64/wheel/xarray/core
copying build/lib/xarray/core/dask_array_compat.py -> build/bdist.linux-x86_64/wheel/xarray/core
copying build/lib/xarray/core/dask_array_ops.py -> build/bdist.linux-x86_64/wheel/xarray/core
copying build/lib/xarray/core/dataarray.py -> build/bdist.linux-x86_64/wheel/xarray/core
copying build/lib/xarray/core/dataset.py -> build/bdist.linux-x86_64/wheel/xarray/core
copying build/lib/xarray/core/dtypes.py -> build/bdist.linux-x86_64/wheel/xarray/core
copying build/lib/xarray/core/duck_array_ops.py -> build/bdist.linux-x86_64/wheel/xarray/core
copying build/lib/xarray/core/extensions.py -> build/bdist.linux-x86_64/wheel/xarray/core
copying build/lib/xarray/core/formatting.py -> build/bdist.linux-x86_64/wheel/xarray/core
copying build/lib/xarray/core/formatting_html.py -> build/bdist.linux-x86_64/wheel/xarray/core
copying build/lib/xarray/core/groupby.py -> build/bdist.linux-x86_64/wheel/xarray/core
copying build/lib/xarray/core/indexes.py -> build/bdist.linux-x86_64/wheel/xarray/core
copying build/lib/xarray/core/indexing.py -> build/bdist.linux-x86_64/wheel/xarray/core
copying build/lib/xarray/core/merge.py -> build/bdist.linux-x86_64/wheel/xarray/core
copying build/lib/xarray/core/missing.py -> build/bdist.linux-x86_64/wheel/xarray/core
copying build/lib/xarray/core/nanops.py -> build/bdist.linux-x86_64/wheel/xarray/core
copying build/lib/xarray/core/npcompat.py -> build/bdist.linux-x86_64/wheel/xarray/core
copying build/lib/xarray/core/nputils.py -> build/bdist.linux-x86_64/wheel/xarray/core
copying build/lib/xarray/core/ops.py -> build/bdist.linux-x86_64/wheel/xarray/core
copying build/lib/xarray/core/options.py -> build/bdist.linux-x86_64/wheel/xarray/core
copying build/lib/xarray/core/parallel.py -> build/bdist.linux-x86_64/wheel/xarray/core
copying build/lib/xarray/core/pdcompat.py -> build/bdist.linux-x86_64/wheel/xarray/core
copying build/lib/xarray/core/pycompat.py -> build/bdist.linux-x86_64/wheel/xarray/core
copying build/lib/xarray/core/resample.py -> build/bdist.linux-x86_64/wheel/xarray/core
copying build/lib/xarray/core/resample_cftime.py -> build/bdist.linux-x86_64/wheel/xarray/core
copying build/lib/xarray/core/rolling.py -> build/bdist.linux-x86_64/wheel/xarray/core
copying build/lib/xarray/core/rolling_exp.py -> build/bdist.linux-x86_64/wheel/xarray/core
copying build/lib/xarray/core/types.py -> build/bdist.linux-x86_64/wheel/xarray/core
copying build/lib/xarray/core/utils.py -> build/bdist.linux-x86_64/wheel/xarray/core
copying build/lib/xarray/core/variable.py -> build/bdist.linux-x86_64/wheel/xarray/core
copying build/lib/xarray/core/weighted.py -> build/bdist.linux-x86_64/wheel/xarray/core
creating build/bdist.linux-x86_64/wheel/xarray/plot
copying build/lib/xarray/plot/__init__.py -> build/bdist.linux-x86_64/wheel/xarray/plot
copying build/lib/xarray/plot/dataset_plot.py -> build/bdist.linux-x86_64/wheel/xarray/plot
copying build/lib/xarray/plot/facetgrid.py -> build/bdist.linux-x86_64/wheel/xarray/plot
copying build/lib/xarray/plot/plot.py -> build/bdist.linux-x86_64/wheel/xarray/plot
copying build/lib/xarray/plot/utils.py -> build/bdist.linux-x86_64/wheel/xarray/plot
creating build/bdist.linux-x86_64/wheel/xarray/static
copying build/lib/xarray/static/__init__.py -> build/bdist.linux-x86_64/wheel/xarray/static
creating build/bdist.linux-x86_64/wheel/xarray/static/css
copying build/lib/xarray/static/css/__init__.py -> build/bdist.linux-x86_64/wheel/xarray/static/css
copying build/lib/xarray/static/css/style.css -> build/bdist.linux-x86_64/wheel/xarray/static/css
creating build/bdist.linux-x86_64/wheel/xarray/static/html
copying build/lib/xarray/static/html/__init__.py -> build/bdist.linux-x86_64/wheel/xarray/static/html
copying build/lib/xarray/static/html/icons-svg-inline.html -> build/bdist.linux-x86_64/wheel/xarray/static/html
creating build/bdist.linux-x86_64/wheel/xarray/tests
copying build/lib/xarray/tests/__init__.py -> build/bdist.linux-x86_64/wheel/xarray/tests
copying build/lib/xarray/tests/conftest.py -> build/bdist.linux-x86_64/wheel/xarray/tests
copying build/lib/xarray/tests/test_accessor_dt.py -> build/bdist.linux-x86_64/wheel/xarray/tests
copying build/lib/xarray/tests/test_accessor_str.py -> build/bdist.linux-x86_64/wheel/xarray/tests
copying build/lib/xarray/tests/test_backends.py -> build/bdist.linux-x86_64/wheel/xarray/tests
copying build/lib/xarray/tests/test_backends_api.py -> build/bdist.linux-x86_64/wheel/xarray/tests
copying build/lib/xarray/tests/test_backends_common.py -> build/bdist.linux-x86_64/wheel/xarray/tests
copying build/lib/xarray/tests/test_backends_file_manager.py -> build/bdist.linux-x86_64/wheel/xarray/tests
copying build/lib/xarray/tests/test_backends_locks.py -> build/bdist.linux-x86_64/wheel/xarray/tests
copying build/lib/xarray/tests/test_backends_lru_cache.py -> build/bdist.linux-x86_64/wheel/xarray/tests
copying build/lib/xarray/tests/test_calendar_ops.py -> build/bdist.linux-x86_64/wheel/xarray/tests
copying build/lib/xarray/tests/test_cftime_offsets.py -> build/bdist.linux-x86_64/wheel/xarray/tests
copying build/lib/xarray/tests/test_cftimeindex.py -> build/bdist.linux-x86_64/wheel/xarray/tests
copying build/lib/xarray/tests/test_cftimeindex_resample.py -> build/bdist.linux-x86_64/wheel/xarray/tests
copying build/lib/xarray/tests/test_coarsen.py -> build/bdist.linux-x86_64/wheel/xarray/tests
copying build/lib/xarray/tests/test_coding.py -> build/bdist.linux-x86_64/wheel/xarray/tests
copying build/lib/xarray/tests/test_coding_strings.py -> build/bdist.linux-x86_64/wheel/xarray/tests
copying build/lib/xarray/tests/test_coding_times.py -> build/bdist.linux-x86_64/wheel/xarray/tests
copying build/lib/xarray/tests/test_combine.py -> build/bdist.linux-x86_64/wheel/xarray/tests
copying build/lib/xarray/tests/test_computation.py -> build/bdist.linux-x86_64/wheel/xarray/tests
copying build/lib/xarray/tests/test_concat.py -> build/bdist.linux-x86_64/wheel/xarray/tests
copying build/lib/xarray/tests/test_conventions.py -> build/bdist.linux-x86_64/wheel/xarray/tests
copying build/lib/xarray/tests/test_cupy.py -> build/bdist.linux-x86_64/wheel/xarray/tests
copying build/lib/xarray/tests/test_dask.py -> build/bdist.linux-x86_64/wheel/xarray/tests
copying build/lib/xarray/tests/test_dataarray.py -> build/bdist.linux-x86_64/wheel/xarray/tests
copying build/lib/xarray/tests/test_dataset.py -> build/bdist.linux-x86_64/wheel/xarray/tests
copying build/lib/xarray/tests/test_distributed.py -> build/bdist.linux-x86_64/wheel/xarray/tests
copying build/lib/xarray/tests/test_dtypes.py -> build/bdist.linux-x86_64/wheel/xarray/tests
copying build/lib/xarray/tests/test_duck_array_ops.py -> build/bdist.linux-x86_64/wheel/xarray/tests
copying build/lib/xarray/tests/test_extensions.py -> build/bdist.linux-x86_64/wheel/xarray/tests
copying build/lib/xarray/tests/test_formatting.py -> build/bdist.linux-x86_64/wheel/xarray/tests
copying build/lib/xarray/tests/test_formatting_html.py -> build/bdist.linux-x86_64/wheel/xarray/tests
copying build/lib/xarray/tests/test_groupby.py -> build/bdist.linux-x86_64/wheel/xarray/tests
copying build/lib/xarray/tests/test_indexes.py -> build/bdist.linux-x86_64/wheel/xarray/tests
copying build/lib/xarray/tests/test_indexing.py -> build/bdist.linux-x86_64/wheel/xarray/tests
copying build/lib/xarray/tests/test_interp.py -> build/bdist.linux-x86_64/wheel/xarray/tests
copying build/lib/xarray/tests/test_merge.py -> build/bdist.linux-x86_64/wheel/xarray/tests
copying build/lib/xarray/tests/test_missing.py -> build/bdist.linux-x86_64/wheel/xarray/tests
copying build/lib/xarray/tests/test_nputils.py -> build/bdist.linux-x86_64/wheel/xarray/tests
copying build/lib/xarray/tests/test_options.py -> build/bdist.linux-x86_64/wheel/xarray/tests
copying build/lib/xarray/tests/test_plot.py -> build/bdist.linux-x86_64/wheel/xarray/tests
copying build/lib/xarray/tests/test_plugins.py -> build/bdist.linux-x86_64/wheel/xarray/tests
copying build/lib/xarray/tests/test_print_versions.py -> build/bdist.linux-x86_64/wheel/xarray/tests
copying build/lib/xarray/tests/test_sparse.py -> build/bdist.linux-x86_64/wheel/xarray/tests
copying build/lib/xarray/tests/test_testing.py -> build/bdist.linux-x86_64/wheel/xarray/tests
copying build/lib/xarray/tests/test_tutorial.py -> build/bdist.linux-x86_64/wheel/xarray/tests
copying build/lib/xarray/tests/test_ufuncs.py -> build/bdist.linux-x86_64/wheel/xarray/tests
copying build/lib/xarray/tests/test_units.py -> build/bdist.linux-x86_64/wheel/xarray/tests
copying build/lib/xarray/tests/test_utils.py -> build/bdist.linux-x86_64/wheel/xarray/tests
copying build/lib/xarray/tests/test_variable.py -> build/bdist.linux-x86_64/wheel/xarray/tests
copying build/lib/xarray/tests/test_weighted.py -> build/bdist.linux-x86_64/wheel/xarray/tests
creating build/bdist.linux-x86_64/wheel/xarray/tests/data
copying build/lib/xarray/tests/data/bears.nc -> build/bdist.linux-x86_64/wheel/xarray/tests/data
copying build/lib/xarray/tests/data/example.grib -> build/bdist.linux-x86_64/wheel/xarray/tests/data
copying build/lib/xarray/tests/data/example.ict -> build/bdist.linux-x86_64/wheel/xarray/tests/data
copying build/lib/xarray/tests/data/example.uamiv -> build/bdist.linux-x86_64/wheel/xarray/tests/data
copying build/lib/xarray/tests/data/example_1.nc -> build/bdist.linux-x86_64/wheel/xarray/tests/data
copying build/lib/xarray/tests/data/example_1.nc.gz -> build/bdist.linux-x86_64/wheel/xarray/tests/data
creating build/bdist.linux-x86_64/wheel/xarray/util
copying build/lib/xarray/util/__init__.py -> build/bdist.linux-x86_64/wheel/xarray/util
copying build/lib/xarray/util/generate_ops.py -> build/bdist.linux-x86_64/wheel/xarray/util
copying build/lib/xarray/util/generate_reductions.py -> build/bdist.linux-x86_64/wheel/xarray/util
copying build/lib/xarray/util/print_versions.py -> build/bdist.linux-x86_64/wheel/xarray/util
copying build/lib/xarray/py.typed -> build/bdist.linux-x86_64/wheel/xarray
running install_egg_info
Copying xarray.egg-info to build/bdist.linux-x86_64/wheel/xarray-2022.3.0-py3.8.egg-info
running install_scripts
adding license file "LICENSE" (matched pattern "LICEN[CS]E*")
creating build/bdist.linux-x86_64/wheel/xarray-2022.3.0.dist-info/WHEEL
creating '/home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/dist/tmp3af7eg1_/xarray-2022.3.0-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it
adding 'xarray/__init__.py'
adding 'xarray/conventions.py'
adding 'xarray/convert.py'
adding 'xarray/py.typed'
adding 'xarray/testing.py'
adding 'xarray/tutorial.py'
adding 'xarray/ufuncs.py'
adding 'xarray/backends/__init__.py'
adding 'xarray/backends/api.py'
adding 'xarray/backends/cfgrib_.py'
adding 'xarray/backends/common.py'
adding 'xarray/backends/file_manager.py'
adding 'xarray/backends/h5netcdf_.py'
adding 'xarray/backends/locks.py'
adding 'xarray/backends/lru_cache.py'
adding 'xarray/backends/memory.py'
adding 'xarray/backends/netCDF4_.py'
adding 'xarray/backends/netcdf3.py'
adding 'xarray/backends/plugins.py'
adding 'xarray/backends/pseudonetcdf_.py'
adding 'xarray/backends/pydap_.py'
adding 'xarray/backends/pynio_.py'
adding 'xarray/backends/rasterio_.py'
adding 'xarray/backends/scipy_.py'
adding 'xarray/backends/store.py'
adding 'xarray/backends/zarr.py'
adding 'xarray/coding/__init__.py'
adding 'xarray/coding/calendar_ops.py'
adding 'xarray/coding/cftime_offsets.py'
adding 'xarray/coding/cftimeindex.py'
adding 'xarray/coding/frequencies.py'
adding 'xarray/coding/strings.py'
adding 'xarray/coding/times.py'
adding 'xarray/coding/variables.py'
adding 'xarray/core/__init__.py'
adding 'xarray/core/_reductions.py'
adding 'xarray/core/_typed_ops.py'
adding 'xarray/core/accessor_dt.py'
adding 'xarray/core/accessor_str.py'
adding 'xarray/core/alignment.py'
adding 'xarray/core/arithmetic.py'
adding 'xarray/core/combine.py'
adding 'xarray/core/common.py'
adding 'xarray/core/computation.py'
adding 'xarray/core/concat.py'
adding 'xarray/core/coordinates.py'
adding 'xarray/core/dask_array_compat.py'
adding 'xarray/core/dask_array_ops.py'
adding 'xarray/core/dataarray.py'
adding 'xarray/core/dataset.py'
adding 'xarray/core/dtypes.py'
adding 'xarray/core/duck_array_ops.py'
adding 'xarray/core/extensions.py'
adding 'xarray/core/formatting.py'
adding 'xarray/core/formatting_html.py'
adding 'xarray/core/groupby.py'
adding 'xarray/core/indexes.py'
adding 'xarray/core/indexing.py'
adding 'xarray/core/merge.py'
adding 'xarray/core/missing.py'
adding 'xarray/core/nanops.py'
adding 'xarray/core/npcompat.py'
adding 'xarray/core/nputils.py'
adding 'xarray/core/ops.py'
adding 'xarray/core/options.py'
adding 'xarray/core/parallel.py'
adding 'xarray/core/pdcompat.py'
adding 'xarray/core/pycompat.py'
adding 'xarray/core/resample.py'
adding 'xarray/core/resample_cftime.py'
adding 'xarray/core/rolling.py'
adding 'xarray/core/rolling_exp.py'
adding 'xarray/core/types.py'
adding 'xarray/core/utils.py'
adding 'xarray/core/variable.py'
adding 'xarray/core/weighted.py'
adding 'xarray/plot/__init__.py'
adding 'xarray/plot/dataset_plot.py'
adding 'xarray/plot/facetgrid.py'
adding 'xarray/plot/plot.py'
adding 'xarray/plot/utils.py'
adding 'xarray/static/__init__.py'
adding 'xarray/static/css/__init__.py'
adding 'xarray/static/css/style.css'
adding 'xarray/static/html/__init__.py'
adding 'xarray/static/html/icons-svg-inline.html'
adding 'xarray/tests/__init__.py'
adding 'xarray/tests/conftest.py'
adding 'xarray/tests/test_accessor_dt.py'
adding 'xarray/tests/test_accessor_str.py'
adding 'xarray/tests/test_backends.py'
adding 'xarray/tests/test_backends_api.py'
adding 'xarray/tests/test_backends_common.py'
adding 'xarray/tests/test_backends_file_manager.py'
adding 'xarray/tests/test_backends_locks.py'
adding 'xarray/tests/test_backends_lru_cache.py'
adding 'xarray/tests/test_calendar_ops.py'
adding 'xarray/tests/test_cftime_offsets.py'
adding 'xarray/tests/test_cftimeindex.py'
adding 'xarray/tests/test_cftimeindex_resample.py'
adding 'xarray/tests/test_coarsen.py'
adding 'xarray/tests/test_coding.py'
adding 'xarray/tests/test_coding_strings.py'
adding 'xarray/tests/test_coding_times.py'
adding 'xarray/tests/test_combine.py'
adding 'xarray/tests/test_computation.py'
adding 'xarray/tests/test_concat.py'
adding 'xarray/tests/test_conventions.py'
adding 'xarray/tests/test_cupy.py'
adding 'xarray/tests/test_dask.py'
adding 'xarray/tests/test_dataarray.py'
adding 'xarray/tests/test_dataset.py'
adding 'xarray/tests/test_distributed.py'
adding 'xarray/tests/test_dtypes.py'
adding 'xarray/tests/test_duck_array_ops.py'
adding 'xarray/tests/test_extensions.py'
adding 'xarray/tests/test_formatting.py'
adding 'xarray/tests/test_formatting_html.py'
adding 'xarray/tests/test_groupby.py'
adding 'xarray/tests/test_indexes.py'
adding 'xarray/tests/test_indexing.py'
adding 'xarray/tests/test_interp.py'
adding 'xarray/tests/test_merge.py'
adding 'xarray/tests/test_missing.py'
adding 'xarray/tests/test_nputils.py'
adding 'xarray/tests/test_options.py'
adding 'xarray/tests/test_plot.py'
adding 'xarray/tests/test_plugins.py'
adding 'xarray/tests/test_print_versions.py'
adding 'xarray/tests/test_sparse.py'
adding 'xarray/tests/test_testing.py'
adding 'xarray/tests/test_tutorial.py'
adding 'xarray/tests/test_ufuncs.py'
adding 'xarray/tests/test_units.py'
adding 'xarray/tests/test_utils.py'
adding 'xarray/tests/test_variable.py'
adding 'xarray/tests/test_weighted.py'
adding 'xarray/tests/data/bears.nc'
adding 'xarray/tests/data/example.grib'
adding 'xarray/tests/data/example.ict'
adding 'xarray/tests/data/example.uamiv'
adding 'xarray/tests/data/example_1.nc'
adding 'xarray/tests/data/example_1.nc.gz'
adding 'xarray/util/__init__.py'
adding 'xarray/util/generate_ops.py'
adding 'xarray/util/generate_reductions.py'
adding 'xarray/util/print_versions.py'
adding 'xarray-2022.3.0.dist-info/LICENSE'
adding 'xarray-2022.3.0.dist-info/METADATA'
adding 'xarray-2022.3.0.dist-info/WHEEL'
adding 'xarray-2022.3.0.dist-info/top_level.txt'
adding 'xarray-2022.3.0.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
Successfully built xarray-2022.3.0-py3-none-any.whl
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0
+ PBR_VERSION=2022.03.0
+ SETUPTOOLS_SCM_PRETEND_VERSION=2022.03.0
+ /usr/bin/python3 setup.py build_sphinx -b man --build-dir build/sphinx
/usr/lib/python3.8/site-packages/setuptools/dist.py:505: UserWarning: Normalizing '2022.03.0' to '2022.3.0'
  warnings.warn(tmpl.format(**locals()))
running build_sphinx
Running Sphinx v4.5.0
python exec: /usr/bin/python3
sys.path: ['/home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0', '/home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0', '/usr/lib64/python38.zip', '/usr/lib64/python3.8', '/usr/lib64/python3.8/lib-dynload', '/usr/lib64/python3.8/site-packages', '/usr/lib/python3.8/site-packages']
xarray: 2022.3.0, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/xarray/__init__.py
making output directory... done
[autosummary] generating autosummary for: README.rst, api-hidden.rst, api.rst, contributing.rst, developers-meeting.rst, ecosystem.rst, examples/ERA5-GRIB-example.ipynb, examples/ROMS_ocean_model.ipynb, examples/apply_ufunc_vectorize_1d.ipynb, examples/area_weighted_temperature.ipynb, ..., user-guide/indexing.rst, user-guide/interpolation.rst, user-guide/io.rst, user-guide/pandas.rst, user-guide/plotting.rst, user-guide/reshaping.rst, user-guide/terminology.rst, user-guide/time-series.rst, user-guide/weather-climate.rst, whats-new.rst
[autosummary] generating autosummary for: /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.CFTimeIndex.T.rst, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.CFTimeIndex.all.rst, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.CFTimeIndex.any.rst, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.CFTimeIndex.append.rst, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.CFTimeIndex.argmax.rst, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.CFTimeIndex.argmin.rst, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.CFTimeIndex.argsort.rst, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.CFTimeIndex.array.rst, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.CFTimeIndex.asi8.rst, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.CFTimeIndex.asof.rst, ..., /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.ufuncs.sin.rst, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.ufuncs.sinh.rst, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.ufuncs.sqrt.rst, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.ufuncs.square.rst, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.ufuncs.tan.rst, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.ufuncs.tanh.rst, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.ufuncs.trunc.rst, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.unify_chunks.rst, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.where.rst, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.zeros_like.rst
loading intersphinx inventory from https://docs.python.org/3/objects.inv...
loading intersphinx inventory from https://pandas.pydata.org/pandas-docs/stable/objects.inv...
loading intersphinx inventory from https://scitools-iris.readthedocs.io/en/latest/objects.inv...
loading intersphinx inventory from https://numpy.org/doc/stable/objects.inv...
loading intersphinx inventory from https://docs.scipy.org/doc/scipy/objects.inv...
loading intersphinx inventory from https://numba.pydata.org/numba-doc/latest/objects.inv...
loading intersphinx inventory from https://matplotlib.org/stable/objects.inv...
loading intersphinx inventory from https://docs.dask.org/en/latest/objects.inv...
loading intersphinx inventory from https://unidata.github.io/cftime/objects.inv...
loading intersphinx inventory from https://rasterio.readthedocs.io/en/latest/objects.inv...
loading intersphinx inventory from https://sparse.pydata.org/en/latest/objects.inv...
building [mo]: targets for 0 po files that are out of date
building [man]: all manpages
updating environment: [new config] 1282 added, 0 changed, 0 removed
Kernelspec name python3 cannot be found!GRIB-example
No such kernel named python3
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/jupyter_client/manager.py", line 71, in wrapper
    out = await method(self, *args, **kwargs)
  File "/usr/lib/python3.8/site-packages/jupyter_client/manager.py", line 377, in _async_start_kernel
    kernel_cmd, kw = await ensure_async(self.pre_start_kernel(**kw))
  File "/usr/lib/python3.8/site-packages/jupyter_client/utils.py", line 34, in ensure_async
    return await obj
  File "/usr/lib/python3.8/site-packages/jupyter_client/manager.py", line 340, in _async_pre_start_kernel
    self.kernel_spec,
  File "/usr/lib/python3.8/site-packages/jupyter_client/manager.py", line 170, in kernel_spec
    self._kernel_spec = self.kernel_spec_manager.get_kernel_spec(self.kernel_name)
  File "/usr/lib/python3.8/site-packages/jupyter_client/kernelspec.py", line 294, in get_kernel_spec
    raise NoSuchKernel(kernel_name)
jupyter_client.kernelspec.NoSuchKernel: No such kernel named python3

Notebook error:
NoSuchKernel in examples/ERA5-GRIB-example.ipynb:
No such kernel named python3

What did you expect to happen?

No response

Minimal Complete Verifiable Example

No response

Relevant log output

No response

Anything else we need to know?

No response

Environment

List of module sinstalled in build env

[tkloczko@devel-g2v doc]$ pip list
Package                       Version
----------------------------- -----------------
alabaster                     0.7.12
appdirs                       1.4.4
attrs                         21.4.0
Babel                         2.9.1
backcall                      0.2.0
beautifulsoup4                4.10.0
bleach                        4.1.0
build                         0.7.0
charset-normalizer            2.0.12
cycler                        0.11.0
decorator                     5.1.1
defusedxml                    0.7.1
distro                        1.7.0
docutils                      0.17.1
entrypoints                   0.4
execnet                       1.9.0
extras                        1.0.0
fastjsonschema                2.15.3
fixtures                      3.0.0
fonttools                     4.31.2
gpg                           1.17.1-unknown
html5lib                      1.1
idna                          3.3
imagesize                     1.3.0
importlib-metadata            4.11.3
importlib-resources           5.6.0
iniconfig                     1.1.1
ipython                       7.30.1
jedi                          0.18.1
Jinja2                        3.1.1
jsonschema                    4.4.0
jupyter-client                7.2.2
jupyter-core                  4.9.2
jupyterlab-pygments           0.1.2
kiwisolver                    1.3.2
libcomps                      0.1.18
MarkupSafe                    2.1.1
matplotlib                    3.5.1
matplotlib-inline             0.1.3
mistune                       0.8.4
nbclient                      0.5.13
nbconvert                     6.4.5
nbformat                      5.3.0
nbsphinx                      0.8.8
nest-asyncio                  1.5.4
numpy                         1.22.3
olefile                       0.46
packaging                     21.3
pandas                        1.4.2
pandocfilters                 1.5.0
parso                         0.8.3
pbr                           5.8.0
pep517                        0.12.0
pexpect                       4.8.0
pickleshare                   0.7.5
Pillow                        9.1.0
pip                           22.0.4
pluggy                        1.0.0
pooch                         1.6.0
prompt-toolkit                3.0.24
ptyprocess                    0.7.0
py                            1.11.0
Pygments                      2.11.2
PyGObject                     3.42.0
pyparsing                     3.0.7
pyrsistent                    0.18.1
pytest                        7.1.1
pytest-forked                 1.4.0
pytest-xdist                  2.5.0
python-dateutil               2.8.2
pytz                          2022.1
pyzmq                         22.3.0
requests                      2.27.1
rpm                           4.17.0
setuptools                    60.9.3
setuptools-scm                6.4.2
setuptools-scm-git-archive    1.1
six                           1.16.0
snowballstemmer               2.2.0
soupsieve                     2.3.1
Sphinx                        4.5.0.dev20220404
sphinx-autosummary-accessors  2022.4.0
sphinx-copybutton             0.4.0
sphinx-gallery                0.10.1
sphinx-panels                 0.6.0
sphinx-rtd-theme              1.0.0
sphinxcontrib-applehelp       1.0.2.dev20220108
sphinxcontrib-devhelp         1.0.2.dev20220108
sphinxcontrib-htmlhelp        2.0.0
sphinxcontrib-jsmath          1.0.1.dev20220108
sphinxcontrib-qthelp          1.0.3.dev20220108
sphinxcontrib-serializinghtml 1.1.5
sphinxext-opengraph           0.6.3
sphinxext-rediraffe           main
testpath                      0.6.0
testtools                     2.5.0
tomli                         2.0.1
tornado                       6.1
traitlets                     5.1.1
urllib3                       1.26.8
wcwidth                       0.2.5
webencodings                  0.5.1
wheel                         0.37.1
zipp                          3.8.0
@kloczek kloczek added bug needs triage Issue that has not been reviewed by xarray team member labels Apr 7, 2022
@keewis
Copy link
Collaborator

keewis commented Apr 7, 2022

not sure, but that might be because your environment is missing the ipykernel package

@keewis keewis added topic-documentation usage question and removed bug needs triage Issue that has not been reviewed by xarray team member labels Apr 7, 2022
@kloczek
Copy link
Author

kloczek commented Apr 7, 2022

I've added ipykernel to build dependencies and build moved few steps forward and failed again

+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0
+ /usr/bin/python3 setup.py build_sphinx -b man --build-dir build/sphinx
/usr/lib/python3.8/site-packages/setuptools/dist.py:505: UserWarning: Normalizing '2022.03.0' to '2022.3.0'
  warnings.warn(tmpl.format(**locals()))
running build_sphinx
Running Sphinx v4.5.0
python exec: /usr/bin/python3
sys.path: ['/home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0', '/home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0', '/usr/lib64/python38.zip', '/usr/lib64/python3.8', '/usr/lib64/python3.8/lib-dynload', '/usr/lib64/python3.8/site-packages', '/usr/lib/python3.8/site-packages']
xarray: 2022.3.0, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/xarray/__init__.py
making output directory... done
[autosummary] generating autosummary for: README.rst, api-hidden.rst, api.rst, contributing.rst, developers-meeting.rst, ecosystem.rst, examples/ERA5-GRIB-example.ipynb, examples/ROMS_ocean_model.ipynb, examples/apply_ufunc_vectorize_1d.ipynb, examples/area_weighted_temperature.ipynb, ..., user-guide/indexing.rst, user-guide/interpolation.rst, user-guide/io.rst, user-guide/pandas.rst, user-guide/plotting.rst, user-guide/reshaping.rst, user-guide/terminology.rst, user-guide/time-series.rst, user-guide/weather-climate.rst, whats-new.rst
[autosummary] generating autosummary for: /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.CFTimeIndex.T.rst, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.CFTimeIndex.all.rst, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.CFTimeIndex.any.rst, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.CFTimeIndex.append.rst, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.CFTimeIndex.argmax.rst, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.CFTimeIndex.argmin.rst, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.CFTimeIndex.argsort.rst, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.CFTimeIndex.array.rst, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.CFTimeIndex.asi8.rst, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.CFTimeIndex.asof.rst, ..., /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.ufuncs.sin.rst, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.ufuncs.sinh.rst, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.ufuncs.sqrt.rst, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.ufuncs.square.rst, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.ufuncs.tan.rst, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.ufuncs.tanh.rst, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.ufuncs.trunc.rst, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.unify_chunks.rst, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.where.rst, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.zeros_like.rst
loading intersphinx inventory from https://docs.python.org/3/objects.inv...
loading intersphinx inventory from https://pandas.pydata.org/pandas-docs/stable/objects.inv...
loading intersphinx inventory from https://scitools-iris.readthedocs.io/en/latest/objects.inv...
loading intersphinx inventory from https://numpy.org/doc/stable/objects.inv...
loading intersphinx inventory from https://docs.scipy.org/doc/scipy/objects.inv...
loading intersphinx inventory from https://numba.pydata.org/numba-doc/latest/objects.inv...
loading intersphinx inventory from https://matplotlib.org/stable/objects.inv...
loading intersphinx inventory from https://docs.dask.org/en/latest/objects.inv...
loading intersphinx inventory from https://unidata.github.io/cftime/objects.inv...
loading intersphinx inventory from https://rasterio.readthedocs.io/en/latest/objects.inv...
loading intersphinx inventory from https://sparse.pydata.org/en/latest/objects.inv...
building [mo]: targets for 0 po files that are out of date
building [man]: all manpages
updating environment: [new config] 1282 added, 0 changed, 0 removed
reading sources... [  0%] examples/ERA5-GRIB-example
Notebook error:
CellExecutionError in examples/ERA5-GRIB-example.ipynb:
------------------
ds = xr.tutorial.load_dataset("era5-2mt-2019-03-uk.grib", engine="cfgrib")
------------------

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
/tmp/ipykernel_599775/3699872736.py in <module>
----> 1 ds = xr.tutorial.load_dataset("era5-2mt-2019-03-uk.grib", engine="cfgrib")

~/rpmbuild/BUILD/xarray-2022.03.0/xarray/tutorial.py in load_dataset(*args, **kwargs)
    223     open_dataset
    224     """
--> 225     with open_dataset(*args, **kwargs) as ds:
    226         return ds.load()
    227

~/rpmbuild/BUILD/xarray-2022.03.0/xarray/tutorial.py in open_dataset(name, cache, cache_dir, engine, **kws)
    141     # retrieve the file
    142     filepath = pooch.retrieve(url=url, known_hash=None, path=cache_dir)
--> 143     ds = _open_dataset(filepath, engine=engine, **kws)
    144     if not cache:
    145         ds = ds.load()

~/rpmbuild/BUILD/xarray-2022.03.0/xarray/backends/api.py in open_dataset(filename_or_obj, engine, chunks, cache, decode_cf, mask_and_scale, decode_times, decode_timedelta, use_cftime, concat_characters, decode_coords, drop_variables, backend_kwargs, *args, **kwargs)
    479         engine = plugins.guess_engine(filename_or_obj)
    480
--> 481     backend = plugins.get_backend(engine)
    482
    483     decoders = _resolve_decoders_kwargs(

~/rpmbuild/BUILD/xarray-2022.03.0/xarray/backends/plugins.py in get_backend(engine)
    154         engines = list_engines()
    155         if engine not in engines:
--> 156             raise ValueError(
    157                 f"unrecognized engine {engine} must be one of: {list(engines)}"
    158             )

ValueError: unrecognized engine cfgrib must be one of: ['store']
ValueError: unrecognized engine cfgrib must be one of: ['store']

You can ignore this error by setting the following in conf.py:

    nbsphinx_allow_errors = True

@dcherian
Copy link
Contributor

dcherian commented Apr 7, 2022

Everything should work if you create an environment using https://github.com/pydata/xarray/blob/main/ci/requirements/doc.yml . Can you try that please?

@max-sixty max-sixty added the plan to close May be closeable, needs more eyeballs label Apr 14, 2022
@kloczek
Copy link
Author

kloczek commented Apr 15, 2022

Everything should work if you create an environment using https://github.com/pydata/xarray/blob/main/ci/requirements/doc.yml . Can you try that please?

Issue seems is in other place
after add patch

--- a/doc/conf.py~      2022-03-02 15:49:23.000000000 +0000
+++ b/doc/conf.py       2022-04-15 18:32:06.848726986 +0000
@@ -17,6 +17,9 @@
 import os
 import subprocess
 import sys
+
+sys.path.append(os.path.abspath('..'))
+
 from contextlib import suppress

 import sphinx_autosummary_accessors

build-shinx shows:

[tkloczko@devel-g2v xarray-2022.03.0]$ /usr/bin/sphinx-build -n -T -b man doc build/sphinx/man
Running Sphinx v4.5.0
python exec: /usr/bin/python3
sys.path: ['/usr/bin', '/usr/lib64/python38.zip', '/usr/lib64/python3.8', '/usr/lib64/python3.8/lib-dynload', '/usr/lib64/python3.8/site-packages', '/usr/lib/python3.8/site-packages', '/home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0']
xarray: 2022.3.0, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/xarray/__init__.py
making output directory... done
[autosummary] generating autosummary for: README.rst, api-hidden.rst, api.rst, contributing.rst, developers-meeting.rst, ecosystem.rst, examples/ERA5-GRIB-example.ipynb, examples/ROMS_ocean_model.ipynb, examples/apply_ufunc_vectorize_1d.ipynb, examples/area_weighted_temperature.ipynb, ..., user-guide/indexing.rst, user-guide/interpolation.rst, user-guide/io.rst, user-guide/pandas.rst, user-guide/plotting.rst, user-guide/reshaping.rst, user-guide/terminology.rst, user-guide/time-series.rst, user-guide/weather-climate.rst, whats-new.rst
[autosummary] generating autosummary for: /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.CFTimeIndex.T.rst, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.CFTimeIndex.all.rst, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.CFTimeIndex.any.rst, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.CFTimeIndex.append.rst, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.CFTimeIndex.argmax.rst, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.CFTimeIndex.argmin.rst, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.CFTimeIndex.argsort.rst, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.CFTimeIndex.array.rst, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.CFTimeIndex.asi8.rst, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.CFTimeIndex.asof.rst, ..., /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.ufuncs.sin.rst, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.ufuncs.sinh.rst, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.ufuncs.sqrt.rst, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.ufuncs.square.rst, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.ufuncs.tan.rst, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.ufuncs.tanh.rst, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.ufuncs.trunc.rst, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.unify_chunks.rst, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.where.rst, /home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0/doc/generated/xarray.zeros_like.rst
loading intersphinx inventory from https://docs.python.org/3/objects.inv...
loading intersphinx inventory from https://pandas.pydata.org/pandas-docs/stable/objects.inv...
loading intersphinx inventory from https://scitools-iris.readthedocs.io/en/latest/objects.inv...
loading intersphinx inventory from https://numpy.org/doc/stable/objects.inv...
loading intersphinx inventory from https://docs.scipy.org/doc/scipy/objects.inv...
loading intersphinx inventory from https://numba.pydata.org/numba-doc/latest/objects.inv...
loading intersphinx inventory from https://matplotlib.org/stable/objects.inv...
loading intersphinx inventory from https://docs.dask.org/en/latest/objects.inv...
loading intersphinx inventory from https://unidata.github.io/cftime/objects.inv...
loading intersphinx inventory from https://rasterio.readthedocs.io/en/latest/objects.inv...
loading intersphinx inventory from https://sparse.pydata.org/en/latest/objects.inv...
building [mo]: targets for 0 po files that are out of date
building [man]: all manpages
updating environment: [new config] 1282 added, 0 changed, 0 removed
reading sources... [  0%] examples/ERA5-GRIB-example
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/nbsphinx.py", line 1032, in parse
    rststring, resources = exporter.from_notebook_node(nb, resources)
  File "/usr/lib/python3.8/site-packages/nbsphinx.py", line 842, in from_notebook_node
    nb, resources = pp.preprocess(nb, resources)
  File "/usr/lib/python3.8/site-packages/nbconvert/preprocessors/execute.py", line 83, in preprocess
    self.preprocess_cell(cell, resources, index)
  File "/usr/lib/python3.8/site-packages/nbconvert/preprocessors/execute.py", line 104, in preprocess_cell
    cell = self.execute_cell(cell, index, store_history=True)
  File "/usr/lib/python3.8/site-packages/nbclient/util.py", line 84, in wrapped
    return just_run(coro(*args, **kwargs))
  File "/usr/lib/python3.8/site-packages/nbclient/util.py", line 62, in just_run
    return loop.run_until_complete(coro)
  File "/usr/lib64/python3.8/asyncio/base_events.py", line 616, in run_until_complete
    return future.result()
  File "/usr/lib/python3.8/site-packages/nbclient/client.py", line 965, in async_execute_cell
    await self._check_raise_for_error(cell, cell_index, exec_reply)
  File "/usr/lib/python3.8/site-packages/nbclient/client.py", line 862, in _check_raise_for_error
    raise CellExecutionError.from_cell_and_msg(cell, exec_reply_content)
nbclient.exceptions.CellExecutionError: An error occurred while executing the following cell:
------------------
import xarray as xr
import matplotlib.pyplot as plt
------------------

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
/tmp/ipykernel_1995816/830426931.py in <module>
----> 1 import xarray as xr
      2 import matplotlib.pyplot as plt

ModuleNotFoundError: No module named 'xarray'
ModuleNotFoundError: No module named 'xarray'


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/sphinx/cmd/build.py", line 276, in build_main
    app.build(args.force_all, filenames)
  File "/usr/lib/python3.8/site-packages/sphinx/application.py", line 330, in build
    self.builder.build_update()
  File "/usr/lib/python3.8/site-packages/sphinx/builders/__init__.py", line 283, in build_update
    self.build(['__all__'], to_build)
  File "/usr/lib/python3.8/site-packages/sphinx/builders/__init__.py", line 300, in build
    updated_docnames = set(self.read())
  File "/usr/lib/python3.8/site-packages/sphinx/builders/__init__.py", line 407, in read
    self._read_serial(docnames)
  File "/usr/lib/python3.8/site-packages/sphinx/builders/__init__.py", line 428, in _read_serial
    self.read_doc(docname)
  File "/usr/lib/python3.8/site-packages/sphinx/builders/__init__.py", line 468, in read_doc
    doctree = read_doc(self.app, self.env, self.env.doc2path(docname))
  File "/usr/lib/python3.8/site-packages/sphinx/io.py", line 181, in read_doc
    pub.publish()
  File "/usr/lib/python3.8/site-packages/docutils/core.py", line 217, in publish
    self.document = self.reader.read(self.source, self.parser,
  File "/usr/lib/python3.8/site-packages/sphinx/io.py", line 101, in read
    self.parse()
  File "/usr/lib/python3.8/site-packages/docutils/readers/__init__.py", line 78, in parse
    self.parser.parse(self.input, document)
  File "/usr/lib/python3.8/site-packages/nbsphinx.py", line 1039, in parse
    raise NotebookError('\n'.join(lines))
nbsphinx.NotebookError: CellExecutionError in examples/ERA5-GRIB-example.ipynb:
------------------
import xarray as xr
import matplotlib.pyplot as plt
------------------

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
/tmp/ipykernel_1995816/830426931.py in <module>
----> 1 import xarray as xr
      2 import matplotlib.pyplot as plt

ModuleNotFoundError: No module named 'xarray'
ModuleNotFoundError: No module named 'xarray'

You can ignore this error by setting the following in conf.py:

    nbsphinx_allow_errors = True


Notebook error:
CellExecutionError in examples/ERA5-GRIB-example.ipynb:
------------------
import xarray as xr
import matplotlib.pyplot as plt
------------------

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
/tmp/ipykernel_1995816/830426931.py in <module>
----> 1 import xarray as xr
      2 import matplotlib.pyplot as plt

ModuleNotFoundError: No module named 'xarray'
ModuleNotFoundError: No module named 'xarray'

You can ignore this error by setting the following in conf.py:

    nbsphinx_allow_errors = True

So for some reason at some point it cannot locate xarray module even if your diagnostics shows:

Running Sphinx v4.5.0
python exec: /usr/bin/python3
sys.path: ['/usr/bin', '/usr/lib64/python38.zip', '/usr/lib64/python3.8', '/usr/lib64/python3.8/lib-dynload', '/usr/lib64/python3.8/site-packages', '/usr/lib/python3.8/site-packages', '/home/tkloczko/rpmbuild/BUILD/xarray-2022.03.0']

Because i see used subprocess module I'm gueassing that that path is executed without injected .. to sys.path and that part fails.

Could ypu please try to reproduce this issue by uninstall xarray and using only source tree please try to execute build-sphinx command as same as I'm doing that?

@dcherian
Copy link
Contributor

It seems like you're missing the pip install -e . step.

Please see https://docs.xarray.dev/en/stable/contributing.html#how-to-build-the-xarray-documentation for instructions

@dcherian dcherian reopened this Apr 18, 2022
@kloczek
Copy link
Author

kloczek commented Apr 19, 2022

It seems like you're missing the pip install -e . step.

Please see https://docs.xarray.dev/en/stable/contributing.html#how-to-build-the-xarray-documentation for instructions

If you will follow procedure which I've provided by executing python3 -sBm build -w --no-isolation you will find that xarray.egg-info directory in project root with modules metadata is already created (as part of the pep517 build when setuptools as build backend is used).
In other words pip install -e . is not needed and it is not the cause of the reported issue.

@keewis
Copy link
Collaborator

keewis commented Jul 28, 2022

I'll close this as the reason for the failure is that xarray was never actually installed (python -m build -w --no-isolation will only build a wheel, it will not install, and the .egg-info directory is a build artifact).

@keewis keewis closed this as completed Jul 28, 2022
@kloczek
Copy link
Author

kloczek commented Sep 28, 2022

I'll close this as the reason for the failure is that xarray was never actually installed (python -m build -w --no-isolation will only build a wheel, it will not install, and the .egg-info directory is a build artifact).

Please have look one more time on top patch.
I'm building documentation after build which created directory with module metadata (because xarray uses as pep517 backednd setuptools) and patch adds to sys.path path to the directoey where metadata are available.

@keewis
Copy link
Collaborator

keewis commented Oct 3, 2022

if you look at your traceback, it says ModuleNotFoundError: No module named 'xarray' (i.e. most likely your sys.path patch does not work / points to the wrong directory).

We tried the sys.path patch before, but couldn't get it to build correctly because one of the optional dependencies depends on xarray (cfgrib, in this case).

I'm not sure for which OS you're building packages for, but you should have some sort of isolated build environment (chroot / docker / something else?). The most reliable way to fix this issue then is to install the built package (a wheel?) into that development environment.

@kloczek
Copy link
Author

kloczek commented Oct 3, 2022

So someting is messing with sys.path. Most likepy some of the modules is using pkg_resources module which is known that it trashes sys.path pypa/setuptools#3279.
If that it the cause solution would be migration from use pkg_resources to importlib_metadata (I've checked and xarray already done such migration).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plan to close May be closeable, needs more eyeballs topic-documentation usage question
Projects
None yet
Development

No branches or pull requests

4 participants