Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
natescherer opened this issue Aug 4, 2023 · 1 comment
Open

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

natescherer opened this issue Aug 4, 2023 · 1 comment

Comments

@natescherer
Copy link

natescherer commented Aug 4, 2023

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 python-babel/babel#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
Copy link
Author

If anyone is running into this issue, there's a temporary kludge-y fix here until babel can be updated: python-babel/babel#990 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant