CrossNox / m2r2

Markdown to reStructuredText converter
https://crossnox.github.io/m2r2
MIT License
107 stars 26 forks source link

m2r2 fatal error due to extension crash #48

Closed sistia01 closed 2 years ago

sistia01 commented 2 years ago

Hello!

Thank you for updating this tool! I added m2r2 to my extensions list in my project (here) but when I built the website via the readthedocs host it caused a fatal crash error:

ModuleNotFoundError: No module named 'm2r2' -- see below for more information on the error.

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/home/docs/checkouts/readthedocs.org/user_builds/giottoteam-giotto/envs/suite/lib/python3.7/site-packages/sphinx/cmd/build.py", line 279, in build_main args.tags, args.verbosity, args.jobs, args.keep_going) File "/home/docs/checkouts/readthedocs.org/user_builds/giottoteam-giotto/envs/suite/lib/python3.7/site-packages/sphinx/application.py", line 245, in init self.setup_extension(extension) File "/home/docs/checkouts/readthedocs.org/user_builds/giottoteam-giotto/envs/suite/lib/python3.7/site-packages/sphinx/application.py", line 402, in setup_extension self.registry.load_extension(self, extname) File "/home/docs/checkouts/readthedocs.org/user_builds/giottoteam-giotto/envs/suite/lib/python3.7/site-packages/sphinx/registry.py", line 421, in load_extension err) from err sphinx.errors.ExtensionError: Could not import extension m2r2 (exception: No module named 'm2r2')

Extension error: Could not import extension m2r2 (exception: No module named 'm2r2')

Any help with this would be appreciated!

CrossNox commented 2 years ago

Hi @sistia01, perhaps you should add it to your requirements.txt? I mean, here.

CrossNox commented 2 years ago

@sistia01 were you able to solve this?

sistia01 commented 2 years ago

Hi @CrossNox!

My apologies for the late reply, yes! Thank you very much or the help. I added m2r2 to the requirements.txt file and the website was able to be built.