Ticket #669 (closed defect: fixed)
SimpleXMLRPCServer in python 2.4
| Reported by: | Jack Neely <jjneely@…> | Owned by: | desai |
|---|---|---|---|
| Priority: | major | Milestone: | Bcfg2 1.0.0 Release |
| Component: | bcfg2-server | Version: | 1.0 |
| Keywords: | Cc: |
Description
Looks like the SimpleXMLRPCServer API changes in 2.5. I'm getting:
Traceback (most recent call last):
File "/usr/sbin/bcfg2-server", line 62, in ?
ca=setup['ca'],
File "/usr/lib/python2.4/site-packages/Bcfg2/Component.py", line 64, in run_component
register=register, timeout=time_out, ca=ca)
File "/usr/lib/python2.4/site-packages/Bcfg2/SSLServer.py", line 239, in __init__
XMLRPCDispatcher.__init__(self, allow_none, encoding)
File "/usr/lib/python2.4/site-packages/Bcfg2/SSLServer.py", line 30, in __init__
encoding)
TypeError: __init__() takes exactly 1 argument (3 given)
from bcfg2-server on RHEL 5 with python 2.4.
http://docs.python.org/library/simplexmlrpcserver.html states: "Changed in version 2.5: The allow_none and encoding parameters were added."
Attachments
Change History
Note: See
TracTickets for help on using
tickets.