File .../ansible/playbook/role/__init__.py", line 224 in _load_role_data problem

Hi,

I’m getting this error using python 3.9 and ansible 2.10.3
when I suspect a role to be imported cannot be found

ansible-playbook -i hosts install_jenkins.yml -b -v
Using /Users/cmoullia/.ansible.cfg as config file

PLAY [masters] **************************************************************************************************************************************************************************************************

TASK [Gathering Facts] ******************************************************************************************************************************************************************************************
ok: [10.0.76.229]

TASK [Install Jenkins] ******************************************************************************************************************************************************************************************
Fatal Python error: _Py_CheckRecursiveCall: Cannot recover from stack overflow.
Python runtime state: initialized

Thread 0x0000700004160000 (most recent call first):
File “/usr/local/Cellar/python@3.9/3.9.0_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/connection.py”, line 384 in _recv
File “/usr/local/Cellar/python@3.9/3.9.0_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/connection.py”, line 419 in _recv_bytes
File “/usr/local/Cellar/python@3.9/3.9.0_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/connection.py”, line 221 in recv_bytes
File “/usr/local/Cellar/python@3.9/3.9.0_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/queues.py”, line 103 in get
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/plugins/strategy/init.py”, line 100 in results_thread_main
File “/usr/local/Cellar/python@3.9/3.9.0_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/threading.py”, line 888 in run
File “/usr/local/Cellar/python@3.9/3.9.0_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/threading.py”, line 950 in _bootstrap_inner
File “/usr/local/Cellar/python@3.9/3.9.0_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/threading.py”, line 908 in _bootstrap

Current thread 0x0000000114f3bdc0 (most recent call first):
File “/usr/local/Cellar/python@3.9/3.9.0_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/posixpath.py”, line 76 in join
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/utils/collection_loader/_collection_finder.py”, line 283 in
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/utils/collection_loader/_collection_finder.py”, line 283 in _get_candidate_paths
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/utils/collection_loader/_collection_finder.py”, line 271 in init
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/utils/collection_loader/_collection_finder.py”, line 178 in find_module
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/utils/collection_loader/_collection_finder.py”, line 219 in find_module
File “”, line 1301 in _legacy_get_spec
File “”, line 1323 in _get_spec
File “”, line 1349 in find_spec
File “”, line 925 in _find_spec
File “”, line 982 in _find_and_load_unlocked
File “”, line 1007 in _find_and_load
File “”, line 1030 in _gcd_import
File “”, line 228 in _call_with_frames_removed
File “”, line 972 in _find_and_load_unlocked
File “”, line 1007 in _find_and_load
File “”, line 1030 in _gcd_import
File “”, line 228 in _call_with_frames_removed
File “”, line 972 in _find_and_load_unlocked
File “”, line 1007 in _find_and_load
File “”, line 1030 in _gcd_import
File “/usr/local/Cellar/python@3.9/3.9.0_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/init.py”, line 127 in import_module
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/utils/collection_loader/_collection_finder.py”, line 850 in _get_collection_role_path
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/definition.py”, line 159 in _load_role_path
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/definition.py”, line 95 in preprocess_data
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/base.py”, line 222 in load_data
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/include.py”, line 60 in load
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/helpers.py”, line 392 in load_list_of_roles
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/metadata.py”, line 105 in _load_dependencies
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/base.py”, line 235 in load_data
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/metadata.py”, line 59 in load
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 223 in _load_role_data
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 172 in load
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 308 in _load_dependencies
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 224 in _load_role_data
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 172 in load
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 308 in _load_dependencies
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 224 in _load_role_data
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 172 in load
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 308 in _load_dependencies
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 224 in _load_role_data
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 172 in load
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 308 in _load_dependencies
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 224 in _load_role_data
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 172 in load
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 308 in _load_dependencies
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 224 in _load_role_data
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 172 in load
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 308 in _load_dependencies
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 224 in _load_role_data
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 172 in load
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 308 in _load_dependencies
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 224 in _load_role_data
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 172 in load
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 308 in _load_dependencies
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 224 in _load_role_data
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 172 in load
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 308 in _load_dependencies
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 224 in _load_role_data
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 172 in load
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 308 in _load_dependencies
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 224 in _load_role_data
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 172 in load
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 308 in _load_dependencies
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 224 in _load_role_data
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 172 in load
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 308 in _load_dependencies
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 224 in _load_role_data
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 172 in load
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 308 in _load_dependencies
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 224 in _load_role_data
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 172 in load
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 308 in _load_dependencies
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 224 in _load_role_data
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 172 in load
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 308 in _load_dependencies
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 224 in _load_role_data
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 172 in load
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 308 in _load_dependencies
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 224 in _load_role_data
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 172 in load
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 308 in _load_dependencies
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 224 in _load_role_data
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 172 in load
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 308 in _load_dependencies
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 224 in _load_role_data
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 172 in load
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 308 in _load_dependencies
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 224 in _load_role_data
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 172 in load
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 308 in _load_dependencies
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 224 in _load_role_data
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 172 in load
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 308 in _load_dependencies
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 224 in _load_role_data
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 172 in load
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 308 in _load_dependencies
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 224 in _load_role_data
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 172 in load
File “/usr/local/Cellar/ansible/2.10.3_1/libexec/lib/python3.9/site-packages/ansible/playbook/role/init.py”, line 308 in _load_dependencies

[1] 37049 abort ansible-playbook -i hosts install_jenkins.yml -b -v
/usr/local/Cellar/python@3.9/3.9.0_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/resource_tracker.py:216: UserWarning: resource_tracker: There appear to be 30 leaked semaphore objects to clean up at shutdown
warnings.warn('resource_tracker: There appear to be %d ’

Any idea about how to fix that ?

Regards

Charles