Coder Social home page Coder Social logo

Comments (5)

NickUfer avatar NickUfer commented on August 17, 2024 1

Hey, sorry for that. The respawn import and the runtime requirements are a bug. The respawn is actually not required. I will release a fix for that in some hours 👍🏼

from ansible-collection.

NickUfer avatar NickUfer commented on August 17, 2024 1

The problem is fixed in the newest version (1.2.1) ready to download.

from ansible-collection.

Kariton avatar Kariton commented on August 17, 2024

I think there it is (not):

# python3
Python 3.6.8 (default, Aug 12 2021, 07:06:15)
[GCC 8.4.1 20200928 (Red Hat 8.4.1-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from ansible.module_utils.common.respawn import probe_interpreters_for_module
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'ansible.module_utils.common.respawn'
# ls /usr/lib/python3.6/site-packages/ansible/module_utils/common/
_collections_compat.py
collections.py
dict_transformations.py
file.py
__init__.py
_json_compat.py
json.py
network.py
parameters.py
process.py
__pycache__
removed.py
sys_info.py
text  _utils.py
validation.py

from ansible-collection.

Kariton avatar Kariton commented on August 17, 2024

https://docs.ansible.com/ansible/devel/dev_guide/developing_collections_shared.html#leveraging-optional-module-utilities-in-collections

For example, the ansible.module_utils.common.respawn package is only available in Ansible 2.11 and higher. The following module code would fail during the payload build on Ansible 2.10 or earlier (as the requested Python module does not exist, and is not wrapped in a block to signal to the payload builder that it can be omitted from the module payload).

try:
    from ansible.module_utils.common.respawn import respawn_module
except ImportError:
    respawn_module = None
...
if needs_respawn:
    if respawn_module:
        respawn_module(target)
    else:
        module.fail_json('respawn is not available in Ansible < 2.11, ensure that foopkg is installed')

Why was i allowed to install this collection...

I just saw your meta/runtime.yml - maybe it needs to be meta/main.yml?

from ansible-collection.

Kariton avatar Kariton commented on August 17, 2024

Proxy is needed as expected - Ansible 2.11 did the trick.

I will let this issue open for now - feel free to close.

from ansible-collection.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.