-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
TypeError, when sphinx.ext.viewcode
is enabled
#13095
Comments
Thanks @crazyscientist - could you try to narrow down a more-minimal repro case for this? It seems that |
Hi @jayaddison , thank you for the encouragement. I managed to find the culprit and create a shorter example: https://gist.github.com/crazyscientist/7d53d148efc9cbe8d48756bf25c8fc3d Steps to reproduce the problem with this gist:
No errors will be raised, if
|
Ok, getting closer - thanks @crazyscientist! Does an error continue to occur if (apologies for not actually testing that yet myself.. I may try to soon, but have gotten into too many separate tasks/threads recently) |
@jayaddison No worries, happy to help out 🙂 If I remove If there is an instance of I don't know whether it is worth noting: Only commenting out line 11, in which |
Enabling the The part of the That's created/returned somewhere around here: Lines 57 to 64 in a1510de
📓 For anyone investigating this: the |
Describe the bug
For our project, we have both the
autodoc
andviewcode
extensions enabled, and the project makes heavy use oflxml
.When building the docs, a
TypeError: cannot pickle 'lxml.objectify._ObjectifyElementMakerCaller' object
occurs.Without deeper analysis, a quick workaround is to disable the
viewcode
extension.How to Reproduce
Check out the project, install the dependencies and run Sphinx:
Environment Information
Sphinx extensions
Additional context
This is the full content of the log file generated
The text was updated successfully, but these errors were encountered: