Open fooock opened 2 years ago
I'd hazard a guess that Ansible uses incorrect Python interpreter when trying to invoke molecule
module. Your tracebacks (which your didn't bother to format to a readable line length 👎) jump unexpectedly from using venv to referencing /usr/local/Cellar/...
Now that we're talking about venv, why is there no Ansible in yours? Molecule is a very thin wrapper around a bunch of Ansible playbooks. It can not work standalone.
PS: \<insert a generic disapproval of cryptocurrencies for consistently propagating the worst possible behavior through the largest possible group of people>
@fooock did you manage to solve your issue ? I've tried with your branch. I've managed to reproduce it and it's working here once I installed ansible-core to the virtualenv as suggested by @sio (well, create is failing due to missing vbox but it's not related to your problem).
@ssbarnea since molecule-vagrant is providing a ansible module, maybe ansible-core should be added to the deps in setup.cfg
(I guess it's a different thing than what's addressed by https://github.com/ansible-community/molecule-plugins/issues/65) ? or it should be yet another thing to add in the README (probably in same commit as a commit solving https://github.com/ansible-community/molecule-vagrant/discussions/179) ?
thank you both for your responses. Installing ansible-core
in my virtual environment does the trick 👌🏼 should we add ansible-core
to install_requires
as you say @apatard ? I saw other molecule-*
plugins and they don't contain this module
I'm trying to run
molecule-vagrant
in my project but I get this error:ModuleNotFoundError: No module named 'molecule'
.I'm using:
The installed packages in my virtual environment:
As you can see, I have
molecule
andmolecule-vagrant
installed.The Vagrant version I'm using:
Running
molecule converge -s vagrant
results in this error:Any idea on what is happening?? If you want to test it, my project branch is here