yaml should be listed as a runtime dependency

Bug #1977850 reported by Jakub Kulik
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oslo.utils
Fix Released
Medium
Takashi Kajinami

Bug Description

When I install oslo.utils using pip and try to import oslo_utils.fileutils, I get the following error:

>>> import oslo_utils.fileutils
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/scratch/userland-gate/components/venv/lib/python3.7/site-packages/oslo_utils/fileutils.py", line 30, in <module>
    import yaml
ModuleNotFoundError: No module named 'yaml'

I presume it's because of missing pyyaml dependency.

Changed in oslo.utils:
assignee: nobody → Takashi Kajinami (kajinamit)
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to oslo.utils (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/oslo.utils/+/897617

Changed in oslo.utils:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to oslo.utils (master)

Reviewed: https://review.opendev.org/c/openstack/oslo.utils/+/897617
Committed: https://opendev.org/openstack/oslo.utils/commit/d6b9e846e4e22cd94f8321380a67ce842d4f4afb
Submitter: "Zuul (22348)"
Branch: master

commit d6b9e846e4e22cd94f8321380a67ce842d4f4afb
Author: Takashi Kajinami <email address hidden>
Date: Sat Oct 7 11:12:03 2023 +0900

    Fix missing PyYAML dependency

    PyYAML is required by oslo_utils.fileutils, but has been missing from
    requirements.

    Closes-Bug: #1977850
    Change-Id: I80afbf26c92e20f64904e0e431360dd269b96f23

Changed in oslo.utils:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/oslo.utils 6.3.0

This issue was fixed in the openstack/oslo.utils 6.3.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.