473,732 Members | 2,219 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 SimpleXMLRPCSer ver import *
from ConfigParser import *
sys.argv.append ("py2exe")
setup(console=[{"script": 'monkey_shelld. py'}],
data_files=["monkey_shell.c onf"])

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

python setup.py py2exe

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

xmlrpclib.Proto colError: <ProtocolErro r for 1.1.1.1:8888/RPC2: 500
Internal error

now, when i run the server script (i.e. python monkey_shelld.p y),
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 2111
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.Proto colError: <ProtocolErro r 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2396
by: | last post by:
I want a binnary file to my aplicattion, but py2exe don't match the xmll.sax module. the py2exe shows this errors: warning: py2exe: *************************************************************** ********** warning: py2exe: * The following modules were not found: warning: py2exe: * xml.sax warning: py2exe: * win32con warning: py2exe: * pywintypes
0
2095
by: Steven Bell | last post by:
I am trying to build an executable from a python script. Using python 2.3, SOAPpy 0.10.3, Py2exe 0.4.2. Build command: python setup.py py2exe -w --includes xml.sax.drivers2.drv_py I get the following output: warning: py2exe: ************************************************************************* warning: py2exe: * The following modules were not found: warning: py2exe: * Carbon.Folder
2
2046
by: David Brownell | last post by:
I am using the XMLValidateParser in the PyXML library (xml.sax.sax2exts.XMLValParserFactory.make_parser). When I run my script, everything works as expected. When I "compile" my script using py2exe, I get the following error when running the exe: Traceback (most recent call last): <my modules removed for brevity> File "xml\sax\sax2exts.pyc", line 13, in make_parser
0
1517
by: Jimmy Retzlaff | last post by:
py2exe 0.6.5 released ===================== py2exe is a Python distutils extension which converts Python scripts into executable Windows programs, able to run without requiring a Python installation. Console and Windows (GUI) applications, Windows NT services, exe and dll COM servers are supported. Changes in 0.6.5:
2
1389
by: Kirt | last post by:
I have a simple scrips that Parses a XML file and prints its element. 1)Main.py 2)Handler.py 3)test.xml The scripts works fine from comand prompt. Now i wanted to convert it to an exe. So i wrote a setup.py scripts as folows:
0
1727
by: Jimmy Retzlaff | last post by:
py2exe 0.6.6 released ===================== py2exe is a Python distutils extension which converts Python scripts into executable Windows programs, able to run without requiring a Python installation. Console and Windows (GUI) applications, Windows NT services, exe and dll COM servers are supported. Changes in 0.6.6:
0
13471
bartonc
by: bartonc | last post by:
You can find the original author of the script by ggling " Py2Exe version 6.3 setup" The cool thing about this is that it calls py2exe, just in case you're uncomfortable with the command line. I had to search hi and lo for the example of how to exclude Tkinter. Coming soon: scipy includes and numpy include that gets rid of complaints of missing modules that are fantom errors. # Py2Exe version 6.3 setup file for wxPython GUI programs. #...
1
2986
by: Jimmy Retzlaff | last post by:
py2exe 0.6.8 released ===================== py2exe is a Python distutils extension which converts Python scripts into executable Windows programs, able to run without requiring a Python installation. Console and Windows (GUI) applications, Windows NT services, exe and dll COM servers are supported. Changes in 0.6.8:
0
1523
by: Larry Bates | last post by:
Jimmy Retzlaff wrote: Everyone, Thanks for all your hard work on py2exe, it is greatly appreciated. -Larry Bates
0
3121
by: Jimmy Retzlaff | last post by:
py2exe 0.6.9 released ===================== py2exe is a Python distutils extension which converts Python scripts into executable Windows programs, able to run without requiring a Python installation. Console and Windows (GUI) applications, Windows NT services, exe and dll COM servers are supported. Changes in 0.6.9:
0
8946
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8774
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9447
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9235
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9181
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8186
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4809
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.