Skip to content

Instantly share code, notes, and snippets.

@konstruktoid
Created April 25, 2023 09:34
Show Gist options
  • Save konstruktoid/4f5849e65989ecd2421b1aa52132d09a to your computer and use it in GitHub Desktop.
Save konstruktoid/4f5849e65989ecd2421b1aa52132d09a to your computer and use it in GitHub Desktop.
$ pip3 install -U ansible-core ansible-lint molecule "molecule-plugins[vagrant]"
[...]
WARNING: molecule-plugins 23.4.0 does not provide the extra 'vagrant'
[...]
$ pip3 install -U ansible-core ansible-lint molecule molecule-plugins molecule-vagrant
$ molecule check
Traceback (most recent call last):
File "/home/ubuntu/py310/bin/molecule", line 8, in <module>
sys.exit(main())
File "/home/ubuntu/py310/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "/home/ubuntu/py310/lib/python3.10/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/home/ubuntu/py310/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/ubuntu/py310/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/ubuntu/py310/lib/python3.10/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/home/ubuntu/py310/lib/python3.10/site-packages/click/decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/ubuntu/py310/lib/python3.10/site-packages/molecule/command/check.py", line 70, in check
base.execute_cmdline_scenarios(scenario_name, args, command_args)
File "/home/ubuntu/py310/lib/python3.10/site-packages/molecule/command/base.py", line 94, in execute_cmdline_scenarios
get_configs(args, command_args, ansible_args, glob_str),
File "/home/ubuntu/py310/lib/python3.10/site-packages/molecule/command/base.py", line 185, in get_configs
configs = [
File "/home/ubuntu/py310/lib/python3.10/site-packages/molecule/command/base.py", line 186, in <listcomp>
config.Config(
File "/home/ubuntu/py310/lib/python3.10/site-packages/molecule/config.py", line 64, in __call__
obj.after_init()
File "/home/ubuntu/py310/lib/python3.10/site-packages/molecule/config.py", line 118, in after_init
self._validate()
File "/home/ubuntu/py310/lib/python3.10/site-packages/molecule/config.py", line 456, in _validate
errors = schema_v3.validate(self.config)
File "/home/ubuntu/py310/lib/python3.10/site-packages/molecule/model/schema_v3.py", line 61, in validate
with open(schema_file, encoding="utf-8") as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/ubuntu/py310/lib/python3.10/site-packages/molecule_vagrant/driver.json'
$ pip3 uninstall molecule-vagrant
[...]
$ molecule check
WARNING vagrant driver is not installed.
[...]
@konstruktoid
Copy link
Author

python3 -m pip install --upgrade --force-reinstall ansible-core ansible-lint molecule==4.0.4 molecule-plugins==23.0.0 "molecule-plugins[vagrant]==23.0.0"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment