You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unable to import setuptools-scm, attempting to install now...
Traceback (most recent call last):
File "/mnt/c/Users/Alexander.Pykavy/GitHub/ansible/awx/tools/scripts/scm_version.py", line 6, in <module>
from setuptools_scm import get_version
ModuleNotFoundError: No module named 'setuptools_scm'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/mnt/c/Users/Alexander.Pykavy/GitHub/ansible/awx/tools/scripts/scm_version.py", line 17, in <module>
raise Exception(f'\nCommand `{" ".join(cmd)}` failed (rc={result.returncode}).\n\nstdout:\n{result.stdout}\n\nstderr:\n{result.stderr}')
Exception:
Command `/usr/bin/python3 -m ensurepip` failed (rc=1).
stdout:
b'ensurepip is disabled in Debian/Ubuntu for the system python.\n\nPython modules for the system python are usually handled by dpkg and apt-get.\n\n apt install python3-<module name>\n\nInstall the python3-pip package to use pip itself. Using pip together\nwith the system python might have unexpected results for any system installed\nmodule, so use it on your own risk, or make sure to only use it in virtual\nenvironments.\n\n'
stderr:
b''
Then I found that I can initialize a virtual environment using make virtualenv. But I didn't want /var/lib/awx/venv to be used to not clutter the machine and decided to override this variable to point to some directory under the repository:
VENV_BASE=./venv make virtualenv.
. ./venv/awx/bin/activate
make VERSION
Is it fine to override the VENV_BASE to be in the repo?
ENVIRONMENT
AWX version: X.Y.Z
AWX install method: developer environment
Operating System: Ubuntu 22.04 in Windows 11 WSL2
STEPS TO REPRODUCE
clone repository
don't activate the virtual environment
run make VERSION
EXPECTED RESULTS
the AWX version is outputted
ACTUAL RESULTS
the error s thrown
ADDITIONAL INFORMATION
The text was updated successfully, but these errors were encountered:
ISSUE TYPE
COMPONENT NAME
SUMMARY
I faced a problem that some Python packages used by the
make VERSION
are missing and can't be autoinstalled by the https://github.com/ansible/awx/blob/devel/tools/scripts/scm_version.py, look:Then I found that I can initialize a virtual environment using
make virtualenv
. But I didn't want/var/lib/awx/venv
to be used to not clutter the machine and decided to override this variable to point to some directory under the repository:Is it fine to override the VENV_BASE to be in the repo?
ENVIRONMENT
STEPS TO REPRODUCE
make VERSION
EXPECTED RESULTS
ACTUAL RESULTS
ADDITIONAL INFORMATION
The text was updated successfully, but these errors were encountered: