Hello,
I am not too familiar with pkg_resources, but I do know it's preventing my
conversion to an .exe. My program actually uses a package
(http://pypi.python.org/pypi/pycopia-SMI/1.0a2) that requires disutils and
pkg_resources to install.
I read somewhere that py2exe does not support this, but there might be a
hack?
Thanks in advance,
Patty

My *.py script runs ok in IDLE 2.4.4, but my *.exe file has a "parser
error"..
During the py2exe conversion process, I can see there is a line saying
"module missing" error. I am missing four modules.
Why does my script work in IDLE (even with the missing modules in my
directories), but not my *.exe ? How do I get my *.exe file working ?
Thanks,
Will

Hi all,
I have a working setup of PyQt4 and Mysql compiled using MingW.
I created an exe file using py2exe successfully.When I try to run it on a
fresh windows machine the program errors out with.
-- Database Error: Driver not loaded
I tried to copy qsqlmysql4.dll and qsqlmysqld4.dll to the "dist" directory
without any success.
Anyone have a working setup.py script for copying all the dlls ?
How can I get MySQL driver to load?
--
Thanks in advance.
--
Regards,
Anil K Thankappan
Ph: 03 5995 3328
Mob: 0432 346 513anilet@ <anilet@...>gmail.com
Visit our website :gallery.phoenixitsolutions.com.au

I built py2exe using "Windows SDK v6.1". Executing "python setup.py install" did
the trick for me without jumping through any hoops. However, when I tried
executing a generated EXE file on a machine without VC9 runtime installed, it
gave me following error:
This application has failed to start because the application configuration is
incorrect. Reinstalling the application may fix this problem.
It seems to be the problem with the manifest embedded in the executable. Copying
over the VC9 runtime dlls in the same folder did not work.
Please let me know if anybody gets an executable which does not require
installation of VC9 runtime (which requires Admin privileges). For the time
being I am back to Python 2.5 for my exe needs.
Regards,
Suraj

Hey everyone:
I am using py2exe and everything is working fine except one module,
ClientCookie, found here:
http://wwwsearch.sourceforge.net/ClientCookie/
Keeps coming up as not found no matter what I do. I have tried all
these combinations from the command line:
python run.py py2exe - Results in "following modules appear to be
missing" [ClientCookie]
python run.py py2exe -p ClientCookie - Results in "No module named
ClientCookie"
python run.py py2exe -i ClientCookie - Results in "No module named
ClientCookie"
Ok, so that wasn't the problem I guess so now I try two different
combinations of the run.py file... they look like this:
#!/usr/bin/env python
from distutils.core import setup
import py2exe
#setup(windows=['C:\\exe\\new_pound.py']);
setup(windows=[{"script" : "C:\\exe\\pos_final2.py"}],
options={"py2exe" : {"includes" : ["sip"]}})
^this just gives me the standard "following modules appear to be
missing" [ClientCookie]
#!/usr/bin/env python
from distutils.core import setup
import py2exe
#setup(windows=['C:\\exe\\new_pound.py']);
setup(windows=[{"script" : "C:\\exe\\pos_final2.py"}],
options={"py2exe" : {"includes" : ["sip", "ClientCookie"]}})
^this gives the error "No module named ClientCookie
Ok so I am really in a crunch and have no idea what to do. Any help
would be GREATLY appreciated.
Vince
P.S. I know ClientCookie is a branch of mechanize, but I don't
understand how it runs fine on my machine using import ClientCookie
and then when using py2exe it doesn't find it. I have tried from
mechanize import ClientCookie and many alternatives but none of those
work on importing the ClientCookie module normally without py2exe.
I have also tried this setup file:
setup(windows=["C:\\exe\\pos_final2.py"],
...
options={'py2exe': {
'packages': ['ClientCookie',]
})
If anyone could help that would be great, I am really lost you guys. Thank
you.

Hi,
I use py2exe extensively. I'm not in a position right now to contribute with
time and work, but I'd love to be able to make a small donation to support
the hard work of Jimmy, Mark, and Thomas (and anyone else that the wiki page
doesn't mention). Is there a 'known' way to do that? I hope this is not an
inappropriate (or already answered) question.
Thanks again you guys for the incredible work you do with this. It gets our
vote as the single most useful 3rd party library for python!
Henry

________________________________
From: "py2exe-users-request@..." <py2exe-users-request@...>
To: py2exe-users@...
Sent: Friday, October 17, 2008 3:29:12 PM
Subject: Py2exe-users Digest, Vol 29, Issue 6
Send Py2exe-users mailing list submissions to
py2exe-users@...
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.sourceforge.net/lists/listinfo/py2exe-users
or, via email, send a message with subject or body 'help' to
py2exe-users-request@...
You can reach the person managing the list at
py2exe-users-owner@...
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Py2exe-users digest..."
Today's Topics:
1. Error in python.exe during setup and other stuff (Timo)
2. Re: Error in python.exe during setup and other stuff (Larry Bates)
3. Re: Running a program in console mode and see stdout/stderr
(Fr?d?ric)
4. Problem with py2exe generated exe (Srinivasa NL)
5. Re: Py2exe for Python 2.6? (Chris Spencer)
6. library.zip (Fr?d?ric)
7. library.zip (Fr?d?ric)
8. library.zip (Fr?d?ric)
9. Re: Problem with py2exe generated exe (Larry Bates)
----------------------------------------------------------------------
Message: 1
Date: Thu, 16 Oct 2008 18:05:12 +0200
From: Timo <timovwb@...>
Subject: [Py2exe-users] Error in python.exe during setup and other
stuff
To: py2exe-users@...
Message-ID: <48f76638.04ba420a.1a1d.65b5@...>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Hello, I get the typical windows error box when executing 'python
setup.py py2exe'. It happens on this line:
copying C:\Python25\lib\site-packages\py2exe\run_w.exe ->
C:\myappdir\dist\myapp.exe
It is a PyGTK program, after copying needed GTK files/folders to the
dist folder, the program seems to work, but what does it give me that error?
Also, is there a way to disable the message that there was something
written to the log? I use a progress bar, it needs a number between 0
and 1, but sometimes it can get a number that is just a little higher
then 1 (which doesn't really matter), and when I quit the application I
get the log-box. It's just a warning that can be ignored.
GtkWarning: gtk_progress_set_percentage: assertion `percentage >= 0 &&
percentage <= 1.0' failed
Last thing, probably nothing to do with py2exe, but maybe someone has a
solution. When I make an installer with inno setup, and run the program,
nothing happens and this is what's in the logfile:
RuntimeError: could not create GladeXML object
Although everything is there I think (and everything works before
creating the installer).
Timo
------------------------------
Message: 2
Date: Thu, 16 Oct 2008 12:04:50 -0500
From: Larry Bates <larry.bates@...>
Subject: Re: [Py2exe-users] Error in python.exe during setup and other
stuff
To: py2exe-users@...
Message-ID: <gd7s7m$uf6$1@...>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Timo wrote:
> Hello, I get the typical windows error box when executing 'python
> setup.py py2exe'. It happens on this line:
> copying C:\Python25\lib\site-packages\py2exe\run_w.exe ->
> C:\myappdir\dist\myapp.exe
>
> It is a PyGTK program, after copying needed GTK files/folders to the
> dist folder, the program seems to work, but what does it give me that error?
>
>
> Also, is there a way to disable the message that there was something
> written to the log? I use a progress bar, it needs a number between 0
> and 1, but sometimes it can get a number that is just a little higher
> then 1 (which doesn't really matter), and when I quit the application I
> get the log-box. It's just a warning that can be ignored.
> GtkWarning: gtk_progress_set_percentage: assertion `percentage >= 0 &&
> percentage <= 1.0' failed
>
>
> Last thing, probably nothing to do with py2exe, but maybe someone has a
> solution. When I make an installer with inno setup, and run the program,
> nothing happens and this is what's in the logfile:
> RuntimeError: could not create GladeXML object
> Although everything is there I think (and everything works before
> creating the installer).
>
>
> Timo
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
Can you share with all of us what the windows error box actually says? Then
perhaps we can offer up a suggestion.
Don't pass the progress bar a number > 1.0. Pass it something like:
max(val, 1.0) to limit it in case it gets 'just a little higher than 1'.
-Larry
------------------------------
Message: 3
Date: Thu, 16 Oct 2008 19:07:42 +0200
From: Fr?d?ric <frederic.mantegazza@...>
Subject: Re: [Py2exe-users] Running a program in console mode and see
stdout/stderr
To: py2exe-users@...
Message-ID: <200810161907.42861.frederic.mantegazza@...>
Content-Type: text/plain; charset="iso-8859-15"
On jeudi 16 octobre 2008, Larry Bates wrote:
> For console= programs stdout IS the console window. ?You must have
> something else going on in your code.You need to trim down to a
> minimal working example and post some code for us to review.
>
> Take a look at logger module and log to a file, that is probably what
> you want long-term anyway for a program like what you describe.
In fact, I am using the logging module. And I found the problem: as I also
have windows scripts, I removed the stream handler when the app is
frozen :o/
Sorry for the noise.
--
Fr?d?ric
http://www.gbiloba.org
------------------------------
Message: 4
Date: Fri, 17 Oct 2008 09:53:16 +0530
From: "Srinivasa NL" <nl.srinivas@...>
Subject: [Py2exe-users] Problem with py2exe generated exe
To: py2exe-users@...
Message-ID:
<8b85ec440810162123y22f7794bp7ca5b01e3bb87cff@...>
Content-Type: text/plain; charset="iso-8859-1"
Hi,
I am having problem running exe generated from py2exe. I compiled a script
which prints a line(e.g print 'Hello World') and created an exe from it.
When I do not give any option either in the setup.py script or the command
line (python setup.py py2exe) and create the exe and run (in the dist
directory) I get the error
LoadLibrary(pythondll) failedInvalid access to memory location.
E:\programming\python\dist\PYTHON25.DLL
But when I give --bundle-files 1 the exe runs correctly.
I also noticed that, in the beginning of test script, when I print the
sys.path it just shows
..\dist\library.zip (the dots before dist just indicate
some path. not the actual output)
on my PC.
On other PCs where the exe runs correctly I see
[..\dist , ..\dis\library.zip]
Has my problem got something to do with sys.path? And why is it that
sys.path is not an extention of the ennvironment variable "PATH"?
Thanks
Srini
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
Message: 5
Date: Fri, 17 Oct 2008 03:30:59 -0400
From: Chris Spencer <cspencer@...>
Subject: Re: [Py2exe-users] Py2exe for Python 2.6?
To: mhammond@...
Cc: py2exe-users@...
Message-ID: <rdfgf4thp31cbqre433b5ahsb2q04af883@...>
Content-Type: text/plain; charset=us-ascii
I guess I have to ask the question...
WHY isn't there a binary distribution for py2exe for 2.6? It can't be
that hard to compile it up and post it on sourceforge...
I realize this is all volunteer work. I get that. But if you have
the development environment already on your system, then why not do
the "setup.py install" and upload it to sourceforge?
Will every py2exe user be expected to download VS2008, an SVN client,
and have the expertise to navigate the myriad dependency problems
involved in getting the compile to work? (As in mt.exe and rt.exe from
a platform SDK?)
I will do all that if I have to. But yeesh...why not just spend the
10 minutes to do it ONCE and then thousands of people can take
advantage of it.
Yet we get a simple "No." Why "No."?
Chris.
On Tue, 9 Sep 2008 09:12:37 +1000, "Mark Hammond"
<mhammond@...> wrote:
>> Does the current py2exe source support Python 2.6?
>
>Yes.
>
>> If so, is a pre-compiled version of py2exe available that I could try
>> with Python 2.6?
>
>No.
>
>>
>> Alternatively, where can I find instructions for building py2exe from
>> source?
>
>Maybe on the wiki? The short story is to make sure you have VS2008, then
>just run 'setup.py install' from the root of the py2exe tree.
>
>Cheers,
>
>Mark
>
>
>-------------------------------------------------------------------------
>This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>Build the coolest Linux based applications with Moblin SDK & win great prizes
>Grand prize is a trip for two to an Open Source event anywhere in the world
>http://moblin-contest.org/redirect.php?banner_id=100&url=/
>_______________________________________________
>Py2exe-users mailing list
>Py2exe-users@...
>https://lists.sourceforge.net/lists/listinfo/py2exe-users
------------------------------
Message: 6
Date: Fri, 17 Oct 2008 10:14:50 +0100
From: Fr?d?ric <frederic.mantegazza@...>
Subject: [Py2exe-users] library.zip
To: py2exe-users@...
Message-ID: <ZBraaAse.1224234890.1090200.fma@...>
Content-Type: text/plain; charset=ISO-8859-1
Is there a way to open the content of the library.zip file under windows?
I can only list it under linux...
--
Fr?d?ric
------------------------------
Message: 7
Date: Fri, 17 Oct 2008 10:14:50 +0100
From: Fr?d?ric <frederic.mantegazza@...>
Subject: [Py2exe-users] library.zip
To: py2exe-users@...
Message-ID: <ZBraaAse.1224234890.1090200.fma@...>
Content-Type: text/plain; charset=ISO-8859-1
Is there a way to open the content of the library.zip file under windows?
I can only list it under linux...
--
Fr?d?ric
------------------------------
Message: 8
Date: Fri, 17 Oct 2008 10:14:50 +0100
From: Fr?d?ric <frederic.mantegazza@...>
Subject: [Py2exe-users] library.zip
To: py2exe-users@...
Message-ID: <ZBraaAse.1224234890.1090200.fma@...>
Content-Type: text/plain; charset=ISO-8859-1
Is there a way to open the content of the library.zip file under windows?
I can only list it under linux...
--
Fr?d?ric
------------------------------
Message: 9
Date: Fri, 17 Oct 2008 08:28:34 -0500
From: Larry Bates <larry.bates@...>
Subject: Re: [Py2exe-users] Problem with py2exe generated exe
To: py2exe-users@...
Message-ID: <gda3u8$loi$1@...>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Srinivasa NL wrote:
> Hi,
> I am having problem running exe generated from py2exe. I compiled a
> script which prints a line(e.g print 'Hello World') and created an exe
> from it. When I do not give any option either in the setup.py script or
> the command line (python setup.py py2exe) and create the exe and run (in
> the dist directory) I get the error
>
> LoadLibrary(pythondll) failedInvalid access to memory location.
> E:\programming\python\dist\PYTHON25.DLL
>
> But when I give --bundle-files 1 the exe runs correctly.
>
> I also noticed that, in the beginning of test script, when I print the
> sys.path it just shows
>
> ..\dist\library.zip (the dots before dist just
> indicate some path. not the actual output)
> on my PC.
>
> On other PCs where the exe runs correctly I see
>
> [..\dist , ..\dis\library.zip]
>
> Has my problem got something to do with sys.path? And why is it that
> sys.path is not an extention of the ennvironment variable "PATH"?
> Thanks
> Srini
>
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Py2exe-users mailing list
> Py2exe-users@...
> https://lists.sourceforge.net/lists/listinfo/py2exe-users
IMHO more likely a hardware memory error on this machine. The error
"Invalid access to memory location" normally is a hardware not a software error.
-Larry
------------------------------
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
------------------------------
_______________________________________________
Py2exe-users mailing list
Py2exe-users@...
https://lists.sourceforge.net/lists/listinfo/py2exe-users
End of Py2exe-users Digest, Vol 29, Issue 6
*******************************************

[Please keep replies on list]
I suspect you aren't specifying 'includes' correctly - if you specify a module py2exe can't find, you get an exception.
eg, look at the 'samples/simple/setup.py' sample - you need to specify includes like:
"""
py2exe_options = {'includes' : ['foopy']}
setup(
# The first three parameters are not required, if at least a
# 'version' is given, then a versioninfo resource is built from
# them and added to the executables.
version = "0.5.0",
description = "py2exe sample script",
name = "py2exe samples",
# targets to build
windows = ["test_wx.py"],
console = ["hello.py"],
options = {'py2exe' : py2exe_options},
)
"""
If you run that, you will get an ImportError that 'foopy' doesn't exist. If you *are* specifying includes correctly and py2exe doesn't fail, it means py2exe is finding some other module for _xyz rather than the one you expect - check the py2exe output for details.
Mark
From: - [mailto:midorimiso@...]
Sent: Tuesday, 21 October 2008 8:05 PM
To: mhammond@...
Subject: RE: [Py2exe-users] Including pyd/dlls in build process
Well, my problem is that py2exe is not including/copying the .pyd file even with an explicit include.
My directory structure is as such: appdir/moduledir/_xyz.pyd
and the code that imports and references _xyz.pyd directly is also within moduledir. Is there a trick to this or do I have to write a function to copy the required files across?
Thanks for the help,
-sy
--- On Tue, 21/10/08, Mark Hammond <mhammond@...> wrote:
From: Mark Hammond <mhammond@...>
Subject: RE: [Py2exe-users] Including pyd/dlls in build process
To: midorimiso@..., py2exe-users@...
Received: Tuesday, 21 October, 2008, 5:45 PM
py2exe treats a .pyd
file more as a module than a DLL - thus, normal
'includes' and 'excludes' should do the trick. If the DLL is
used by the missing .pyd file, simply including the missing .pyd should cause
py2exe to see the .dll file.
Mark
----
From: - [mailto:midorimiso@...]
Sent: Tuesday, 21 October 2008 3:43 PM
To: py2exe-users@...
Subject: [Py2exe-users] Including pyd/dlls in build process
One of the modules for my app uses functions from a .pyd file. There's an
option to exclude dlls (exclude_dlls) but is there one for including them? The
build process doesn't seem to be copying the .pyd in my module despite
copying the rest of the files (.py). I also need to include a .dll. How do I
get py2exe to include both .pyd and .dll files?
Thanks,
-sy
Send instant messages to your online friends http://au.messenger.yahoo.com
Send instant messages to your online friends http://au.messenger.yahoo.com

> I'm not sure at all, if I'm really just kicking up dirt here, but could it
be
> DEP settings (set in Windows or BIOS) on that machine, that are giving you
> this trouble ?
> DEP is Data Execution Prevention - I've had to turn it off on certain
> machines, to run a single-file executable
I'd be very interested in a simple test case that demonstrates this - I'd
love to put a nail in the coffin of that problem (my few attempts to
re-create the problem locally have failed, and have DEP enabled)
Mark

Hi All,
I am happy to announce the release of GUI2Exe 0.2 :-D
I apologize for the huge cross-posting, I just wanted to let py2exe,
py2app, PyInstaller, cx_Freeze and bbFreeze users aware of the
existence of GUI2Exe, but from now on the announcements will go to the
GUI2Exe mailing list only to avoid cluttering of the various mailing
lists.
First of all, I would like to thank Cody Precord for the huge work he
has done and for the nice suggestions he has given to me, and the
wxPython mailing list users for tips on how to improve the general
usability of GUI2Exe.
What is it?
===========
GUI2Exe is a Graphical User Interface frontend to all the "executable builders"
available for the Python programming language. It can be used to build
standalone
Windows executables, Linux applications and Mac OS application bundles and
plugins starting from Python scripts.
GUI2Exe is (my) first attempt to unify all the available "executable builders"
for Python in a single and simple to use graphical user interface.
GUI2Exe supports the following compilers:
* py2exe (Windows)
* py2app (Mac OS)
* PyInstaller (all platforms)
* cx_Freeze (Windows and Linux)
* bbFreeze (Windows and Linux)
Requirements
============
GUI2Exe is distributed as Python source code, and it requires:
* Python 2.3+ ;
* wxPython 2.8.7+ ansi/unicode (unicode recommended);
* One (or more) of the Python executable builders.
Features
========
GUI2Exe has a number of features, namely:
* Saves and stores your work in a database, displaying all your projects in a
tree control;
* Possibility to export the Setup.py file, even though you shouldn't ever need
anymore to have a Setup.py file, as everything is done automagically inside
GUI2Exe;
* Ability to change the Python version to use to build the executable;
* Allows the user to insert custom Python code in the "in-memory" Setup.py
file, which will be properly included at runtime during the building process;
* Allows the user to add post-processing custom code, which will be executed
at the end of the building process. Useful for cleaning up;
* Possibility to view the full build output coming from the compiler;
* Allows the user to add data_files (for the executable builders that support
this option) either by selecting a bunch of files all together or using a
directory-recursive approach, which will include all files and sub-folders
in the selected folders as data_files;
* "Super" tooltips for the users to better understand the various options;
* GUI2Exe projects can be saved also to a file (and not only in the database):
the exported project may then be checked into version control software like
CVS or SVN, modified and then reloaded into GUI2Exe;
* Ability to test the executable: if the executable crashes, GUI2Exe will
notice it and report to you the traceback for inspection;
* [py2exe-only]: After a building process, choosing the menu Builds => Missing
modules or Builds => Binary dependencies, you will be presented respectively
with a list of modules py2exe thinks are missing or a list of binary
dependencies (dlls) py2exe has found.
And much more :-D
Project information
===================
Project home page & downloads:
http://code.google.com/p/gui2exe
Bleeding edge SVN repository (out of sync at the moment, please use the zip
file in the download section of the home page for the moment):
svn checkout http://gui2exe.googlecode.com/svn/trunk/ gui2exe-read-only
Project mailing list:
http://groups.google.com/group/gui2exe
Help translating GUI2Exe in your language!
https://launchpad.net/gui2exe
Please report bugs, success stories ( :-D ) and requests of
improvements to the GUI2Exe mailing list:
http://groups.google.com/group/gui2exe
Or use the google-Trac issues handler here:
http://code.google.com/p/gui2exe/issues/list
Happy Python hacking :-D
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/

I'm not sure at all, if I'm really just kicking up dirt here, but could it be DEP settings (set in Windows or BIOS) on that machine, that are giving you this trouble ?
DEP is Data Execution Prevention - I've had to turn it off on certain machines, to run a single-file executable
- Just a thought
Dennis
>>> "Srinivasa NL" <nl.srinivas@...> 21-10-2008 10:31 >>>
Hi,
If it is a hardware failure, I guess, I should get this error with other applications also.
Can anybody throw some ligth on this or can give a lead to debug this issue?
Thanks,
Srinivas.
On Fri, Oct 17, 2008 at 6:58 PM, Larry Bates <larry.bates@...> wrote:
Srinivasa NL wrote:
> Hi,
> I am having problem running exe generated from py2exe. I compiled a
> script which prints a line(e.g print 'Hello World') and created an exe
> from it. When I do not give any option either in the setup.py script or
> the command line (python setup.py py2exe) and create the exe and run (in
> the dist directory) I get the error
>
> LoadLibrary(pythondll) failedInvalid access to memory location.
> E:\programming\python\dist\PYTHON25.DLL
>
> But when I give --bundle-files 1 the exe runs correctly.
>
> I also noticed that, in the beginning of test script, when I print the
> sys.path it just shows
>
> ..\dist\library.zip (the dots before dist just
> indicate some path. not the actual output)
> on my PC.
>
> On other PCs where the exe runs correctly I see
>
> [..\dist , ..\dis\library.zip]
>
> Has my problem got something to do with sys.path? And why is it that
> sys.path is not an extention of the ennvironment variable "PATH"?
> Thanks
> Srini
>
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Py2exe-users mailing list
> Py2exe-users@...
> https://lists.sourceforge.net/lists/listinfo/py2exe-users
IMHO more likely a hardware memory error on this machine. The error
"Invalid access to memory location" normally is a hardware not a software error.
-Larry
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Py2exe-users mailing list
Py2exe-users@...
https://lists.sourceforge.net/lists/listinfo/py2exe-users

py2exe treats a .pyd file more as a module than a DLL - thus, normal 'includes' and 'excludes' should do the trick. If the DLL is used by the missing .pyd file, simply including the missing .pyd should cause py2exe to see the .dll file.
Mark
----
From: - [mailto:midorimiso@...]
Sent: Tuesday, 21 October 2008 3:43 PM
To: py2exe-users@...
Subject: [Py2exe-users] Including pyd/dlls in build process
One of the modules for my app uses functions from a .pyd file. There's an option to exclude dlls (exclude_dlls) but is there one for including them? The build process doesn't seem to be copying the .pyd in my module despite copying the rest of the files (.py). I also need to include a .dll. How do I get py2exe to include both .pyd and .dll files?
Thanks,
-sy
Send instant messages to your online friends http://au.messenger.yahoo.com

> I guess I have to ask the question...
>
> WHY isn't there a binary distribution for py2exe for 2.6? It can't be
> that hard to compile it up and post it on sourceforge...
>
> I realize this is all volunteer work. I get that. But if you have
> the development environment already on your system, then why not do
> the "setup.py install" and upload it to sourceforge?
>
> Will every py2exe user be expected to download VS2008, an SVN client,
> and have the expertise to navigate the myriad dependency problems
> involved in getting the compile to work? (As in mt.exe and rt.exe from
> a platform SDK?)
>
> I will do all that if I have to. But yeesh...why not just spend the
> 10 minutes to do it ONCE and then thousands of people can take
> advantage of it.
>
> Yet we get a simple "No." Why "No."?
I'll ignore the fact that instead of asking your question succinctly and
politely, you instead used 6 paragraphs to berate "us" for not making timely
enough reasons, and I'll answer the best I can.
Jimmy is the official maintainer of py2exe. He keeps an eye on bugs and
patches which are outstanding and new checkins which may warrant additional
testing. He has a release process which is *not* trivial and I'm not
personally familiar with it. Whatever I may happen to create on my PC on
any given day is *not* a release of py2exe - its just a snapshot I made
without any care or consideration of the issues Jimmy takes into account.
Jimmy seems quite busy these days - I'm sure he'd welcome assitance with
these tasks, and I'm sure any number of us would be happy to "turn the
crank" to generate the release executables if requested by the/a maintainer
- in other words, the lack of tools on your PC is no barrier to helping out
instead of just complaining.
Mark
>
> Chris.
>
> On Tue, 9 Sep 2008 09:12:37 +1000, "Mark Hammond"
> <mhammond@...> wrote:
>
> >> Does the current py2exe source support Python 2.6?
> >
> >Yes.
> >
> >> If so, is a pre-compiled version of py2exe available that I could
> try
> >> with Python 2.6?
> >
> >No.
> >
> >>
> >> Alternatively, where can I find instructions for building py2exe
> from
> >> source?
> >
> >Maybe on the wiki? The short story is to make sure you have VS2008,
> then
> >just run 'setup.py install' from the root of the py2exe tree.
> >
> >Cheers,
> >
> >Mark
> >
> >
> >----------------------------------------------------------------------
> ---
> >This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> >Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> >Grand prize is a trip for two to an Open Source event anywhere in the
> world
> >http://moblin-contest.org/redirect.php?banner_id=100&url=/
> >_______________________________________________
> >Py2exe-users mailing list
> >Py2exe-users@...
> >https://lists.sourceforge.net/lists/listinfo/py2exe-users

I was responding to a previous exchange on py2exe 2.6 where the
polite, succinct question was answered with a terse, impolite "No."
with no other qualifying remarks.
If I seem rude, it's because I was responding to a rude post.
Chris.
On Tue, 21 Oct 2008 15:44:42 +1100, "Mark Hammond"
<mhammond@...> wrote:
>> I guess I have to ask the question...
>>
>> WHY isn't there a binary distribution for py2exe for 2.6? It can't be
>> that hard to compile it up and post it on sourceforge...
>>
>> I realize this is all volunteer work. I get that. But if you have
>> the development environment already on your system, then why not do
>> the "setup.py install" and upload it to sourceforge?
>>
>> Will every py2exe user be expected to download VS2008, an SVN client,
>> and have the expertise to navigate the myriad dependency problems
>> involved in getting the compile to work? (As in mt.exe and rt.exe from
>> a platform SDK?)
>>
>> I will do all that if I have to. But yeesh...why not just spend the
>> 10 minutes to do it ONCE and then thousands of people can take
>> advantage of it.
>>
>> Yet we get a simple "No." Why "No."?
>
>I'll ignore the fact that instead of asking your question succinctly and
>politely, you instead used 6 paragraphs to berate "us" for not making timely
>enough reasons, and I'll answer the best I can.
>
>Jimmy is the official maintainer of py2exe. He keeps an eye on bugs and
>patches which are outstanding and new checkins which may warrant additional
>testing. He has a release process which is *not* trivial and I'm not
>personally familiar with it. Whatever I may happen to create on my PC on
>any given day is *not* a release of py2exe - its just a snapshot I made
>without any care or consideration of the issues Jimmy takes into account.
>
>Jimmy seems quite busy these days - I'm sure he'd welcome assitance with
>these tasks, and I'm sure any number of us would be happy to "turn the
>crank" to generate the release executables if requested by the/a maintainer
>- in other words, the lack of tools on your PC is no barrier to helping out
>instead of just complaining.
>
>Mark
>
>>
>> Chris.
>>
>> On Tue, 9 Sep 2008 09:12:37 +1000, "Mark Hammond"
>> <mhammond@...> wrote:
>>
>> >> Does the current py2exe source support Python 2.6?
>> >
>> >Yes.
>> >
>> >> If so, is a pre-compiled version of py2exe available that I could
>> try
>> >> with Python 2.6?
>> >
>> >No.
>> >
>> >>
>> >> Alternatively, where can I find instructions for building py2exe
>> from
>> >> source?
>> >
>> >Maybe on the wiki? The short story is to make sure you have VS2008,
>> then
>> >just run 'setup.py install' from the root of the py2exe tree.
>> >
>> >Cheers,
>> >
>> >Mark
>> >
>> >
>> >----------------------------------------------------------------------
>> ---
>> >This SF.Net email is sponsored by the Moblin Your Move Developer's
>> challenge
>> >Build the coolest Linux based applications with Moblin SDK & win great
>> prizes
>> >Grand prize is a trip for two to an Open Source event anywhere in the
>> world
>> >http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> >_______________________________________________
>> >Py2exe-users mailing list
>> >Py2exe-users@...
>> >https://lists.sourceforge.net/lists/listinfo/py2exe-users

One of the modules for my app uses functions from a .pyd file. There's an option to exclude dlls (exclude_dlls) but is there one for including them? The build process doesn't seem to be copying the .pyd in my module despite copying the rest of the files (.py). I also need to include a .dll. How do I get py2exe to include both .pyd and .dll files?
Thanks,
-sy
Send instant messages to your online friends http://au.messenger.yahoo.com

Well, I did all these steps below, including downloading r672 from the
svn tree. Upon running the executable I also got the error message
that the program did not initialize correctly...which the below poster
said r672 fixed.
I am utterly nonplussed at this point. Is py2exe just not being used
with 2.6 right now? Has no one else built py2exe for Python 2.6?
Have the maintainers abandoned py2exe?
I would like to move to 2.6 as a stepping-stone to 3.0, but I
absolutely rely on being able to package together an executable for my
software environment.
Is there an alternative to py2exe if, in fact, it has been abandoned
by its maintainers?
Chris.
On Thu, 11 Sep 2008 11:55:10 -0700, wiser0+py2exe@... wrote:
>Thanks Mark!
>
>I successfully built py2exe for Python 2.6b3 under WinXP. IIRC, the
>following steps were needed:
>
>1) Download and install VS2008 (express version, in my case) and
>Windows SDK V6.1 for Windows Server 2008 (I needed the mt.exe and
>rc.exe utils from the SDK).
>
>2) Used svn to check out r672 of the py2exe source, as the 0.6.8
>release of py2exe that I had did not have a patch that Mark did
>recently to support manifest info. inside the resulting executable.
>
>Without this patch, when I tried to run the final executable, a dialog
>box appeared with words to the effect that the C runtime was being
>initialized incorrectly.
>
>3) run 'python setup.py install' in the py2exe source directory, which
>builds py2exe from source and installs it into the Python 2.6
>distribution.
>
>
>Then, to package up my Python code into a single file, I followed the
>example in the 'Using "bundle_files" and "zipfile"' section of
><http://py2exe.org/index.cgi/SingleFileExecutable&gt;
>
>Thanks so much to all who work (and have worked) on py2exe!
>
>- Randy
>
>-------------------------------------------------------------------------
>This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>Build the coolest Linux based applications with Moblin SDK & win great prizes
>Grand prize is a trip for two to an Open Source event anywhere in the world
>http://moblin-contest.org/redirect.php?banner_id=100&url=/
>_______________________________________________
>Py2exe-users mailing list
>Py2exe-users@...
>https://lists.sourceforge.net/lists/listinfo/py2exe-users

Srinivasa NL wrote:
> Hi,
> I am having problem running exe generated from py2exe. I compiled a
> script which prints a line(e.g print 'Hello World') and created an exe
> from it. When I do not give any option either in the setup.py script or
> the command line (python setup.py py2exe) and create the exe and run (in
> the dist directory) I get the error
>
> LoadLibrary(pythondll) failedInvalid access to memory location.
> E:\programming\python\dist\PYTHON25.DLL
>
> But when I give --bundle-files 1 the exe runs correctly.
>
> I also noticed that, in the beginning of test script, when I print the
> sys.path it just shows
>
> ..\dist\library.zip (the dots before dist just
> indicate some path. not the actual output)
> on my PC.
>
> On other PCs where the exe runs correctly I see
>
> [..\dist , ..\dis\library.zip]
>
> Has my problem got something to do with sys.path? And why is it that
> sys.path is not an extention of the ennvironment variable "PATH"?
> Thanks
> Srini
>
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Py2exe-users mailing list
> Py2exe-users@...
> https://lists.sourceforge.net/lists/listinfo/py2exe-users
IMHO more likely a hardware memory error on this machine. The error
"Invalid access to memory location" normally is a hardware not a software error.
-Larry