470,855 Members | 2,898 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

py2exe and Pmw

py2exe and Pmw problem

I was really surprised not to find some faq setting out what to do to
get py2exe working for a program using
Pmw. I'm haemorrhaging time here, and I'm now just after step-by-step
guidance on using py2exe and Pmw
together. I wasn't expecting this to take hours...

I've used py2exe succesfully on non-gui programs, and the Python program
I'm trying to py2exe works fine on
the interpreter. I've used bundlepmw.py to create Pmw.py. I've tried
putting Pmw.py, and PmwColor.py and
PmwBlt.py in all sorts of places, and always I get a message as if I
hadn't provided any of them:

Traceback (most recent call last):
File "newproj.py", line 21, in ?
File "Pmw\__init__.pyc", line 28, in ?
WindowsError: [Errno 3] The system cannot find the path specified:
'C:\\data\\Software\\Python\\newproj\\v2_1\\dist\\ library.zip\\Pmw/*.*'

Also, once I've successfully py2exe'd, where do I have to put all the
various dll, pyd, and zip files
when I want to run it on another machine? (I'm not a native to


I'm trying to create the executable on a Windows XP platform, with
Python 2.3, but the executable is to run
on other flavours of Windows too.

My setup.py follows (uncommenting the "packages" line doesn't seem to
make any difference):

from distutils.core import setup
import py2exe

import sys
sys.argv.append("py2exe") #Avoids having to use the command line

version = "2.1",
description = "Creates default file structures for new
name = "newproj",

# packages = ["Pmw"],

# targets to build
windows = ["newproj.py"],


Please don't just point me to places like the following without extra
guidance - I've already been to loads
of these, and I've spent too long trying to piece it all together:


Thanks in advance for any help.
David Vaughan
Carlton House, Ringwood Road, Woodlands,
Southampton, SO40 7HT, UNITED KINGDOM

Tel: +44 (0)23 8081 7500 Fax: +44 (0)23 8081 7600
Email: Da***********@gifford.uk.com
Web: http://www.gifford.uk.com

This e-mail and any files transmitted with it are intended solely for
the use of the individual or entity to whom they are addressed and may
be confidential. If you are not the intended recipient or the person
responsible for delivering the e-mail to the intended recipient, be
advised that you have received this e-mail in error and that any use,
dissemination, forwarding, printing or copying of this e-mail is
strictly prohibited.
Jul 18 '05 #1
0 2321

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by RJS | last post: by
1 post views Thread by | last post: by
2 posts views Thread by Stefan Behrens | last post: by
reply views Thread by Kathleen Kudzma | last post: by
8 posts views Thread by Kathleen Kudzma | last post: by
reply views Thread by Steven Bell | last post: by
6 posts views Thread by Luc Saffre | last post: by
reply views Thread by Larry Bates | last post: by
reply views Thread by Jimmy Retzlaff | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.