234: sphiinx warnings and errors
kloczek opened this issue · 0 comments
kloczek commented
After apply patch below which migrates from distutils to setuptools
--- a//setup.py~ 2017-03-26 02:33:59.000000000 +0100
+++ b//setup.py 2021-06-06 06:45:00.369493129 +0100
@@ -1,5 +1,5 @@
import sys, os
-from distutils.core import setup, Extension
+from setuptools import setup, Extension
from subprocess import Popen, PIPE, check_output
def call(*cmd):
+ /usr/bin/python3 setup.py build_sphinx -b man --build-dir build/sphinx
running build_sphinx
Running Sphinx v4.0.2
making output directory... done
loading intersphinx inventory from http://docs.python.org/objects.inv...
intersphinx inventory has moved: http://docs.python.org/objects.inv -> https://docs.python.org/3/objects.inv
building [mo]: targets for 0 po files that are out of date
building [man]: all manpages
updating environment: [new config] 5 added, 0 changed, 0 removed
reading sources... [100%] login
WARNING: autodoc: failed to import module 'daemon' from module 'systemd'; the following exception was raised:
No module named 'systemd._daemon'
WARNING: autodoc: failed to import module 'id128' from module 'systemd'; the following exception was raised:
No module named 'systemd.id128'
WARNING: autodoc: failed to import module 'journal' from module 'systemd'; the following exception was raised:
No module named 'systemd._journal'
WARNING: don't know which module to import for autodocumenting 'JournalHandler' (try placing a "module" or "currentmodule" directive in the document, or giving an explicit module name)
WARNING: don't know which module to import for autodocumenting '_Reader' (try placing a "module" or "currentmodule" directive in the document, or giving an explicit module name)
WARNING: don't know which module to import for autodocumenting 'Reader' (try placing a "module" or "currentmodule" directive in the document, or giving an explicit module name)
WARNING: don't know which module to import for autodocumenting '_get_catalog' (try placing a "module" or "currentmodule" directive in the document, or giving an explicit module name)
WARNING: don't know which module to import for autodocumenting 'get_catalog' (try placing a "module" or "currentmodule" directive in the document, or giving an explicit module name)
WARNING: don't know which module to import for autodocumenting 'Monotonic' (try placing a "module" or "currentmodule" directive in the document, or giving an explicit module name)
WARNING: autodoc: failed to import attribute 'journal.DEFAULT_CONVERTERS' from module 'systemd'; the following exception was raised:
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/sphinx/util/inspect.py", line 412, in safe_getattr
return getattr(obj, name, *defargs)
AttributeError: module 'systemd' has no attribute 'journal'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/sphinx/ext/autodoc/importer.py", line 110, in import_object
obj = attrgetter(obj, mangled_name)
File "/usr/lib/python3.8/site-packages/sphinx/ext/autodoc/__init__.py", line 318, in get_attr
return autodoc_attrgetter(self.env.app, obj, name, *defargs)
File "/usr/lib/python3.8/site-packages/sphinx/ext/autodoc/__init__.py", line 2606, in autodoc_attrgetter
return safe_getattr(obj, name, *defargs)
File "/usr/lib/python3.8/site-packages/sphinx/util/inspect.py", line 428, in safe_getattr
raise AttributeError(name) from exc
AttributeError: journal
WARNING: autodoc: failed to import attribute 'journal.LOCAL_ONLY' from module 'systemd'; the following exception was raised:
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/sphinx/util/inspect.py", line 412, in safe_getattr
return getattr(obj, name, *defargs)
AttributeError: module 'systemd' has no attribute 'journal'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/sphinx/ext/autodoc/importer.py", line 110, in import_object
obj = attrgetter(obj, mangled_name)
File "/usr/lib/python3.8/site-packages/sphinx/ext/autodoc/__init__.py", line 318, in get_attr
return autodoc_attrgetter(self.env.app, obj, name, *defargs)
File "/usr/lib/python3.8/site-packages/sphinx/ext/autodoc/__init__.py", line 2606, in autodoc_attrgetter
return safe_getattr(obj, name, *defargs)
File "/usr/lib/python3.8/site-packages/sphinx/util/inspect.py", line 428, in safe_getattr
raise AttributeError(name) from exc
AttributeError: journal
WARNING: autodoc: failed to import attribute 'journal.RUNTIME_ONLY' from module 'systemd'; the following exception was raised:
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/sphinx/util/inspect.py", line 412, in safe_getattr
return getattr(obj, name, *defargs)
AttributeError: module 'systemd' has no attribute 'journal'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/sphinx/ext/autodoc/importer.py", line 110, in import_object
obj = attrgetter(obj, mangled_name)
File "/usr/lib/python3.8/site-packages/sphinx/ext/autodoc/__init__.py", line 318, in get_attr
return autodoc_attrgetter(self.env.app, obj, name, *defargs)
File "/usr/lib/python3.8/site-packages/sphinx/ext/autodoc/__init__.py", line 2606, in autodoc_attrgetter
return safe_getattr(obj, name, *defargs)
File "/usr/lib/python3.8/site-packages/sphinx/util/inspect.py", line 428, in safe_getattr
raise AttributeError(name) from exc
AttributeError: journal
WARNING: autodoc: failed to import attribute 'journal.SYSTEM' from module 'systemd'; the following exception was raised:
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/sphinx/util/inspect.py", line 412, in safe_getattr
return getattr(obj, name, *defargs)
AttributeError: module 'systemd' has no attribute 'journal'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/sphinx/ext/autodoc/importer.py", line 110, in import_object
obj = attrgetter(obj, mangled_name)
File "/usr/lib/python3.8/site-packages/sphinx/ext/autodoc/__init__.py", line 318, in get_attr
return autodoc_attrgetter(self.env.app, obj, name, *defargs)
File "/usr/lib/python3.8/site-packages/sphinx/ext/autodoc/__init__.py", line 2606, in autodoc_attrgetter
return safe_getattr(obj, name, *defargs)
File "/usr/lib/python3.8/site-packages/sphinx/util/inspect.py", line 428, in safe_getattr
raise AttributeError(name) from exc
AttributeError: journal
WARNING: autodoc: failed to import attribute 'journal.CURRENT_USER' from module 'systemd'; the following exception was raised:
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/sphinx/util/inspect.py", line 412, in safe_getattr
return getattr(obj, name, *defargs)
AttributeError: module 'systemd' has no attribute 'journal'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/sphinx/ext/autodoc/importer.py", line 110, in import_object
obj = attrgetter(obj, mangled_name)
File "/usr/lib/python3.8/site-packages/sphinx/ext/autodoc/__init__.py", line 318, in get_attr
return autodoc_attrgetter(self.env.app, obj, name, *defargs)
File "/usr/lib/python3.8/site-packages/sphinx/ext/autodoc/__init__.py", line 2606, in autodoc_attrgetter
return safe_getattr(obj, name, *defargs)
File "/usr/lib/python3.8/site-packages/sphinx/util/inspect.py", line 428, in safe_getattr
raise AttributeError(name) from exc
AttributeError: journal
WARNING: autodoc: failed to import attribute 'journal.OS_ROOT' from module 'systemd'; the following exception was raised:
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/sphinx/util/inspect.py", line 412, in safe_getattr
return getattr(obj, name, *defargs)
AttributeError: module 'systemd' has no attribute 'journal'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/sphinx/ext/autodoc/importer.py", line 110, in import_object
obj = attrgetter(obj, mangled_name)
File "/usr/lib/python3.8/site-packages/sphinx/ext/autodoc/__init__.py", line 318, in get_attr
return autodoc_attrgetter(self.env.app, obj, name, *defargs)
File "/usr/lib/python3.8/site-packages/sphinx/ext/autodoc/__init__.py", line 2606, in autodoc_attrgetter
return safe_getattr(obj, name, *defargs)
File "/usr/lib/python3.8/site-packages/sphinx/util/inspect.py", line 428, in safe_getattr
raise AttributeError(name) from exc
AttributeError: journal
WARNING: autodoc: failed to import attribute 'journal.NOP' from module 'systemd'; the following exception was raised:
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/sphinx/util/inspect.py", line 412, in safe_getattr
return getattr(obj, name, *defargs)
AttributeError: module 'systemd' has no attribute 'journal'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/sphinx/ext/autodoc/importer.py", line 110, in import_object
obj = attrgetter(obj, mangled_name)
File "/usr/lib/python3.8/site-packages/sphinx/ext/autodoc/__init__.py", line 318, in get_attr
return autodoc_attrgetter(self.env.app, obj, name, *defargs)
File "/usr/lib/python3.8/site-packages/sphinx/ext/autodoc/__init__.py", line 2606, in autodoc_attrgetter
return safe_getattr(obj, name, *defargs)
File "/usr/lib/python3.8/site-packages/sphinx/util/inspect.py", line 428, in safe_getattr
raise AttributeError(name) from exc
AttributeError: journal
WARNING: autodoc: failed to import attribute 'journal.APPEND' from module 'systemd'; the following exception was raised:
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/sphinx/util/inspect.py", line 412, in safe_getattr
return getattr(obj, name, *defargs)
AttributeError: module 'systemd' has no attribute 'journal'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/sphinx/ext/autodoc/importer.py", line 110, in import_object
obj = attrgetter(obj, mangled_name)
File "/usr/lib/python3.8/site-packages/sphinx/ext/autodoc/__init__.py", line 318, in get_attr
return autodoc_attrgetter(self.env.app, obj, name, *defargs)
File "/usr/lib/python3.8/site-packages/sphinx/ext/autodoc/__init__.py", line 2606, in autodoc_attrgetter
return safe_getattr(obj, name, *defargs)
File "/usr/lib/python3.8/site-packages/sphinx/util/inspect.py", line 428, in safe_getattr
raise AttributeError(name) from exc
AttributeError: journal
WARNING: autodoc: failed to import attribute 'journal.INVALIDATE' from module 'systemd'; the following exception was raised:
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/sphinx/util/inspect.py", line 412, in safe_getattr
return getattr(obj, name, *defargs)
AttributeError: module 'systemd' has no attribute 'journal'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/sphinx/ext/autodoc/importer.py", line 110, in import_object
obj = attrgetter(obj, mangled_name)
File "/usr/lib/python3.8/site-packages/sphinx/ext/autodoc/__init__.py", line 318, in get_attr
return autodoc_attrgetter(self.env.app, obj, name, *defargs)
File "/usr/lib/python3.8/site-packages/sphinx/ext/autodoc/__init__.py", line 2606, in autodoc_attrgetter
return safe_getattr(obj, name, *defargs)
File "/usr/lib/python3.8/site-packages/sphinx/util/inspect.py", line 428, in safe_getattr
raise AttributeError(name) from exc
AttributeError: journal
WARNING: autodoc: failed to import module 'login' from module 'systemd'; the following exception was raised:
No module named 'systemd.login'
WARNING: don't know which module to import for autodocumenting 'Monitor' (try placing a "module" or "currentmodule" directive in the document, or giving an explicit module name)
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
writing... python-systemd.1 { journal id128 daemon login } done
build succeeded, 20 warnings.