Community Packages

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#75433 - [m2r] Compatibility fixes needed, upstream

Attached to Project: Community Packages
Opened by Claudia Pellegrino (Auerhuhn) - Tuesday, 26 July 2022, 22:33 GMT
Last edited by Toolybird (Toolybird) - Wednesday, 27 July 2022, 04:33 GMT
Task Type Bug Report
Category Packages
Status Assigned
Assigned To Felix Yan (felixonmars)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No



The [recent upstream release for docutils v0.19]( broke the [m2r]( package, which depends on [a deprecated symbol from docutils](

This is arguably an upstream issue in m2r. But that project looks largely unmaintained.
I wrote a [patch]( and [filed it upstream](, but the patch may not be merged anytime soon. In the meantime, you folks might want to use that patch to fix the m2r PKGBUILD until upstream accepts the patch, if ever.

Additional info:
* Upstream pull request:
* See attached `m2r-docutils.patch` (minimal version of the upstream patch, it’s the bare minimum needed to fix the Arch package)

Steps to reproduce:

$ m2r
Traceback (most recent call last):
File "/usr/bin/m2r", line 33, in <module>
sys.exit(load_entry_point('m2r==0.2.1', 'console_scripts', 'm2r')())
File "/usr/bin/m2r", line 25, in importlib_load_entry_point
return next(matches).load()
File "/usr/lib/python3.10/importlib/metadata/", line 171, in load
module = import_module('module'))
File "/usr/lib/python3.10/importlib/", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/usr/lib/python3.10/site-packages/", line 13, in <module>
from docutils.core import ErrorString
ImportError: cannot import name 'ErrorString' from 'docutils.core' (/usr/lib/python3.10/site-packages/docutils/
This task depends upon