469,312 Members | 2,524 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,312 developers. It's quick & easy.

py2exe + XML-RPC problem

Hi,
I tried to take the Monkey Shell script
(http://www.sharp-ideas.net/archives/..._shell_us.html) and
make it into an executable. I am making an executable for the server
piece (monkey_shelld.py). So my setup.py looks like this

# setup.py
from distutils.core import setup
import py2exe
import sys
import xmlrpclib
import os
import string
from SimpleXMLRPCServer import *
from ConfigParser import *
sys.argv.append("py2exe")
setup(console=[{"script": 'monkey_shelld.py'}],
data_files=["monkey_shell.conf"])

....which i think is right. I imported the same imports as
monkey_shelld.py uses (is that necessary??) And i execute it like...

python setup.py py2exe

Anyhow, i run the setup and get a monkey_shelld.exe. I can run the exe
and the server runs just fine. Then I connect to the server using the
client (monkey_shell.py), and when I execute a command, the client
side prints out an error...

xmlrpclib.ProtocolError: <ProtocolError for 1.1.1.1:8888/RPC2: 500
Internal error

now, when i run the server script (i.e. python monkey_shelld.py),
everything works fine (i.e. i can send commands from client and get
server response), but when I try to use the server executable
(monkey_shelld.exe) I get the error (shown above) when I try to execute
a command.

Any ideas? I am guessing that I am missing something from my setup.py.

Info that may be helpful in answering:
OS: win xp
Python ver: 2.4.1
py2exe ver: 0.5.4

Thanks!

Jul 19 '05 #1
2 1979
update to this. I generated an exe for the client and server. They
both run fine, except, when i send a command from the client to server,
the cleint spits out this..

xmlrpclib.ProtocolError: <ProtocolError for 10.50.20.5:80/RPC2: -1 >

When I run the .py's by themselves I do not get this. This only occurs
with the generated .exe's.

thanks

Jul 19 '05 #2
sorry, I am actually still getting the 500 internal error I reported
earlier.

thanks for ur input.

Jul 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by | last post: by
reply views Thread by Steven Bell | last post: by
2 posts views Thread by David Brownell | last post: by
reply views Thread by Jimmy Retzlaff | last post: by
2 posts views Thread by Kirt | last post: by
reply views Thread by Jimmy Retzlaff | last post: by
1 post views Thread by Jimmy Retzlaff | last post: by
reply views Thread by Larry Bates | last post: by
reply views Thread by Jimmy Retzlaff | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
1 post views Thread by Geralt96 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.