Bug 1300228

Summary: yum-rhn-plugin-2.5.1-1 : Python 2.6 incompatibility, 'encode() takes no keyword arguments'
Product: [Community] Spacewalk Reporter: Lukáš Hellebrandt <lhellebr>
Component: ClientsAssignee: Gennadii Altukhov <galtukho>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.4CC: galtukho, tkasparek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-16 08:01:10 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:
Bug Depends On:    
Bug Blocks: 1484117    
Attachments:
Description Flags
Traceback none

Description Lukáš Hellebrandt 2016-01-20 10:14:00 UTC
Description of problem:
With yum-rhn-plugin-2.5.1-1, on RHEL6 upon running for example 'yum repolist', a traceback happens (attached).

Version-Release number of selected component (if applicable):
yum-rhn-plugin-2.5.1-1
RHEL 6
Python 2.6.6

How reproducible:
Always

Steps to Reproduce:
1. Have yum-rhn-plugin-2.5.1-1 installed
2. Run 'yum repolist'

Actual results:
Traceback

Expected results:
Repo list

Additional info:
This is beacause there is Python 2.6 in RHEL 6 and encode() has changed in 2.7, see https://docs.python.org/2/library/stdtypes.html#str.encode .

Comment 1 Lukáš Hellebrandt 2016-01-20 10:21:20 UTC
Created attachment 1116572 [details]
Traceback

Comment 2 Lukáš Hellebrandt 2016-01-20 10:26:46 UTC
I used rhnlib-2.5.82-1 and rhn-client-tools-2.5.9-1

Comment 3 Gennadii Altukhov 2016-01-23 16:26:15 UTC
Taking...

Comment 4 Gennadii Altukhov 2016-01-25 11:56:00 UTC
spacewalk.git: 
7641f3613d1eafff15c4567f0d32ce86df8c166b

Comment 5 Tomáš Kašpárek 2016-06-16 08:01:10 UTC
Spacewalk 2.5 was released.

Comment 6 Eric Herget 2017-09-28 18:11:17 UTC
This BZ closed some time during 2.5, 2.6 or 2.7.  Adding to 2.7 tracking bug.