Draft
Conversation
Workaround for `AttributeError: type object 'Autosummary' has no attribute 'create_documenter'`. Xref xarray-contrib/sphinx-autosummary-accessors#165
Member
Author
|
Another error on the readthedocs build - https://app.readthedocs.org/projects/cupy-xarray/builds/31669682/: Traceback (most recent call last):
File "/home/docs/checkouts/readthedocs.org/user_builds/cupy-xarray/conda/82/lib/python3.10/site-packages/sphinx/config.py", line 529, in eval_config_file
exec(code, namespace) # NoQA: S102
File "/home/docs/checkouts/readthedocs.org/user_builds/cupy-xarray/checkouts/82/docs/conf.py", line 11, in <module>
import cupy_xarray # noqa: F401
File "/home/docs/checkouts/readthedocs.org/user_builds/cupy-xarray/checkouts/82/cupy_xarray/__init__.py", line 2, in <module>
from .accessors import CupyDataArrayAccessor, CupyDatasetAccessor # noqa
File "/home/docs/checkouts/readthedocs.org/user_builds/cupy-xarray/checkouts/82/cupy_xarray/accessors.py", line 5, in <module>
import cupy as cp
File "/home/docs/checkouts/readthedocs.org/user_builds/cupy-xarray/conda/82/lib/python3.10/site-packages/cupy/__init__.py", line 18, in <module>
from cupy import _core # NOQA
File "/home/docs/checkouts/readthedocs.org/user_builds/cupy-xarray/conda/82/lib/python3.10/site-packages/cupy/_core/__init__.py", line 5, in <module>
from cupy._core import core # NOQA
File "cupy/_core/core.pyx", line 1, in init cupy._core.core
File "cupy/_core/_routines_math.pyx", line 7, in init cupy._core._routines_math
File "cupy/_core/_reduction.pyx", line 1, in init cupy._core._reduction
File "cupy/_core/_cub_reduction.pyx", line 260, in init cupy._core._cub_reduction
File "/home/docs/checkouts/readthedocs.org/user_builds/cupy-xarray/conda/82/lib/python3.10/site-packages/cupy/_environment.py", line 86, in get_nvcc_path
_nvcc_path = _get_nvcc_path()
File "/home/docs/checkouts/readthedocs.org/user_builds/cupy-xarray/conda/82/lib/python3.10/site-packages/cupy/_environment.py", line 198, in _get_nvcc_path
cuda_path = get_cuda_path()
File "/home/docs/checkouts/readthedocs.org/user_builds/cupy-xarray/conda/82/lib/python3.10/site-packages/cupy/_environment.py", line 78, in get_cuda_path
_cuda_path = _get_cuda_path()
File "/home/docs/checkouts/readthedocs.org/user_builds/cupy-xarray/conda/82/lib/python3.10/site-packages/cupy/_environment.py", line 151, in _get_cuda_path
conda_cuda_path = _get_conda_cuda_path()
File "/home/docs/checkouts/readthedocs.org/user_builds/cupy-xarray/conda/82/lib/python3.10/site-packages/cupy/_environment.py", line 130, in _get_conda_cuda_path
cuda_path = os.path.join(conda_prefix, 'targets', arch)
File "/home/docs/checkouts/readthedocs.org/user_builds/cupy-xarray/conda/82/lib/python3.10/posixpath.py", line 76, in join
a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not NoneType
|
Collaborator
|
Instead of constraining this here maybe it would be better to patch the conda-forge repo metadata for the |
Member
|
I won't have time to constrain the repo metadata in the near future (and a proper fix appears to require changes to However, I do think that constraining locally is the right move in this case. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Workaround for
AttributeError: type object 'Autosummary' has no attribute 'create_documenter'.Xref xarray-contrib/sphinx-autosummary-accessors#165