spacewalk-report broken with Python Import error after recent O/S package update #7252
ppanon2022
started this conversation in
General
Replies: 2 comments
-
Quick check done here, and "spacewalk-report" is working as before. HOWEVER, I have not done any recent OS package updates, since there hasn't been a new version of Uyuni for a while, which perhaps adds weight to your theory. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
spacewalk-report is now returning the following exception:
This was working until fairly recently so I think an O/S package update must have changed whatever the salt.ext six module is. I think six is usually a python 2/3 compatibility layer so perhaps it was removed in a recent package update under the assumption that it's been long enough for people to switch over code to Python 3. Can anybody confirm if that's the problem and clarify what spacewalk-report is using that six module for?
As far as I can tell it's being used as an iterator when building the where clause to append to the select query.
I'm not sure what that function is doing though or if there's a Python 3 equivalent that should just be used to replace it. Could it just be replaced by the following?
for clause, values in enumerate(where[column]):
Ah, that just seems to move the problem to /usr/share/spacewalk/reports.py
where it's being used in exception handling
I've tried to change that last line to just
raise spacewalk_unknown_report
and the report now runs, but I don't know if that's the correct fix.
Beta Was this translation helpful? Give feedback.
All reactions