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

make html in doc/ fails because of missing "import os" #757

Open
gl-yziquel opened this issue Oct 13, 2024 · 0 comments
Open

make html in doc/ fails because of missing "import os" #757

gl-yziquel opened this issue Oct 13, 2024 · 0 comments

Comments

@gl-yziquel
Copy link

Just checked out DEAP from git HEAD.

make html in docs/ folder fails with this error message:

mini-me@virtucon ~/h/c/deap (master)> cd doc
mini-me@virtucon ~/h/c/d/doc (master)> make html
PYTHONPATH=/home/mini-me/home/cellar/deap/doc/../ sphinx-build -b html -d _build/doctrees   . _build/html
Running Sphinx v7.2.2

Configuration error:
There is a programmable error in your configuration file:

Traceback (most recent call last):
  File "/home/mini-me/.pyenv/versions/3.12.2/lib/python3.12/site-packages/sphinx/config.py", line 358, in eval_config_file
    exec(code, namespace)  # NoQA: S102
    ^^^^^^^^^^^^^^^^^^^^^
  File "/home/mini-me/home/cellar/deap/doc/conf.py", line 134, in <module>
    tree = os.getenv('GITHUB_COMMIT')
           ^^
NameError: name 'os' is not defined. Did you forget to import 'os'

make: *** [Makefile:34: html] Error 2
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