fralau / mkdocs-macros-plugin

Create richer and more beautiful pages in MkDocs, by using variables and calls to macros in the markdown code.
https://mkdocs-macros-plugin.readthedocs.io
Other
318 stars 50 forks source link

mkdocs build error: No module named 'packaging' #179

Closed jasminnancy closed 9 months ago

jasminnancy commented 11 months ago

I kept getting this error:

File "/usr/local/lib/python3.9/site-packages/mkdocs_macros/util.py", line 10, in <module>
    from packaging.version import Version
ModuleNotFoundError: No module named 'packaging'

My mkdocs kept failing after the addition of this line: https://github.com/fralau/mkdocs_macros_plugin/blob/9dba19e3ec0dfce7761eee32dfda4dca6cd312af/mkdocs_macros/util.py#L10

The resolution was just to add packaging to my requirements.txt file. An easy fix, but annoying nonetheless.

github-actions[bot] commented 11 months ago

Welcome to this project and thank you!' first issue

fralau commented 9 months ago

Thanks for the heads up.

Updated on git. It will be on pypi with next tagged version.