py2exe and Pmw

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • David Vaughan

    #1

    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__.p yc", line 28, in ?
    WindowsError: [Errno 3] The system cannot find the path specified:
    'C:\\data\\Soft ware\\Python\\n ewproj\\v2_1\\d ist\\library.zi p\\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:

    The official home of the Python Programming Language




    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: David.Vaughan@g ifford.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.
Working...