By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,997 Members | 1,260 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,997 IT Pros & Developers. It's quick & easy.

py2exe and Pmw

P: n/a

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 to create I've tried
putting, and and 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 "", line 21, in ?
File "Pmw\__init__.pyc", line 28, in ?
WindowsError: [Errno 3] The system cannot find the path specified:

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 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 = [""],


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***********

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
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.