It looks like really general problem. Fast blog which solve problem about creating molecule role
Error log
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
➜ trozgene@macbook-pro-2 ~/Githubdosyalari/ansible/roles git:(master) molecule init --role create-S3-stack --driver docker 11:13:23 --> Initializing role create-S3-stack... Traceback (most recent call last): File "/usr/local/bin/molecule", line 11, in <module> sys.exit(main()) File "/Library/Python/2.7/site-packages/molecule/cli.py", line 41, in main cli(obj={}) File "/Library/Python/2.7/site-packages/click/core.py", line 722, in __call__ return self.main(*args, **kwargs) File "/Library/Python/2.7/site-packages/click/core.py", line 697, in main rv = self.invoke(ctx) File "/Library/Python/2.7/site-packages/click/core.py", line 1066, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/Library/Python/2.7/site-packages/click/core.py", line 895, in invoke return ctx.invoke(self.callback, **ctx.params) File "/Library/Python/2.7/site-packages/click/core.py", line 535, in invoke return callback(*args, **kwargs) File "/Library/Python/2.7/site-packages/click/decorators.py", line 17, in new_func return f(get_current_context(), *args, **kwargs) File "/Library/Python/2.7/site-packages/molecule/command/init.py", line 141, in init util.sysexit(i.execute()[0]) File "/Library/Python/2.7/site-packages/molecule/command/init.py", line 60, in execute self._init_new_role(role, role_path, driver, verifier) File "/Library/Python/2.7/site-packages/molecule/command/init.py", line 85, in _init_new_role util.process_templates(template, extra_context, role_path) File "/Library/Python/2.7/site-packages/molecule/util.py", line 115, in process_templates no_input=True, ) File "/Library/Python/2.7/site-packages/cookiecutter/main.py", line 82, in cookiecutter context['cookiecutter'] = prompt_for_config(context, no_input) File "/Library/Python/2.7/site-packages/cookiecutter/prompt.py", line 188, in prompt_for_config env = StrictEnvironment(context=context) File "/Library/Python/2.7/site-packages/cookiecutter/environment.py", line 70, in __init__ **kwargs File "/Library/Python/2.7/site-packages/cookiecutter/environment.py", line 40, in __init__ raise UnknownExtension('Unable to load extension: {}'.format(err)) cookiecutter.exceptions.UnknownExtension: Unable to load extension: cannot import name _thread |
Solution
1 2 |
sudo pip uninstall python-dateutil sudo pip install python-dateutil==2.2 |