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

1.0.0 : prettyprinter is no no longer maintained #66

Open
kloczek opened this issue May 21, 2024 · 0 comments
Open

1.0.0 : prettyprinter is no no longer maintained #66

kloczek opened this issue May 21, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@kloczek
Copy link

kloczek commented May 21, 2024

On building documentation I fount that attr_utils uses prettyprinter but this module is no longer manitaned (more than 5 years)
https://github.com/tommikaikkonen/prettyprinter/

+ /usr/bin/sphinx-build -n -T -b man doc-source build/sphinx/man
Running Sphinx v7.3.7
making output directory... done
WARNING: Unable to determine documentation url for project toolz
WARNING: Unable to determine documentation url for project typing-inspect
[autosummary] generating autosummary for: 404.rst, Source.rst, api/annotations.rst, api/autoattrs.rst, api/docstrings.rst, api/mypy_plugin.rst, api/pprinter.rst, api/serialise.rst, contributing.rst, demo.rst, index.rst, license.rst
WARNING: Failed to import attr_utils.pprinter.
Possible hints:
* ModuleNotFoundError: Could not import 'prettyprinter'. Perhaps you need to install 'attr_utils[pprint]'?

No module named 'prettyprinter'
* AttributeError: module 'attr_utils' has no attribute 'pprinter'
WARNING: Failed to import attr_utils.serialise.
Possible hints:
* AttributeError: module 'attr_utils' has no attribute 'serialise'
* ModuleNotFoundError: No module named 'toolz'
loading intersphinx inventory from https://docs.python.org/3/objects.inv...
loading intersphinx inventory from https://www.sphinx-doc.org/en/stable/objects.inv...
loading intersphinx inventory from https://sphinx-toolbox.readthedocs.io/en/latest/objects.inv...
loading intersphinx inventory from https://www.attrs.org/en/stable/objects.inv...
loading intersphinx inventory from https://domdf-python-tools.readthedocs.io/en/latest/objects.inv...
loading intersphinx inventory from https://typing-extensions.readthedocs.io/en/latest/objects.inv...
intersphinx inventory has moved: https://www.sphinx-doc.org/en/stable/objects.inv -> https://www.sphinx-doc.org/en/master/objects.inv
building [mo]: targets for 0 po files that are out of date
writing output...
building [man]: all manpages
updating environment: [new config] 12 added, 1 changed, 0 removed
/usr/lib/python3.10/site-packages/autodocsumm/__init__.py:223: RemovedInSphinx80Warning: The tuple interface of ObjectMember is deprecated. Use (obj.__name__, obj.object) instead.
  members = [(membername, member) for (membername, member) in members
/usr/lib/python3.10/site-packages/autodocsumm/__init__.py:230: RemovedInSphinx80Warning: Returning tuples of (name, object) as the second return value from get_object_members() is deprecated. Return ObjectMember(name, object) instances instead.
  for (mname, member, isattr) in self.filter_members(members, want_all):
/usr/lib/python3.10/site-packages/autodocsumm/__init__.py:223: RemovedInSphinx80Warning: The tuple interface of ObjectMember is deprecated. Use (obj.__name__, obj.object) instead.
  members = [(membername, member) for (membername, member) in members
/usr/lib/python3.10/site-packages/autodocsumm/__init__.py:230: RemovedInSphinx80Warning: Returning tuples of (name, object) as the second return value from get_object_members() is deprecated. Return ObjectMember(name, object) instances instead.
  for (mname, member, isattr) in self.filter_members(members, want_all):
/usr/lib/python3.10/site-packages/autodocsumm/__init__.py:223: RemovedInSphinx80Warning: The tuple interface of ObjectMember is deprecated. Use (obj.__name__, obj.object) instead.
  members = [(membername, member) for (membername, member) in members
/usr/lib/python3.10/site-packages/autodocsumm/__init__.py:230: RemovedInSphinx80Warning: Returning tuples of (name, object) as the second return value from get_object_members() is deprecated. Return ObjectMember(name, object) instances instead.
  for (mname, member, isattr) in self.filter_members(members, want_all):
/home/tkloczko/rpmbuild/BUILD/attr_utils-1.0.0/doc-source/api/annotations.rst:5: ERROR: Unknown directive type "autosummary-widths".

.. autosummary-widths:: 13/32
    :html: 3/10
/home/tkloczko/rpmbuild/BUILD/attr_utils-1.0.0/doc-source/api/autoattrs.rst:5: ERROR: Unknown directive type "autosummary-widths".

.. autosummary-widths:: 7/16
    :html: 2/10
/home/tkloczko/rpmbuild/BUILD/attr_utils-1.0.0/attr_utils/autoattrs.py:docstring of attr_utils.autoattrs.AttrsDocumenter:11: ERROR: Unknown directive type "autosummary-widths".

.. autosummary-widths:: 29/64
    :html: 4/10
/home/tkloczko/rpmbuild/BUILD/attr_utils-1.0.0/doc-source/api/docstrings.rst:5: ERROR: Unknown directive type "autosummary-widths".

.. autosummary-widths:: 1/2
    :html: 2/10
/home/tkloczko/rpmbuild/BUILD/attr_utils-1.0.0/doc-source/api/mypy_plugin.rst:5: ERROR: Unknown directive type "autosummary-widths".

.. autosummary-widths:: 1/2
    :html: 4/10
/home/tkloczko/rpmbuild/BUILD/attr_utils-1.0.0/attr_utils/mypy_plugin.py:docstring of attr_utils.mypy_plugin:18: ERROR: Unknown directive type "autosummary-widths".

.. autosummary-widths:: 7/16
    :html: 2/10
/home/tkloczko/rpmbuild/BUILD/attr_utils-1.0.0/attr_utils/mypy_plugin.py:docstring of attr_utils.mypy_plugin:24: ERROR: Unknown directive type "autosummary-widths".

.. autosummary-widths:: 1/2
    :html: 4/10
WARNING: autodoc: failed to import module 'pprinter' from module 'attr_utils'; the following exception was raised:
Could not import 'prettyprinter'. Perhaps you need to install 'attr_utils[pprint]'?

No module named 'prettyprinter'
WARNING: autodoc: failed to import module 'serialise' from module 'attr_utils'; the following exception was raised:
No module named 'toolz'
WARNING: autodoc: failed to import attrs 'Device' from module 'demo'; the following exception was raised:
Could not import 'prettyprinter'. Perhaps you need to install 'attr_utils[pprint]'?

No module named 'prettyprinter'

Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/sphinx/cmd/build.py", line 337, in build_main
    app.build(args.force_all, args.filenames)
  File "/usr/lib/python3.10/site-packages/sphinx/application.py", line 351, in build
    self.builder.build_update()
  File "/usr/lib/python3.10/site-packages/sphinx/builders/__init__.py", line 290, in build_update
    self.build(['__all__'], to_build)
  File "/usr/lib/python3.10/site-packages/sphinx/builders/__init__.py", line 313, in build
    updated_docnames = set(self.read())
  File "/usr/lib/python3.10/site-packages/sphinx/builders/__init__.py", line 419, in read
    self._read_serial(docnames)
  File "/usr/lib/python3.10/site-packages/sphinx/builders/__init__.py", line 440, in _read_serial
    self.read_doc(docname)
  File "/usr/lib/python3.10/site-packages/sphinx/builders/__init__.py", line 497, in read_doc
    publisher.publish()
  File "/usr/lib/python3.10/site-packages/docutils/core.py", line 234, in publish
    self.document = self.reader.read(self.source, self.parser,
  File "/usr/lib/python3.10/site-packages/sphinx/io.py", line 107, in read
    self.parse()
  File "/usr/lib/python3.10/site-packages/docutils/readers/__init__.py", line 76, in parse
    self.parser.parse(self.input, document)
  File "/usr/lib/python3.10/site-packages/sphinxcontrib/default_values/__init__.py", line 345, in parse
    super().parse(inputstring, document)
  File "/usr/lib/python3.10/site-packages/sphinx/parsers.py", line 83, in parse
    self.statemachine.run(inputlines, document, inliner=self.inliner)
  File "/usr/lib/python3.10/site-packages/docutils/parsers/rst/states.py", line 169, in run
    results = StateMachineWS.run(self, input_lines, input_offset,
  File "/usr/lib/python3.10/site-packages/docutils/statemachine.py", line 233, in run
    context, next_state, result = self.check_line(
  File "/usr/lib/python3.10/site-packages/docutils/statemachine.py", line 445, in check_line
    return method(match, context, next_state)
  File "/usr/lib/python3.10/site-packages/docutils/parsers/rst/states.py", line 3024, in text
    self.section(title.lstrip(), source, style, lineno + 1, messages)
  File "/usr/lib/python3.10/site-packages/docutils/parsers/rst/states.py", line 325, in section
    self.new_subsection(title, lineno, messages)
  File "/usr/lib/python3.10/site-packages/docutils/parsers/rst/states.py", line 391, in new_subsection
    newabsoffset = self.nested_parse(
  File "/usr/lib/python3.10/site-packages/docutils/parsers/rst/states.py", line 279, in nested_parse
    state_machine.run(block, input_offset, memo=self.memo,
  File "/usr/lib/python3.10/site-packages/docutils/parsers/rst/states.py", line 195, in run
    results = StateMachineWS.run(self, input_lines, input_offset)
  File "/usr/lib/python3.10/site-packages/docutils/statemachine.py", line 233, in run
    context, next_state, result = self.check_line(
  File "/usr/lib/python3.10/site-packages/docutils/statemachine.py", line 445, in check_line
    return method(match, context, next_state)
  File "/usr/lib/python3.10/site-packages/docutils/parsers/rst/states.py", line 2357, in explicit_markup
    self.explicit_list(blank_finish)
  File "/usr/lib/python3.10/site-packages/docutils/parsers/rst/states.py", line 2382, in explicit_list
    newline_offset, blank_finish = self.nested_list_parse(
  File "/usr/lib/python3.10/site-packages/docutils/parsers/rst/states.py", line 316, in nested_list_parse
    state_machine.run(block, input_offset, memo=self.memo,
  File "/usr/lib/python3.10/site-packages/docutils/parsers/rst/states.py", line 195, in run
    results = StateMachineWS.run(self, input_lines, input_offset)
  File "/usr/lib/python3.10/site-packages/docutils/statemachine.py", line 233, in run
    context, next_state, result = self.check_line(
  File "/usr/lib/python3.10/site-packages/docutils/statemachine.py", line 445, in check_line
    return method(match, context, next_state)
  File "/usr/lib/python3.10/site-packages/docutils/parsers/rst/states.py", line 2660, in explicit_markup
    nodelist, blank_finish = self.explicit_construct(match)
  File "/usr/lib/python3.10/site-packages/docutils/parsers/rst/states.py", line 2367, in explicit_construct
    return method(self, expmatch)
  File "/usr/lib/python3.10/site-packages/docutils/parsers/rst/states.py", line 2104, in directive
    return self.run_directive(
  File "/usr/lib/python3.10/site-packages/docutils/parsers/rst/states.py", line 2154, in run_directive
    result = directive_instance.run()
  File "/usr/lib/python3.10/site-packages/sphinx_licenseinfo/__init__.py", line 99, in run
    distro = get_distribution(self.options["py"])
  File "/usr/lib/python3.10/site-packages/dist_meta/distributions.py", line 591, in get_distribution
    raise DistributionNotFoundError(name)
dist_meta.distributions.DistributionNotFoundError: attr_utils

Exception occurred:
  File "/usr/lib/python3.10/site-packages/dist_meta/distributions.py", line 591, in get_distribution
    raise DistributionNotFoundError(name)
dist_meta.distributions.DistributionNotFoundError: attr_utils
@kloczek kloczek added the bug Something isn't working label May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants