-
Notifications
You must be signed in to change notification settings - Fork 79
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
"couldn't resolve module/action 'vagrant'" error when installing molecule-plugins in a fresh environment #301
Comments
I ran into this today trying to get a fresh environment going. Unfortunately the latest version of molecule seems to introduce this error. While you wait for this issue to be investigated, the following version combination got me going.
|
Hi @tkimball83 ! Your combination works, thanks! Still, it would be great to have it working by default with newest versions. |
This most likely due to ansible/molecule#4380 |
@hswong3i possibly. I wanted to find time to double check this assertion but failed so far. After merging the PR to use molecule >= 25.1.0, @ssbarnea mentioned that it was not necessary a good idea as there was possible breakages soon. Looks like it was sonner than I expected. We should possibly require only 25.1, while waiting for the dust to settle ? |
@apatard please see my comment on ansible/molecule#4380 (comment)
|
Thank you so much! I was bashing my head against the wall for hours bc I was getting one error after the error. With you setup everything just works. Thank you. Seriously! |
I ran into this issue too. The workaround of downgrading molecule did resolve the issue, but that's not a permanent solution.
When running the tools from
Edit: Sadly, I just found out this is not the case. I had set the |
Confirmed, same issue / resolution on manjaro.
Could we also add a regression test to ensure this doesn't break on a release unintentionally again? |
afair, molecule is not using semver anymore. This means it can break any thing at any time. The solution would be to pin to the exact molecule version but it means missing fixes. In terms of this particular failure, I would not be suprised of the issue not being fixed. It has been several weeks now, and no fix (unless I've missed it). Anyway, there are still plans to kill plugins: ansible/ansible-dev-tools#510 (comment) ... I've been wondering lately about giving again a look at https://github.com/ansible-collections/community.vagrant. In the meantime, I've put the code into https://github.com/apatard/community.vagrant/tree/initial-import. Switching locally the molecule-plugins CI to this repo/branch seems to make it happy. |
Hello!
I'm trying to install molecule-plugins into fresh Python 3.12 venv using pipx (Ubuntu 24.04).
Basically what I do is:
But when I try to run molecule verify using vagrant I get:
This is
pip list
output for my env:I'm not sure if this is a problem with molecule-plugins, or molecule itself.
I believe there is no problem with my setup in general, because if I install old ansible, molecule and molecule-plugins it does work. This is what works:
Is there some kind of compatibility matrix for molecule-plugins, molecule and ansible?
Thanks!
The text was updated successfully, but these errors were encountered: