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

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

Open
Dylan-G-Roberts opened this issue Nov 20, 2024 · 0 comments

Comments

@Dylan-G-Roberts
Copy link

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.

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

No branches or pull requests

1 participant