You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following error is being thrown on the latest Python built from source:
Traceback (most recent call last):
File "/root/cpython/Doc/./venv/bin/sphinx-build", line 5, in <module>
from sphinx.cmd.build import main
File "/root/cpython/Doc/venv/lib/python3.10/site-packages/sphinx/cmd/build.py", line 23, in <module>
from sphinx.application import Sphinx
File "/root/cpython/Doc/venv/lib/python3.10/site-packages/sphinx/application.py", line 28, in <module>
from sphinx.config import Config
File "/root/cpython/Doc/venv/lib/python3.10/site-packages/sphinx/config.py", line 22, in <module>
from sphinx.util import logging
File "/root/cpython/Doc/venv/lib/python3.10/site-packages/sphinx/util/__init__.py", line 40, in <module>
from sphinx.util import smartypants # noqa
File "/root/cpython/Doc/venv/lib/python3.10/site-packages/sphinx/util/smartypants.py", line 33, in <module>
from sphinx.util.docutils import __version_info__ as docutils_version
File "/root/cpython/Doc/venv/lib/python3.10/site-packages/sphinx/util/docutils.py", line 17, in <module>
from distutils.version import LooseVersion
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 982, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 925, in _find_spec
File "/root/cpython/Doc/venv/lib/python3.10/site-packages/_distutils_hack/__init__.py", line 74, in find_spec
return method()
File "/root/cpython/Doc/venv/lib/python3.10/site-packages/_distutils_hack/__init__.py", line 79, in spec_for_distutils
class DistutilsLoader(importlib.util.abc.Loader):
AttributeError: module 'importlib.util' has no attribute 'abc'
It seems to me like the fact that importlib.abc was exported through importlib.util.abc was an implementation detail and this code should be using importlib.abc.Loader directly:
The following error is being thrown on the latest Python built from source:
The curlprit commit is python/cpython@9e09849
It seems to me like the fact that
importlib.abc
was exported throughimportlib.util.abc
was an implementation detail and this code should be usingimportlib.abc.Loader
directly:setuptools/_distutils_hack/__init__.py
Line 79 in 04e3df2
The text was updated successfully, but these errors were encountered: