Skip to content

No such file or directory: '/usr/bin/pip' in projectenv.py #14

Open
@StephanKuempel

Description

@StephanKuempel

When installed using pip install sphinx-performance, i get the follownig error on calling sphinx-performance on my build machine:

File "/home/docs-as-code-user/.local/lib/python3.8/site-packages/sphinx_performance/projectenv.py", line 250, in install_dependencies
    subprocess.call(dep_command, stdout=subprocess.DEVNULL)
  File "/usr/lib/python3.8/subprocess.py", line 3[40](https://github.boschdevcloud.com/docs-as-code/sphinx-performance-tests/runs/974184?check_suite_focus=true#step:6:40), in call
    with Popen(*popenargs, **kwargs) as p:
  File "/usr/lib/python3.8/subprocess.py", line 858, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.8/subprocess.py", line 1704, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/pip'

If i check for python and pip installation paths on my (provided) build machine i get:

which python -> /usr/bin/python
which pip       -> /usr/local/bin/pip

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