Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8102687
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T23:18:37+00:00 2026-06-05T23:18:37+00:00

When running py.test using a plugin that loads xmlrpclib the test run fails with:

  • 0

When running py.test using a plugin that loads xmlrpclib the test run fails with:

INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File “/Library/Python/2.7/site-packages/pytest-2.2.4-py2.7.egg/_pytest/main.py”, line 70, in wrap_session
INTERNALERROR> config.pluginmanager.do_configure(config)
INTERNALERROR> File “/Library/Python/2.7/site-packages/pytest-2.2.4-py2.7.egg/_pytest/core.py”, line 267, in do_configure
INTERNALERROR> config.hook.pytest_configure(config=self._config)
INTERNALERROR> File “/Library/Python/2.7/site-packages/pytest-2.2.4-py2.7.egg/_pytest/core.py”,line 421, in call
INTERNALERROR> return self._docall(methods, kwargs)
INTERNALERROR> File “/Library/Python/2.7/site-packages/pytest-2.2.4-py2.7.egg/_pytest/core.py”,line 432, in _docall
INTERNALERROR> res = mc.execute()
INTERNALERROR> File “/Library/Python/2.7/site-packages/pytest-2.2.4-py2.7.egg/_pytest/core.py”,line 350, in execute
INTERNALERROR> res = method(**kwargs)
INTERNALERROR> File “/Library/Python/2.7/site-packages/pytest_marker_bugzilla-0.01-py2.7.egg/pytest_marker_bugzilla.py”,line 94, in pytest_configure
INTERNALERROR> bz = bugzilla.Bugzilla(url=url)
INTERNALERROR> File “build/bdist.macosx-10.7-intel/egg/bugzilla/init.py”, line 75, in init
INTERNALERROR> c = getBugzillaClassForURL(kwargs[‘url’])
INTERNALERROR> File “build/bdist.macosx-10.7-intel/egg/bugzilla/init.py”, line 26, in getBugzillaClassForURL
INTERNALERROR> s = xmlrpclib.ServerProxy(url)
INTERNALERROR> File “build/bdist.macosx-10.7-intel/egg/xmlrpclib.py”, line 1215, in init
INTERNALERROR> raise IOError, “unsupported XML-RPC protocol”
INTERNALERROR> > > IOError: unsupported XML-RPC protocol

I have verified that xmlrpclib will work with a simple test program, this program removes py.test from the picture.

#!/usr/bin/env python

import xmlrpclib
import bugzilla
import sys
for i in sys.path:
    print i

url = 'https://bugzilla.redhat.com/xmlrpc.cgi'
u = ' '
p = ' '

try:
    proxy = xmlrpclib.ServerProxy(url)
except(), e:
    print e
b = bugzilla.Bugzilla(url=url)
b.login(u,p)
bug = b.getbugsimple('12345')
print bug

The program above when executed returns as expected. I am at a loss for what is going on here. I have even added print sys.path to both py.test and the test program above and found that the paths are identical with the exception of the execute directory, /Users/esammons for the test.py and /usr/local/bin for py.test.

To further rule out issues I copied /usr/local/bin/py.test and /usr/local/bin/py.test-2.7 to my project root, same error occurred.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T23:18:38+00:00Added an answer on June 5, 2026 at 11:18 pm

    The issue was caused by the formatting of my values in my cfg file. I’m using ConfigParser to parse my config file; the cfg file has the following format.

    [DEFAULT]
    key = value
    key2 = value
    key3 = value
    

    The issue was caused by my wrapping the value in quotes (‘value’). Specifically:

    WRONG

    bugzilla_url = 'https://bugzilla.example.com/xmlrpc.cgi'
    

    RIGHT

    bugzilla_url = https://bugzilla.example.com/xmlrpc.cgi
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When running a test using the Tornado AsyncHTTPTestCase I'm getting a stack trace that
I'm trying to test a plugin that i wrote by running: rake spec:plugins When
I'm using the surefire maven plugin to run unit tests. My test class looks
I am running this test case using NUNIT and attaching the NUNIT to the
I've written an rspec test using Watir against a web application and it's running
In my jmeter test, I have a BSF PreProcessor step (using groovy) running before
I'm running a test, and found that the file doesn't actually get written until
i am confused between the concept of using maven-surefire-plugin or maven-failsafe-plugin to run my
I am running an Integration Test for a Grails application. I am using the
When I add to table using jQuery $('#myTable > tbody:last').prepend('<tr><td>test</td><td></td><td></td><td></td><td></td><td></td><td></td></tr>'); The form wrapped by

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.