-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
'str' object has no attribute 'supported' when building documentation using m2r2 #8395
Comments
This can be closed it's fixed in |
I'm still getting this error with the latest version of m2r2 |
On the other hand the proposed patch does work. |
The fix hasn't been merged yet, it's still waiting on this pull request CrossNox/m2r2#14. |
"8 days ago" ok. Is there a single person with merge rights on m2r2? It's a bit strange to spend 8 days approving this kind of edit. Anyway, thanks for the issue you saved me quite a bit of time :D |
In the mean time, """Patching m2r2"""
import m2r2
current_m2r2_setup = m2r2.setup
def patched_m2r2_setup(app):
try:
return current_m2r2_setup(app)
except (AttributeError):
app.add_source_suffix(".md", "markdown")
app.add_source_parser(m2r2.M2RParser)
return dict(
version=m2r2.__version__, parallel_read_safe=True, parallel_write_safe=True,
)
m2r2.setup = patched_m2r2_setup |
I should get rid of this dependency if the problem is not solved.
* master: Changes to Gaussian class and handler. Fix m2r2 issue. See sphinx-doc/sphinx#8395 Added version requirement of msgpack>=0.6.0 in requirement.txt m2r fix. neuralnetwork module compatible with new pytorch versions.
I also met this problem. Has this issue been fixed and merged into any release version? |
I am also running into this problem. But will try to get the above workaround applied. |
fyi I am reading somewhere else about a plugin m2r2 - looks like m2r is abandoned. replacing m2r might fix it. I'll give that a try and will post the result. -> Yes, fixed. |
@Papakai using m2r2 fixes indeed the problem. Thanks for the workaround |
* fix(toml): fix unterminated string error in black configuration * fix formatting * fix pyup.io security errors * fix lint error * fix: replace m2r with m2r2 due to an issue that hasn't been fixed yet. see sphinx-doc/sphinx#8395 (comment). * update changelog
Describe the bug
when i add the m2r2 extension to my project is get the error below
To Reproduce
Add m2r2 to extensions in conf.py
Make docs
Error:
Expected behavior
A clear and concise description of what you expected to happen.
Environment info
The text was updated successfully, but these errors were encountered: