Indeed, I forgot to handle the case when we have an "old" paperconf ^^
I replaced setup_paper in docutils/writers/odf_odt/__init__.py by: def setup_paper(self, root_el): try: dimensions = subprocess.check_output(('paper','--unit pt'), stderr=subprocess.STDOUT) """ Example output of paper --unit pt: A4: 595.276x841.89 pt Letter: 612x792 pt """ x = re.split("\w.*: (\d*(\.\d*)*)x(\d*(\.\d*)*) .*", txt) w = float(x[1]) h = float(x[3]) except (subprocess.CalledProcessError, FileNotFoundError, ValueError): self.document.reporter.info( 'Cannot use `paper`, defaulting to Letter.')...
The author reported we can use this command instead: $ paper --unit pt A4: 595.276x841.89 pt
https://github.com/rrthomas/libpaper/issues/42
New release of libpaper (paperconf) breark rst2odt