molecule does not find docker within pipx venv
See original GitHub issueIssue Type
- Bug report
Molecule and Ansible details
pipx list
venvs are in /home/sgw/.local/pipx/venvs
apps are exposed on your $PATH at /home/sgw/.local/bin
package ansible 2.9.2, Python 3.7.6
- ansible
- ansible-config
- ansible-connection
- ansible-console
- ansible-doc
- ansible-galaxy
- ansible-inventory
- ansible-playbook
- ansible-pull
- ansible-test
- ansible-vault
package debops 1.2.1, Python 3.7.6
- debops
- debops-defaults
- debops-init
- debops-padlock
- debops-task
- debops-update
package docker 4.1.0, Python 3.7.6
- chardetect
- wsdump.py
package molecule 2.22, Python 3.7.6
- molecule
Molecule installation method (one of):
- pipx
Ansible installation method (one of):
- pipx
Detail any linters or test runners used:
Desired Behavior
molecule should correctly create/destroy/converge docker containers. It does so if I use my old python venv, but not with the environment created with pipx.
Actual Behaviour
molecule --debug destroy
--> Validating schema /home/sgw/projects/github/xyx/molecule/default/molecule.yml.
Validation completed successfully.
--> Validating schema /home/sgw/projects/github/xyx/molecule/travis/molecule.yml.
Validation completed successfully.
--> Test matrix
└── default
├── dependency
├── cleanup
└── destroy
--> Scenario: 'default'
--> Action: 'dependency'
Skipping, missing the requirements file.
--> Scenario: 'default'
--> Action: 'cleanup'
Skipping, cleanup playbook not configured.
--> Scenario: 'default'
--> Action: 'destroy'
--> Sanity checks: 'docker'
ERROR: Missing Docker driver dependency. Please install via 'molecule[docker]' or refer to your INSTALL.rst driver documentation file
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Installation — Molecule Documentation
Installation . This document assumes the developer has a basic understanding of python packaging, and how to install and manage python on...
Read more >Troubleshooting - pipx
If you see pipx exhibiting strange behavior on install or upgrade, check that you don't have special environment variables that affect pip 's...
Read more >molecule-docker - PyPI
Molecule Docker Plugin is designed to allow use docker containers for provisioning test resources. Please note that this driver is currently in its...
Read more >What is the best way to manage Python so you don't break ...
pipx if I want to install and use a Python application (i.e. a command that I can run). tox when I'm doing proper...
Read more >usr/local/bin/python3.10 /users/dhivya/desktop/thol ... - You.com
Assuming python3 is in /usr/bin/ if you don't know if it's located there, ... Then you can run the above command from within...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@zeitounator (oh, a climber pic … climber here as well 😉 )
I tried some inject commands and now it seems to work. I will start over to get a clean environment.
does not list the injected packages, btw
But it seems OK now, thanks. This makes using topgrade even more useful
Install Molecule could be done with
pipx install
andpipx inject
, e.g.: