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 7049803
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:03:57+00:00 2026-05-28T03:03:57+00:00

Unlike previous questions like TypeError: argument of type 'int' is not iterable there doesn’t

  • 0

Unlike previous questions like TypeError: argument of type 'int' is not iterable there doesn’t seem to be an immediately obvious indexing problem in my case.

In the code below, testcfg.agents is a list of hostnames and/or IP addresses, and testcfg.port is the port which xmlrpc calls should use. The DSEvent class models events in Active Directory, and DSEvent.eventcommand is a list containing a command and its parameters (passed through xmlrpc calls to an agent, which executes it using the subprocess module.)

# Create a list of agents to process events from
agent_list = []
for a in testcfg.agents:
    agent_list.append(xmlrpc.client.ServerProxy("http://" + a + ':' + testcfg.port))

# Initial user creation:
for j in range(5):
    init_event = DSEvent(type = 'add', is_important = True)
    agent_eB = random.choice(agent_list)
    agent_eB.execute(init_event.eventcommand) # This line throws the fault described below!

The exact exception I’m getting is (with various tracebacks into the module stripped out):

xmlrpc.client.Fault: <Fault 1: "<class 'TypeError'>:argument of type 'int' is not iterable">

I can’t understand where this fault might be coming from. While init_event.eventcommand is an iterable object (a list) I’ve passed and returned iterable objects via xmlrpc in other code without encountering this error. I’ve checked for accidental variable reuse, and I don’t think that’s the problem either. I’d really love some help here!

For reference, here’s the full traceback for this error:

Traceback (most recent call last):
  File "C:\Users\Administrator\Downloads\randeventmaker\randeventmakerengine.py",
line 861, in <module>
    sproxy.execute(initializing_event.eventcommand)
  File "C:\Python32\lib\xmlrpc\client.py", line 1095, in __call__
    return self.__send(self.__name, args)
  File "C:\Python32\lib\xmlrpc\client.py", line 1423, in __request
    verbose=self.__verbose
  File "C:\Python32\lib\xmlrpc\client.py", line 1136, in request
    return self.single_request(host, handler, request_body, verbose)
  File "C:\Python32\lib\xmlrpc\client.py", line 1151, in single_request
    return self.parse_response(resp)
  File "C:\Python32\lib\xmlrpc\client.py", line 1323, in parse_response
    return u.close()
  File "C:\Python32\lib\xmlrpc\client.py", line 667, in close
    raise Fault(**self._stack[0])
xmlrpc.client.Fault: <Fault 1: "<class 'TypeError'>:argument of type 'int' is
not iterable">
  • 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-05-28T03:03:58+00:00Added an answer on May 28, 2026 at 3:03 am

    I think I’ve solved this, at least partially. Apparently remote functions only take a tuple of arguments. Changing

    agent_eB.execute(init_event.eventcommand)
    

    to

    agent_eb.execute((init_event.eventcommand,))
    

    seems to have fixed this particular error.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Unlike the iPhone simulator, the Android emulator doesn't look like an Android device. If
I've been looking for like and unlike button plugin for ROR. Is there any
Unlike a lot of the other 'x' does not name a type errors on
Unlike std::map and std::hash_map, corresponding versions in Qt do not bother to return a
I like the idea of CardSpace but unlike OpenID it seems like a real
I'm using Git for version control and unlike SVN I have not come across
I've looked but didn't find previous questions specific enough, so sorry if this is
By real pagination i mean something like this when in page 3: <<Previous 1
Unlike new and delete expressions, std::malloc does not call the constructor when memory for
Unlike programming languages, SQL doesn’t allow variable to be assigned a value using the

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.