Bug 2104314

Summary: Python3 jinja2-cli < 0.8.0 incompatible with PyYaml >= 0.6.0
Product: [Fedora] Fedora Reporter: Peter Portante <pportant>
Component: python-jinja2-cliAssignee: Julien Enselme <jujens>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 36CC: jujens
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: python-jinja2-cli-0.8.2-2.fc36 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-07-15 01:16:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Peter Portante 2022-07-06 00:05:56 UTC
Description of problem:

Python3 jinja2-cli < 0.8.0 incompatible with PyYaml >= 0.6.0


Version-Release number of selected component (if applicable):

$ sudo dnf list \*pyyaml\* \*jinja2\*
Last metadata expiration check: 2:08:11 ago on Tue 05 Jul 2022 05:53:15 PM EDT.
Installed Packages
python3-jinja2-cli.noarch   0.7.0-11.fc36   @fedora
python3-pyyaml.x86_64       6.0-3.fc36      @fedora


How reproducible:

Each time.


Steps to Reproduce:

1. dnf install python3-jinja2-cli
2. jinja2 <template> <data file>


Actual results:

$ jinja2 template.j2 data.yml
Traceback (most recent call last):
  File "/usr/bin/jinja2", line 33, in <module>
    sys.exit(load_entry_point('jinja2-cli==0.7.0', 'console_scripts', 'jinja2')())
  File "/usr/lib/python3.10/site-packages/jinja2cli/cli.py", line 424, in main
    sys.exit(cli(opts, args))
  File "/usr/lib/python3.10/site-packages/jinja2cli/cli.py", line 279, in cli
    data = fn(data) or {}
TypeError: load() missing 1 required positional argument: 'Loader'


Expected results:

python3-pyyaml and python3-jinja2-cli work together.


Additional info:

See https://bytemeta.vip/repo/mattrobenolt/jinja2-cli/issues/97

Comment 1 Fedora Update System 2022-07-06 09:49:55 UTC
FEDORA-2022-b494cbb073 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-b494cbb073

Comment 2 Fedora Update System 2022-07-07 01:36:06 UTC
FEDORA-2022-b494cbb073 has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-b494cbb073`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-b494cbb073

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 3 Fedora Update System 2022-07-15 01:16:19 UTC
FEDORA-2022-b494cbb073 has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.