Bug 277221 - deskutils/py-khard: fails to build with textproc/py-sphinx-autoapi < v3.0.0
Summary: deskutils/py-khard: fails to build with textproc/py-sphinx-autoapi < v3.0.0
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on: 277361
Blocks:
  Show dependency treegraph
 
Reported: 2024-02-22 09:37 UTC by Michael Büker
Modified: 2024-03-03 11:57 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (andreas)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Büker 2024-02-22 09:37:07 UTC
Following some unknown change, khard fails to build with the following error (poudriere run with Python 3.9):

> [AutoAPI] Reading files... [  7%] /wrkdirs/usr/ports/deskutils/py-khard/work-py39/khard-0.19.1/khard/__main__.py
> Extension error (autoapi.extension):
> Handler <function run_autoapi at 0x886e37dc0> for event 'builder-inited' threw an exception (exception: 'Module' object has no attribute 'doc')

JFGI yields the following problem analysis: https://github.com/readthedocs/sphinx-autoapi/issues/410

... so it would seem that khard now needs(?) py-sphinx-autoapi >= v3.0.0 to build successfully. I don't know enough about py-sphinx-autoapi to test this.

Note that I tried the patch in #276470, and khard 0.19.1 suffers the same build error.
Comment 1 Andreas Bilke 2024-02-27 19:11:43 UTC
I am also maintainer for py-sphinx-autoapi. In https://github.com/readthedocs/sphinx-autoapi/issues/410 they are also mentioning a bad combination of sphinx-autoapi and astroid. Indeed, py-astroid had a major upgrade (from v2 to v3) some days ago which might created the situation.

Unfortunately I can't simply upgrade sphinx-autoapi to a higher version since it would then depend on a version of py-sphinx (>= 6) which is not in the ports tree.

But there is a astroid2 port now in the ports tree. If I change the dependency to astroid2, khard will build again.
Comment 2 Andreas Bilke 2024-03-03 11:14:51 UTC
(In reply to Michael Büker from comment #0)

Could you close this issue? In 277361 you mentioned that khard now builds again.
Comment 3 Michael Büker 2024-03-03 11:57:24 UTC
Yes! Thank you for the reminder. Only thing left on this front is Bug 276470 (update khard) now :)