<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>57123</bug_id>
          
          <creation_ts>2025-12-04 11:59:42 +0300</creation_ts>
          <short_desc>Не хватает зависимости на python3-module-packaging</short_desc>
          <delta_ts>2025-12-10 09:40:44 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Branch p10</product>
          <component>ansible-core</component>
          <version>не указана</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Artem Varaksa">varaksaaa</reporter>
          <assigned_to name="Andrey Cherepanov">cas</assigned_to>
          
          
          <qa_contact name="qa-p10@altlinux.org">qa-p10</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>278430</commentid>
    <comment_count>0</comment_count>
    <who name="Artem Varaksa">varaksaaa</who>
    <bug_when>2025-12-04 11:59:42 +0300</bug_when>
    <thetext>1. # apt-get install -y ansible-core
2. # ansible 127.0.0.1 -m ansible.builtin.debug -a &quot;msg={{ &apos;1.0&apos; is version(&apos;1.0&apos;) }}&quot; -vvv

&gt; ansible [core 2.15.9]
&gt; ...
&gt;   python version = 3.9.20 (main, Sep 19 2024, 14:47:53) [GCC 10.3.1 20210703 (ALT Sisyphus 10.3.1-alt2)] (/usr/bin/python3)
&gt;   jinja version = 3.0.1
&gt;   libyaml = True
&gt; ...
&gt; [WARNING]: packaging Python module unavailable; unable to validate collection Ansible version requirements
&gt; ...
&gt; The full traceback is:
&gt; Traceback (most recent call last):
&gt;   File &quot;/usr/lib/python3/site-packages/ansible/executor/task_executor.py&quot;, line 529, in _execute
&gt;     self._task.post_validate(templar=templar)
&gt;   File &quot;/usr/lib/python3/site-packages/ansible/playbook/task.py&quot;, line 290, in post_validate
&gt;     super(Task, self).post_validate(templar)
&gt;   File &quot;/usr/lib/python3/site-packages/ansible/playbook/base.py&quot;, line 543, in post_validate
&gt;     value = method(attribute, getattr(self, name), templar)
&gt;   File &quot;/usr/lib/python3/site-packages/ansible/playbook/task.py&quot;, line 298, in _post_validate_args
&gt;     args = templar.template(value)
&gt;   File &quot;/usr/lib/python3/site-packages/ansible/template/__init__.py&quot;, line 797, in template
&gt;     d[k] = self.template(
&gt;   File &quot;/usr/lib/python3/site-packages/ansible/template/__init__.py&quot;, line 771, in template
&gt;     result = self.do_template(
&gt;   File &quot;/usr/lib/python3/site-packages/ansible/template/__init__.py&quot;, line 1015, in do_template
&gt;     res = myenv.concat(rf)
&gt;   File &quot;/usr/lib/python3/site-packages/ansible/template/native_helpers.py&quot;, line 43, in ansible_eval_concat
&gt;     head = list(islice(nodes, 2))
&gt;   File &quot;&lt;template&gt;&quot;, line 17, in root
&gt;   File &quot;/usr/lib/python3/site-packages/ansible/plugins/test/core.py&quot;, line 174, in version_compare
&gt;     &apos;pep440&apos;: PEP440Version,
&gt; NameError: name &apos;PEP440Version&apos; is not defined
&gt; 127.0.0.1 | FAILED! =&gt; {
&gt;     &quot;changed&quot;: false
&gt; }

3. # apt-get install -y python3-module-packaging
4. # ansible 127.0.0.1 -m ansible.builtin.debug -a &quot;msg={{ &apos;1.0&apos; is version(&apos;1.0&apos;) }}&quot; -vvv

&gt; ...
&gt; 127.0.0.1 | SUCCESS =&gt; {
&gt;     &quot;msg&quot;: true
&gt; }


Воспроизводится в:

[p10] ansible-core-2.15.9-alt0.p10.1


Не воспроизводится в:

[p11] ansible-core-2.19.3-alt1.noarch
[sisyphus] ansible-core-2.20.0-alt1.noarch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>278771</commentid>
    <comment_count>1</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2025-12-10 09:40:44 +0300</bug_when>
    <thetext>ansible-2.9.27-alt3.p10.2.1 -&gt; p10:

Thu Dec 04 2025 Andrey Cherepanov &lt;cas@altlinux&gt; 2.9.27-alt3.p10.2.1
- Required python3-module-packaging for PEP440Version usage (ALT #57123).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>