Bug 1390170 - rhnpush Python problem on RHEL5: 'tuple' object has no attribute 'args'
Summary: rhnpush Python problem on RHEL5: 'tuple' object has no attribute 'args'
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: Clients
Version: 2.5
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Gennadii Altukhov
QA Contact: Lukáš Hellebrandt
URL:
Whiteboard:
Depends On:
Blocks: 1395895 space27
TreeView+ depends on / blocked
 
Reported: 2016-10-31 12:01 UTC by Lukáš Hellebrandt
Modified: 2017-09-27 19:25 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
: 1395895 (view as bug list)
Environment:
Last Closed: 2017-09-27 19:25:19 UTC
Embargoed:


Attachments (Terms of Use)

Description Lukáš Hellebrandt 2016-10-31 12:01:42 UTC
Description of problem:
On RHEL5 (Python 2.4), rhnpush fails with "ERROR: unhandled exception occurred: ('tuple' object has no attribute 'args')." The problem is in line 757 of /usr/share/rhn/rhnpush/uploadLib.py file - the getargspec function returns a tuple in Python 2.4 rather than namedtuple.

How reproducible:
Deterministic

Steps to Reproduce:
rhnpush <rpm> -c <channel> -u <user> -p <pass> --nosig --server=<server>

Actual results:
ERROR: unhandled exception occurred: ('tuple' object has no attribute 'args').

Expected results:
Package successfully pushed

Comment 1 Gennadii Altukhov 2016-11-03 16:43:43 UTC
spacewalk.git:
a20233da9415b28f8d4466ac93d6829873f3a6cb

Comment 2 Lukáš Hellebrandt 2016-11-10 14:24:41 UTC
Verified on RHEL5 with 2016-11-09 SW nightly. Also verified the fix did not break things on RHEL6 with the same day SW nightly.

Comment 3 Eric Herget 2017-09-27 19:25:19 UTC
This looks like it was fixed in previous release, but I'm closing it in this one.

Spacewalk 2.7 has been released.

https://github.com/spacewalkproject/spacewalk/wiki/ReleaseNotes27


Note You need to log in before you can comment on or make changes to this bug.