py2exe and Pmw

D

David Vaughan

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
Windows.)

-----------------------

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

setup(
version = "2.1",
description = "Creates default file structures for new
projects/tenders",
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:
http://starship.python.net/crew/theller/py2exe/
http://www.python.org/doc/current/dist/
http://www.free2code.net/tutorials/programming/python/13/py2exe.php
http://starship.python.net/crew/theller/moin.cgi/Py2Exe
http://66.102.9.104/search?q=cache:H4sq6tjugqkJ:aspn.activestate.com/ASP
N/Mail/Message/py2exe-users/2165190+py2exe+pmw+&hl=en

-----------------------

Thanks in advance for any help.
David


David Vaughan
GIFFORD AND PARTNERS LTD
Carlton House, Ringwood Road, Woodlands,
Southampton, SO40 7HT, UNITED KINGDOM

Tel: +44 (0)23 8081 7500 Fax: +44 (0)23 8081 7600
Email: (e-mail address removed)
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top