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 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/p.../13/py2exe.php
http://starship.python.net/crew/theller/moin.cgi/Py2Exe
http://66.102.9.104/search?q=cache:H...estate.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: 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
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.