Try adding the python directory to the PATH variable.
also… locate the cygwin shell executable and just copy the manifest file in its directory and rename it accordingly. maybe it will work.
Peter.
···
On 9/19/07, Craig Douglas craig.douglas@rtkinstruments.com wrote:
Peter Damoc <pdamoc gmail.com> writes:
could be due to the cygwin shell.Have you tried launching the .py or .pyw
files with the regular cmd.exe?The manifest file is the same as mine.After you
obtain the .exe file rename the manifest in the directory of the exe file to
be something like:
name_of_exe_file.exe.manifestor use a setup script like the one attachedwhich embeds the manifest inside the exe. (just change the lines about the
names, launching script and the ico file)Peter– There is NO FATE, we are the creators.
import sys
sys.argv.append(‘py2exe’)
sys.argv.append(‘-b1’)
from distutils.core import setup
import py2exemanifest = “”"
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assemblyIdentity
version=“0.64.1.0”
processorArchitecture=“x86”name="Controls" type="win32"
/>
myProgram
<assemblyIdentitytype="win32" name="Microsoft.Windows.Common-Controls" version="[6.0.0.0](http://6.0.0.0)" processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df" language="*" /> </dependentAssembly>
“”"
setup(
version = “1.0.0”,
description = “BioDynamic Analysis for Breast Implant Selection”,
name = “BioDynamic Analysis”,windows = [{ "script":"biodynamic.py", "icon_resources": [(1, "128x.ico")] , "other_resources": [(24,1,manifest)]
}], options=dict( py2exe=dict( compressed=1, optimize=2, packages=[] ) )
)
Sgnificant step further now! Placing the manifest file in with the compiled
executable with correct name worked. I haven’t tried compiling insid the exe,
but I will be doing so.Now, I never use cmd.exe so I’ve tried right-clicking and selecting run with
python.exe. For the simple example I posted in the original post, it worked,
but for anything slightly more involved, it says "This application has failedto start because pywintypes24.dll was not found. Re-installing the
application may fix this problem.". Now i’ve looked in python24 directory and
it does have pywintypes24.dll there.It normally runs ok through cygwin, albeit with the old style buttons. Am I
missing an environment variable for cmd.exe and i’s an unrelated issue or
could the two issues be linked? Any ideas on how to get the native widgets
when running through cygwin bash as i’ve found this to be a rather convenient,productive design method.
Thanks
Craig
To unsubscribe, e-mail:
wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
–
There is NO FATE, we are the creators.