missinglinkelectronics / sphinxcontrib-svg2pdfconverter

Sphinx SVG to PDF converter extension
Other
21 stars 10 forks source link

ENOENT missing in Sphinx 4.0 (= master branch) #11

Closed mgeier closed 3 years ago

mgeier commented 4 years ago

When using the Sphinx master branch (which will eventually become Sphinx 4.0), I get this error:

Extension error:
Could not import extension sphinxcontrib.rsvgconverter (exception: cannot import name 'ENOENT' from 'sphinx.util.osutil'

This constant was marked for removal in in https://github.com/sphinx-doc/sphinx/pull/5797 and removed in https://github.com/sphinx-doc/sphinx/pull/7416.

According to https://www.sphinx-doc.org/en/master/extdev/deprecated.html, the replacement is errno.ENOENT or FileNotFoundError.

Same problem with EPIPE and EINVAL.

sephalon commented 3 years ago

Fixed in https://github.com/missinglinkelectronics/sphinxcontrib-svg2pdfconverter/commit/252a0b0fa097686dae84e8d7c39f901dc010a531. Thank you for making me aware of this issue!