Bug 2334524
| Summary: | ics_diff fails with "NameError: name 'readOne' is not defined" | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Tim Landscheidt <tim> |
| Component: | python-vobject | Assignee: | Pierre-YvesChibon <pingou> |
| Status: | NEW --- | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 45 | CC: | dan, epel-packagers-sig, pb, pingou |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | --- | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Tim Landscheidt
2024-12-27 15:50:38 UTC
Looks like an upstream bug.
python3-vobject-0.9.6.1-20.fc40.noarch -> ok
python3-vobject-0.9.8-1.fc40.noarch -> problem
found change in /usr/lib/python3.12/site-packages/vobject/ics_diff.py:
-from .base import Component, getBehavior, newFromBehavior, readOne
+import vobject
workaround:
--- /usr/lib/python3.12/site-packages/vobject/ics_diff.py.orig 2024-12-27 18:17:24.291792633 +0100
+++ /usr/lib/python3.12/site-packages/vobject/ics_diff.py 2024-12-27 18:17:38.124558660 +0100
@@ -197,8 +197,8 @@
ignore_dtstamp = options.ignore
ics_file1, ics_file2 = args
with open(ics_file1) as f, open(ics_file2) as g:
- cal1 = readOne(f)
- cal2 = readOne(g)
+ cal1 = vobject.readOne(f)
+ cal2 = vobject.readOne(g)
deleteExtraneous(cal1, ignore_dtstamp=ignore_dtstamp)
deleteExtraneous(cal2, ignore_dtstamp=ignore_dtstamp)
prettyDiff(cal1, cal2)
=> please file issue to upstream incl. adding a test for ics_diff (which looks like currently missing)
Thanks for the analysis! I've filed a bug report upstream at https://github.com/py-vobject/vobject/issues/95. This message is a reminder that Fedora Linux 40 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora Linux 40 on 2025-05-13. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a 'version' of '40'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, change the 'version' to a later Fedora Linux version. Note that the version field may be hidden. Click the "Show advanced fields" button if you do not see it. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora Linux 40 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora Linux, you are encouraged to change the 'version' to a later version prior to this bug being closed. Issue still exists rpm -qf /usr/bin/ics_diff python3-vobject-0.9.8-2.fc42.noarch This bug appears to have been reported against 'rawhide' during the Fedora Linux 45 development cycle. Changing version to 45. |