cjolowicz / cookiecutter-hypermodern-python

Hypermodern Python Cookiecutter
http://cookiecutter-hypermodern-python.readthedocs.io/
MIT License
1.79k stars 232 forks source link

Nox `docs-build` Session Fails with ZoneInfo Error on Ubuntu #1350

Open natescherer opened 1 year ago

natescherer commented 1 year ago

Adding this mainly as doc in case anyone else runs into the issue: the docs-build nox session fails with the below error on Ubuntu:

ValueError: ZoneInfo keys may not be absolute paths, got: /UTC

I ran it down, and this is because of https://github.com/python-babel/babel/issues/990

As a workaround in the meantime, you can change line 208 in noxfile.py to the below, which will pin doc build to Python 3.8, which is unaffected by the linked babel bug:

@session(name="docs-build", python=python_version"3.8")

Note that if you are running nox locally, you'll need to run without -r in order for the docs-build session to have its venv rebuilt.

natescherer commented 10 months ago

If anyone is running into this issue, there's a temporary kludge-y fix here until babel can be updated: https://github.com/python-babel/babel/issues/990#issuecomment-1760326334