Fix a crash: type 'NoneType' is not an acceptable base type#260
Open
phire-tc wants to merge 1 commit intoansible:develfrom
Open
Fix a crash: type 'NoneType' is not an acceptable base type#260phire-tc wants to merge 1 commit intoansible:develfrom
phire-tc wants to merge 1 commit intoansible:develfrom
Conversation
I was getting a crash when I tried to run awx-ee using
ansible-navigator:
```
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/ansible/cli/__init__.py", line 646, in cli_executor
exit_code = cli.run()
^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/ansible/cli/playbook.py", line 155, in run
results = pbex.run()
^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/ansible/executor/playbook_executor.py", line 117, in run
self._tqm.load_callbacks()
File "/usr/local/lib/python3.11/site-packages/ansible/executor/task_queue_manager.py", line 198, in load_callbacks
self._stdout_callback = callback_loader.get(self._stdout_callback)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/ansible/plugins/loader.py", line 861, in get
return self.get_with_context(name, *args, **kwargs).object
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/ansible/plugins/loader.py", line 907, in get_with_context
self._module_cache[path] = self._load_module_source(resolved_type_name, path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/ansible/plugins/loader.py", line 834, in _load_module_source
spec.loader.exec_module(module)
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/runner/artifacts/5c4373ae-294c-4355-9717-91217391340d/callback/awx_display.py", line 317, in <module>
class CallbackModule(DefaultCallbackModule):
TypeError: type 'NoneType' is not an acceptable base type
```
According to ansible/ansible-runner#1346 it
might be caused by the yaml output callback so this commit sets an
environment variable to set the callback to the default. It also
installs the community.general collection.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I was getting a crash when I tried to run awx-ee using ansible-navigator:
According to ansible/ansible-runner#1346 it might be caused by the yaml output callback so this commit sets an environment variable to set the callback to the default. It also installs the community.general collection.