home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 1100283959

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions performed_via_github_app issue
https://github.com/pydata/xarray/issues/6454#issuecomment-1100283959 https://api.github.com/repos/pydata/xarray/issues/6454 1100283959 IC_kwDOAMm_X85BlQA3 31284574 2022-04-15T18:37:22Z 2022-04-15T18:37:22Z NONE

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 ```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:console [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:console 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 usedsubprocessmodule I'm gueassing that that path is executed without injected..tosys.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?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  1196425693
Powered by Datasette · Queries took 0.961ms · About: xarray-datasette