Skip to content

Unable to install sphinx with pip (sphinx-builder) / path issues (worked before) #7110

Closed
@SchindlerTo

Description

@SchindlerTo

Bug description

Setup:
We point to a docker file as the image in .gitpod.yml. Starting gitpod, the image is built and a startup task is done (visible in the terminal). This startup task installs some packages, most notably sphinx (https://www.sphinx-doc.org/en/master/). Sphinx documentation is built by "sphinx-builder", which is installed by pip install sphinx.

Problem:
After the startup and installation, "sphinx-builder" is not present in the gitpod container path. Everything works when starting the same container (that is pointed to in the gitpod.yml) locally. Additionally, this already worked in gitpod and we did not change our setup (Dockerfile or gitpod.yml for months).

Pip gives the following warnings:

  WARNING: The script normalizer is installed in '/home/gitpod/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  WARNING: The script pygmentize is installed in '/home/gitpod/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  WARNING: The script pybabel is installed in '/home/gitpod/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  WARNING: The scripts sphinx-apidoc, sphinx-autogen, sphinx-build and sphinx-quickstart are installed in '/home/gitpod/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  WARNING: The script livereload is installed in '/home/gitpod/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  WARNING: The script sphinx-autobuild is installed in '/home/gitpod/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  WARNING: The script breathe-apidoc is installed in '/home/gitpod/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed Jinja2-3.0.3 MarkupSafe-2.0.1 Pygments-2.10.0 alabaster-0.7.12 babel-2.9.1 breathe-4.31.0 certifi-2021.10.8 charset-normalizer-2.0.9 colorama-0.4.4 docutils-0.17.1 idna-3.3 imagesize-1.3.0 livereload-2.6.3 packaging-21.3 pyparsing-3.0.6 pytz-2021.3 requests-2.26.0 six-1.16.0 snowballstemmer-2.2.0 sphinx-4.3.1 sphinx-autobuild-2021.3.14 sphinx-copybutton-0.4.0 sphinx-issues-1.2.0 sphinx-rtd-theme-1.0.0 sphinxcontrib-applehelp-1.0.2 sphinxcontrib-devhelp-1.0.2 sphinxcontrib-htmlhelp-2.0.0 sphinxcontrib-jsmath-1.0.1 sphinxcontrib-mermaid-0.7.1 sphinxcontrib-qthelp-1.0.3 sphinxcontrib-serializinghtml-1.1.5 sphinxcontrib-tikz-0.4.15 sphinxcontrib.yt-0.2.2 tornado-6.1 urllib3-1.26.7

The issue seems to be related to the way the startup tasks are run and it seems to have changed in the last weeks.
Any input is appreciated :)

Steps to reproduce

cd docs
make docs
make html

make docs fails since it does not find "sphinx-builder". Expected behavior is that make docs runs and make html runs without any warnings.

Workspace affected

No response

Expected behavior

No response

Example repository

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions