Bug 474490 - python-boto encoding doesn't work on RHEL4
Summary: python-boto encoding doesn't work on RHEL4
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: grid
Version: 1.0
Hardware: All
OS: Linux
high
high
Target Milestone: 1.1
: ---
Assignee: Robert Rati
QA Contact: Jeff Needle
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-12-04 01:16 UTC by Robert Rati
Modified: 2009-02-04 16:04 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-02-04 16:04:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2009:0036 0 normal SHIPPED_LIVE Red Hat Enterprise MRG Grid 1.1 Release 2009-02-04 16:03:49 UTC

Description Robert Rati 2008-12-04 01:16:35 UTC
Description of problem:
Traceback (most recent call last):
  File "/usr/libexec/condor/hooks/hook_translate.py", line 301, in ?
    sys.exit(main())
  File "/usr/libexec/condor/hooks/hook_translate.py", line 292, in main
    sqs_queue.write(message)
  File "/usr/lib/python2.3/site-packages/boto/sqs/queue.py", line 181, in write
    message.get_body_encoded())
  File "/usr/lib/python2.3/site-packages/boto/sqs/message.py", line 117, in get_body_encoded
    return base64.b64encode(self.get_body())
AttributeError: 'module' object has no attribute 'b64encode'


base64.encodestring(str).replace('\n','') seems a good substitute for b64encode

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Matthew Farrellee 2008-12-05 13:21:53 UTC
This has been resolved, there were 3 issues:
 1) b64encode(...) -> encodestring(...).replace('\n','')
 2) sort(cmp=...) -> sort(...)
 3) (most painful) extra Content-Length header introduce by boto/connection.py removed

Please mark MODI once the new python-boto package is created

Comment 2 Robert Rati 2008-12-05 16:18:02 UTC
Changes are in python-boto-1.0a-2

Comment 5 errata-xmlrpc 2009-02-04 16:04:49 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2009-0036.html


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