Skip to content

[Bug] Pip Install: "pip install getgauge==0.4.7 --user fails with ERROR: Can not perform a '--user' install #408

Closed

Description

@Dylan-G-Roberts

Describe the bug
I am running into an issue with running gauge on Jenkins Agents. In my pipeline step it looks like the pip install in the venv fails due to the --user flag pip install getgauge==0.4.7 --user.

To Reproduce
Steps (or project) to reproduce the behavior:
I do get the same error when I create a venv, activate it and run python3.11 -m pip install getgauge==0.4.7 --user

ERROR: Can not perform a '--user' install. User site-packages are not visible in this virtualenv

Logs

ERROR: Can not perform a '--user' install. User site-packages are not visible in this virtualenv.
[notice] A new release of pip is available: 24.0 -> 24.3.1
[notice] To update, run: pip install --upgrade pip
Traceback (most recent call last):
File "/home/ubuntu/.gauge/plugins/python/0.4.7/check_and_install_getgauge.py", line 40, in <module>
assert_versions()
File "/home/ubuntu/.gauge/plugins/python/0.4.7/check_and_install_getgauge.py", line 34, in assert_versions
install_getgauge("getgauge=="+expected_gauge_version)
File "/home/ubuntu/.gauge/plugins/python/0.4.7/check_and_install_getgauge.py", line 20, in install_getgauge
check_output([" ".join(install_cmd)], shell=True)
File "/usr/lib/python3.11/subprocess.py", line 466, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/home/ubuntu/jenkins/workspace/Gauge-X@31/venv/bin/python3.11 -m pip install getgauge==0.4.7 --user']' returned non-zero exit status 1.
Error occurred while waiting for runner process to finish.
Error : exit status 1
Error ----------------------------------

[Gauge]
Failed to start gauge API: Error occurred while waiting for runner process to finish.
Error : exit status 1

Expected behavior
I would like the install of getgauge to complete successfully.

Screenshots
If applicable, add screenshots to help explain your problem.

Versions:

gauge -v
Gauge version: 1.6.10
Commit Hash: 5884aa1

Plugins
-------
flash (0.0.2)
html-report (4.3.1)
python (0.4.7)
screenshot (0.3.0)
xml-report (0.5.1)

  • OS [Ubuntu 24.04]
  • Runner info (python 3.11)
  • IDE info (If using VS Code or Intellij IDEA)

Additional context
Add any other context about the problem here.

Activity

  1. transferred this issue fromgetgauge/gaugeon Nov 25, 2024
  2. chadlwilson commented on Nov 25, 2024

    @chadlwilson
    Contributor

    Can you try updating to 0.4.8 and let me know if it works OK in a jenkins venv environment?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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