AttributeError with Sphinx v4.2.0 and ablog 0.10.27
Closed this issue · 4 comments
Describe the bug
Building with Sphinx v4.2.0 and ablog 0.10.27 results in an AttributeError
.
To Reproduce
No response
What happened?
Exception occurred:
File "/opt/hostedtoolcache/Python/3.8.13/x64/lib/python3.8/site-packages/ablog/post.py", line 160, in apply
docinfo = list(self.document.findall(nodes.docinfo))
AttributeError: 'document' object has no attribute 'findall'
(More information at https://github.com/pystatgen/sgkit/runs/7616945453?check_suite_focus=true)
Looking at the history of that file the relevant change is here:
a3a8fb9#diff-f4d8728fd1bca178eb101f7635407e0b843bb4d18d2df7230352f1d5583e4f39
I haven't looked further, but it seems that there's some version mismatch. Rolling back to ablog 0.10.26 fixes the problem.
Expected behavior
No response
Screenshots
No response
System Details
No response
Installation method
pip
Right, I made a horrible assumption on sphinx version and docutils.
I will patch this.
What version of docutils is being used in that build?
Would it be possible to update to sphinx 5?
Thanks @nabobalis.
This was with docutils 0.17.1. It might be possible to update sphinx, but it's not a priority at the moment as the doc build is quite brittle.
The quickest fix will be to pin the ablog version below 0.10.27, hopefully I patch this soon.
What I am worried about is why the CI did no catch this.
I will need to work out why.
Edit: I test against the 4 series of sphinx but only the latest version which is 4.5.0 whereas the build used 4.2.0, I wonder if that is the issue.