You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR! Unexpected Exception, this is probably a bug: No module named 'ansible.module_utils.network_common'
the full traceback was:
Traceback (most recent call last):
File "~/.ansible/roles/ansible-network.network-engine/action_plugins/command_parser.py", line 23, in <module>
from ansible.module_utils.network.common.utils import to_list
ModuleNotFoundError: No module named 'ansible.module_utils.network'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "~/.venvs/ansible-3.1/bin/ansible-playbook", line 123, in <module>
exit_code = cli.run()
File "~/.venvs/ansible-3.1/lib/python3.7/site-packages/ansible/cli/playbook.py", line 129, in run
results = pbex.run()
File "~/.venvs/ansible-3.1/lib/python3.7/site-packages/ansible/executor/playbook_executor.py", line 169, in run
result = self._tqm.run(play=play)
File "~/.venvs/ansible-3.1/lib/python3.7/site-packages/ansible/executor/task_queue_manager.py", line 281, in run
play_return = strategy.run(iterator, play_context)
File "~/.venvs/ansible-3.1/lib/python3.7/site-packages/ansible/plugins/strategy/linear.py", line 267, in run
action = action_loader.get(task.action, class_only=True, collection_list=task.collections)
File "~/.venvs/ansible-3.1/lib/python3.7/site-packages/ansible/plugins/loader.py", line 782, in get
return self.get_with_context(name, *args, **kwargs).object
File "~/.venvs/ansible-3.1/lib/python3.7/site-packages/ansible/plugins/loader.py", line 802, in get_with_context
self._module_cache[path] = self._load_module_source(name, path)
File "~/.venvs/ansible-3.1/lib/python3.7/site-packages/ansible/plugins/loader.py", line 766, in _load_module_source
spec.loader.exec_module(module)
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "~/.ansible/roles/ansible-network.network-engine/action_plugins/command_parser.py", line 26, in <module>
from ansible.module_utils.network_common import to_list
ModuleNotFoundError: No module named 'ansible.module_utils.network_common'
The text was updated successfully, but these errors were encountered:
ISSUE TYPE
ANSIBLE VERSION
Network OS
SUMMARY
After upgrade ansible from 2.9.18 to 2.10, I was no longer able to run my playbooks with network-engine.
The error was "ModuleNotFoundError: No module named 'ansible.module_utils.network_common'"
In file
I had to change line 26
to
And in file:
I had to change line 13
to
STEPS TO REPRODUCE
EXPECTED RESULTS
No errors at all.
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: