py2exe

Problem with loading win32file.pyd on python 2.6

I can't make py2exe to pack correctly even a simple script that uses win32file I'm constantly getting the following error message: Traceback (most recent call last): File "dependency_checker.py", line 1, in <module> File "win32file.pyc", line 12, in <module> File "win32file.pyc", line 10, in __load ImportError: DLL load failed: Th...

Making a portable (exe) with Python 3.1?

Is there a way to make a portable/stand-alone exe for python apps? I've read about p2exe but it doesn't support the latest version. I'm reluctant to go to 2.6 because I'd rather stay with the latest version instead of worrying about incompatibilities as soon as 2.6 becomes too outdated. ...

py2exe and the file system

I have a Python app. It loads config files (and various other files) by doing stuff such as: _path = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) CONFIG_DIR = os.path.join(_path, 'conf') This works fine. However, when I package the app with py2exe, bad things happen: File "proj\config.pyc", line 8, in <module> Window...

Python distutils - copy_tree with filter

I want to copy a data directory into my distribution dir. copy_tree does this just fine. However, the project is also an svn repository, and I don't want the distribution to have all the .svn files that the data dir has. Is there any easy way to do a copy_tree excluding the .svn files, or should I just write my own recursive dir copy? I ...

py2exe'd version of GTK app can't read png files

I'm working on making a py2exe version of my app. Py2exe fails at copying some modules in. My original app loads .png files fine, but the exe version does not: Traceback (most recent call last): File "app.py", line 1, in <module> from gui.main import run File "gui\main.pyc", line 14, in <module> File "gui\controllers.pyc", li...

Bundle additional executables with py2exe

I have a python script that calls out to two Sysinternals tools (sigcheck and accesschk). Is there a way I can bundle these executables into a py2exe so that subprocess.Popen can see it when it runs? Full explanation: My script is made to execute over a network share (S:\share\my_script.exe) and it makes hundreds of calls to sigcheck ...

When using py2exe, PyQt application cannot load SQlite database

My PyQt application works fine when running on Linux, when in my Windows build environment, or frozen on the machine where it was build with py2exe. But after moving the frozen executable and its supporting files to another machine it can't load the database driver. It worked fine when I had Python2.5 and an earlier version of PyQt and ...

Making a Windows .exe with gui2exe does not work because of missing MSVCP90.dll

I'm trying to compile my python script into a single .exe using gui2exe (which uses py2exe to create a .exe). My program is using wxWidgets and everytime I try to compile it I get the following error message: error MSVCP90.dll: No such file or directory. I have already downloaded and installed the VC++ redistributable package, so ...

pygtk + py2exe + Inno Setup -> icon for shortcut

When I do the following in my setup file, windows=[ { 'script': 'gulhane.py', 'icon_resources': [(1, "icon.ico")] } ], Python crashes and I am unable to run the script using python setup.py py2exe. So, I do not use the icon_resources field in "windows" but I add the file in the form of a data_file, data_files=[ ('gui', [ 'gui/icon.i...

how to reduce size of exe using py2exe

I developed a small program using python and wxwidgets. It is a very simple program that uses only a mini frame to display some information when needed, and the rest of the time it shows nothing, only an icon in the taskbar. When I build the exe using py2exe (single file exe mode, optimized), I get a 6Mo size file! I tried not includin...

Python Service Custom Command Arguments

I am currently working on a python program which runs as a windows service using win32service and win32serviceutil. The service runs as it should and even after using py2exe, everything is fine (the service monitors target folder(s) and autmotically FTP's newly created files to specified FTP location). I would like, however, to add some ...

Can Django be used with py2exe?

We'd like to create a Django Intranet application for mass market. We only need to support Windows users, and it needs to be very easy for a Windows admin (or "technical user") to deploy (baring in mind that most Windows admins/users have little experience with Python, etc). Is Django + py2exe the answer? Do we need something extra, or ...

Are there any alternatives to py2exe?

Are there any alternatives to py2exe? ...

python app to exe not working on WinSRV2003

Hi, I created little app for sending out emails when something is wrong with server. Used py2exe to create exe file. While it is works absolutely fine on Win7 i have problems with running it on WinSRV2003. I do not believe that it has something to do with code itself. Please see imports below import pyodbc, sys, smtplib, os from dat...

Any python "compiler" that can statically link the python2x.dll dependency?

It's my understanding that py2exe can only dynamically link a python2x.dll file. Are there any Python "compilers" out there that can package it all into one standalone .exe file for easier portability? If so or if not, which is the best compiler z0mg! ...

Building executables for Python 3 and PyQt

Hi all. I built a rather simple application in Python 3.1 using PyQt4. Being done, I want the application to be distributed to computers without either of those installed. I almost exclusively care about Windows platforms, so my goal is to have a single executable file and maybe some resource files and .dlls in the end. Having searche...

reactor.iterate seems to block a program with Py2exe

I'm currently using an application in python which works quite well but when I'm converting it with py2exe, the application seems to be suspended at the first "reactor.iterate" Each time I press Ctrl+C to stop the application, the error is always the same and the application seems to be bloqued on a "reactor.iterate(4)" This problem ne...

py2exe and email libs again

Following imports: import pyodbc, sys, smtplib, os from datetime import date from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from email.mime.base import MIMEBase import email.iterators import email.generator from email import Encoders Works ok when creating exe with py2exe in Python2.6 but does not ...

Python Windows Service Problems - Works when using debug argument but not while started as a service?

Hello all, hopefully someone here can shed some light on my issue :D I've been creating a Windows XP service in python that is designed to monitor/repair selected Windows/Application/Service settings, atm I have been focusing on default DCOM settings. The idea is to backup our default configuration within another registry key for refer...

using ll.xist with py2exe

I am trying to package my python program using py2exe. The python program uses ll.xist package which is great for generating HTML files. However, seems I am not able to make it work with py2exe. I am always getting the error: no module named ll.xist. Anybody can help? Many thanks in advance! ...