472,794 Members | 1,804 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,794 software developers and data experts.

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
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
0 2523

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: RJS | last post by:
Hi all, I can't get a py2exe compiled app to run with numarray (numarray-0.5.win32- py2.2). Also wxPythonWIN32-2.3.3.1-Py22 and ActivePython-2.2.1-222. In the sample below, commenting out...
1
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:...
2
by: Stefan Behrens | last post by:
Hi, does anybody know how I can get py2exe to work with wxPython's wxCalendarCtrl? Currently, I have just a "standard" setup.py, and py2exe gives me a syntax error. Do I need to include any...
0
by: Kathleen Kudzma | last post by:
I'm having a problem with py2exe for Python 2.3. I got fixed the Lookuperror no codec search functions registered: can't find encoding by following the instructions on the py2exe page (added...
8
by: Kathleen Kudzma | last post by:
Does anyone know how to resolve the following problem that I'm getting in Python 2.2 and 2.3? PROBLEM: When I try to create a classReader object I get an exception: "SAXReaderNotAvailable: No...
0
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...
6
by: Luc Saffre | last post by:
Hello, I had a strange problem when freezing (using either py2exe or McMillan installer) a script that imports reportlab (which imports PIL (which imports FixTk))). - Python 2.3.3c (also with...
0
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
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...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth

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.