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
Pulled down the AIO repo and ran ansible-builder without any modifications which successfully created a docker image. Was able to import the image into AWX and run as an Execution Environment, however when trying to run a test playbook using a community.windows module it failed with this error:
"winrm or requests is not installed: No module named 'urllib3.packages.six'"
I can see from the build output that the package was detected as already present:
Requirement already satisfied: urllib3>=1.15 in /usr/lib/python3.8/site-packages (from -r /tmp/src/requirements.txt (line 28)) (1.25.7)
Ansible-builder was run with Python 3.8.11. Does the requirements.txt need to be more explicit when referencing the packages?
The text was updated successfully, but these errors were encountered:
I was able to find other references to the same error around the place, from the sounds of it some ditros (such as CentOS) seem to be linking rather than actually installing packages which is causing problems. I've been able to work around the issue by editing the Dockerfile that ansible-builder produces to tell it to uninstall and then reinstall the specific package:
So it was:
FROM $EE_BASE_IMAGE
USER root
RUN pip3 install --upgrade pip setuptools
And I've set it to:
FROM $EE_BASE_IMAGE
USER root
RUN pip3 install --upgrade pip setuptools \
&& pip3 uninstall urllib3 -y \
&& pip3 install --no-cache-dir -U urllib3==1.25.7
Then compiled the image using the command that ansible-builder uses:
Pulled down the AIO repo and ran ansible-builder without any modifications which successfully created a docker image. Was able to import the image into AWX and run as an Execution Environment, however when trying to run a test playbook using a community.windows module it failed with this error:
"winrm or requests is not installed: No module named 'urllib3.packages.six'"
I can see from the build output that the package was detected as already present:
Requirement already satisfied: urllib3>=1.15 in /usr/lib/python3.8/site-packages (from -r /tmp/src/requirements.txt (line 28)) (1.25.7)
Ansible-builder was run with Python 3.8.11. Does the requirements.txt need to be more explicit when referencing the packages?
The text was updated successfully, but these errors were encountered: