-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Problem: Installation of Python Modules via requirements.txt doesnt seem to work as intended #2080
Comments
@fiftin 8a04df013a1c:~$ cat /etc/semaphore/requirements.txt
pywinrm
pymssql
netaddr
passlib 8a04df013a1c:~$ /opt/semaphore/venv/bin/pip3 list -v
Package Version Location Installer
------------------ ----------- --------------------------------------------------- ---------
ansible 9.4.0 /opt/semaphore/venv/lib/python3.11/site-packages pip
ansible-core 2.16.7 /opt/semaphore/venv/lib/python3.11/site-packages pip
boto3 1.34.115 /opt/semaphore/venv/lib/python3.11/site-packages pip
botocore 1.34.115 /opt/semaphore/venv/lib/python3.11/site-packages pip
certifi 2024.2.2 /opt/semaphore/venv/lib/python3.11/site-packages pip
cffi 1.16.0 /opt/semaphore/venv/lib/python3.11/site-packages pip
charset-normalizer 3.3.2 /opt/semaphore/venv/lib/python3.11/site-packages pip
cryptography 42.0.7 /opt/semaphore/venv/lib/python3.11/site-packages pip
idna 3.7 /opt/semaphore/venv/lib/python3.11/site-packages pip
Jinja2 3.1.4 /opt/semaphore/venv/lib/python3.11/site-packages pip
jmespath 1.0.1 /opt/semaphore/venv/lib/python3.11/site-packages pip
MarkupSafe 2.1.5 /opt/semaphore/venv/lib/python3.11/site-packages pip
netaddr 1.3.0 /home/semaphore/.local/lib/python3.11/site-packages pip
packaging 23.2 /usr/lib/python3.11/site-packages
passlib 1.7.4 /home/semaphore/.local/lib/python3.11/site-packages pip
pip 24.0 /opt/semaphore/venv/lib/python3.11/site-packages pip
pycparser 2.22 /opt/semaphore/venv/lib/python3.11/site-packages pip
pymssql 2.3.0 /home/semaphore/.local/lib/python3.11/site-packages pip
pyparsing 3.1.1 /usr/lib/python3.11/site-packages
pyspnego 0.10.2 /home/semaphore/.local/lib/python3.11/site-packages pip
python-dateutil 2.9.0.post0 /opt/semaphore/venv/lib/python3.11/site-packages pip
pywinrm 0.4.3 /home/semaphore/.local/lib/python3.11/site-packages pip
PyYAML 6.0.1 /opt/semaphore/venv/lib/python3.11/site-packages pip
requests 2.32.3 /opt/semaphore/venv/lib/python3.11/site-packages pip
requests-ntlm 1.2.0 /home/semaphore/.local/lib/python3.11/site-packages pip
resolvelib 1.0.1 /opt/semaphore/venv/lib/python3.11/site-packages pip
s3transfer 0.10.1 /opt/semaphore/venv/lib/python3.11/site-packages pip
setuptools 65.5.0 /opt/semaphore/venv/lib/python3.11/site-packages pip
six 1.16.0 /opt/semaphore/venv/lib/python3.11/site-packages pip
urllib3 2.2.1 /opt/semaphore/venv/lib/python3.11/site-packages pip
xmltodict 0.13.0 /home/semaphore/.local/lib/python3.11/site-packages pip The UI reports the error:
The above works OK and does not report the same module missing error 8a04df013a1c:~$ semaphore version
v2.9.112-4f95ac8-1717065276 maybe related to the fix implemented on: #2060 and the install command
looks like the |
A PR which removes the |
Just tried the current develop docker build - works now, thank you |
Issue
Hi,
we encouter an Issue regarding installing a Python Module into Semaphore.
We want to use ARA as callback plugin for all our runs, and while this used to work, in recent changes it seem to broke.
Before it was enough to install the Module into the Ansible Repo's venv, but that no longer seems to work.
We added ara into the requirements.txt to be installed on Container start, and according to logs it is getting installed.
However on Runs triggered by the WebUI, we always get this line from Debug:
[WARNING]: Skipping plugin (/home/semaphore/.local/lib/python3.11/site-packages/ara/plugins/callback/ara_default.py), cannot load: No module named 'ara'
Which is odd - Going into the container as semaphore user, I can import the ara module just fine.
The only workarround that works so far was also installing the ara module as root, after that its working via Web perfectly fine.
Doing everything by hand within the Container or on the Host within the venv it works from CLI just fine.
This only seems to affect the web triggered Runs.
Impact
Ansible (task execution)
Installation method
Docker
Database
Postgres
Browser
Microsoft Edge
Semaphore Version
v2.9.112-4f95ac8-1717065276
Ansible Version
Logs & errors
Podman Logs:
The text was updated successfully, but these errors were encountered: