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

fix(tools): fix docker-compose package required #5

Merged
merged 2 commits into from
Dec 5, 2021

Conversation

locmai
Copy link
Sponsor Contributor

@locmai locmai commented Dec 5, 2021

On starting PXE server, we encountered the following error:

TASK [pxe-server : Start ephemeral PXE server] *****************************************************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ModuleNotFoundError: No module named 'requests'
fatal: [localhost]: FAILED! => {
    "changed": false
}

MSG:

Failed to import the required Python library (Docker SDK for Python: docker above 5.0.0 (Python >= 3.6) or docker before 5.0.0 (Python 2.7) or docker-py (Python 2.6)) on lmaiarch's Python /usr/bin/python. Please read the module documentation and install it in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter, for example via `pip install docker` (Python >= 3.6) or `pip install docker==4.4.4` (Python 2.7) or `pip install docker-py` (Python 2.6). The error was: No module named 'requests'

PLAY RECAP *****************************************************************************************************************************************************
localhost                  : ok=6    changed=5    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0

Solve by adding pip and install docker-compose via pip.

tools/Dockerfile Outdated Show resolved Hide resolved
@khuedoan khuedoan changed the title fix (tools): Fix docker-compose package required fix(tools): fix docker-compose package required Dec 5, 2021
@locmai locmai requested a review from khuedoan December 5, 2021 14:57
Copy link
Owner

@khuedoan khuedoan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@khuedoan khuedoan merged commit 90ebb96 into khuedoan:master Dec 5, 2021
gitbute pushed a commit to gitbute/homelab-fork that referenced this pull request Oct 11, 2022
zanehala added a commit to zanehala/homelab that referenced this pull request Nov 25, 2022
retX0 pushed a commit to retX0/homelab that referenced this pull request Mar 2, 2023
retX0 pushed a commit to retX0/homelab that referenced this pull request Apr 4, 2023
brimdor pushed a commit to brimdor/homelab that referenced this pull request Mar 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants