I'm hoping someone here can help me out, I have a problem that I have not been able to resolve as I have eliminated and changed up scenarios and found that only in one case (thus far) do I get the error IOError Unsupported XML-RPC protocol.
I have written small snippets of code that use xmlrpclib, I have re-written these snippets to use python-bugzilla, and then I have even used bugzilla (the cli), and finally I even added a python-bugzilla call to a test scenario and used py.test. In _all_ cases the code runs just fine; however, in one scenario I receive the mentioned error. This scenario involves a pytest-plugin that I wrote - it works perfectly on Fedora.
Install https://github.com/eanxgeek/pytest_marker_bugzilla and use py.test to call it to execute a series of sample tests. On my Mac I get the XML-RPC error.
For more I have a question posted on stackoverflow.
http://stackoverflow.com/questions/11024425/pytest-plugin-using-xmlrpclib-fa...
Appreciate any thoughts here as I mentioned I have tried several scenarios that all work on the very same Mac.
Thank you!
--- Eric L. Sammons, RHCE/RHCVA Sr. Quality Engineer, Cloud Technologies
Sent by my android Transformer Prime
On 06/14/2012 07:25 PM, Eric L. Sammons wrote:
I'm hoping someone here can help me out, I have a problem that I have not been able to resolve as I have eliminated and changed up scenarios and found that only in one case (thus far) do I get the error IOError Unsupported XML-RPC protocol.
I have written small snippets of code that use xmlrpclib, I have re-written these snippets to use python-bugzilla, and then I have even used bugzilla (the cli), and finally I even added a python-bugzilla call to a test scenario and used py.test. In _all_ cases the code runs just fine; however, in one scenario I receive the mentioned error. This scenario involves a pytest-plugin that I wrote - it works perfectly on Fedora.
Install https://github.com/eanxgeek/pytest_marker_bugzilla and use py.test to call it to execute a series of sample tests. On my Mac I get the XML-RPC error.
For more I have a question posted on stackoverflow.
http://stackoverflow.com/questions/11024425/pytest-plugin-using-xmlrpclib-fa...
Appreciate any thoughts here as I mentioned I have tried several scenarios that all work on the very same Mac.
I'd suggest sticking some 'print' statements in the xmlrpclib.py file to figure out what's going on. On Fedora 16, that error is raised from a pretty simple condition:
import urllib type, uri = urllib.splittype(uri) if type not in ("http", "https"): raise IOError, "unsupported XML-RPC protocol"
So maybe the URL is being mangled in some way?
- Cole
python-bugzilla@lists.stg.fedorahosted.org