py2exe

How to add dll's using py2exe?

Hello, I use a c++ dll in python. That dll uses other dlls. I want to know if it's possible to include all the dll's in my .exe using py2exe without calling them directlly. If so, how can I do it? Thanks in advance :) ...

Bundle a Python app as a single file to support add-ons or extensions?

There are several utilities — all with different procedures, limitations, and target operating systems — for getting a Python package and all of its dependencies and turning them into a single binary program that is easy to ship to customers: http://wiki.python.org/moin/Freeze http://www.pyinstaller.org/ http://www.py2exe.org/ http://s...

Py2exe, PyQt4 and Postgre Driver (QPSQL)

Hi, I`m trying to freeze my application using Py2exe. My app uses PyQt4 and it apparently works fine with py2exe. But once I`ve uninstalled PyQt, it shows the following error: QSqlDatabase: QPSQL driver not loaded QSqlDatabase: available drivers: QPSQL7 QPSQL Which doesn't make any sense at all. The driver is available, but I can't us...

Using bundle_files = 1 with py2exe is not working

Hi folks, After some big frustration I did it! I converted my django app to an "exe" one to run as a single standalone app on windows (using cherrypy as a WSGI server) But When I try to to set py2exe's option "bundle_files" to "1" (i.e. bundle the python interpreter Python25.dll inside the generated exe) the generated exe crashes with a...

Important packages and modules not compatible with py2exe?

Are there major/common/important packages that py2exe cannot handle? I am currently studying the possibility of creating a .exe from a Python program that will use Tkinter, some Excel file reading module, NumPy, SciPy and matplotlib: is it realistic to try to achieve this with py2exe? ...

How does py2exe actually -and simply explained- work? :)

Hi folks, I have a c++ app that calls another python one (bundled into an exe with py2exe) So I have 2 apps. So I was wondering: What if my c++ did what py2exe does? i.e. embed the python app in the c++ one. This way I won't depend on py2exe and its configurations nighmares (yes, it has some) Hence my questions: how does py2ex...

Images not loading in QWebview in PyQt4 in py2exe

I have an application that displays some HTML in a QWebview, which references images on the local file system. This works fine directly running the python. When compiling via py2exe, the images no longer load. Google doesn't seem to know the answer, any ideas? ...

Cross-compiling a Python script on Linux into a Windows executable

I have a Python script that I'd like to compile into a Windows executable. Now, py2exe works fine from Windows, but I'd like to be able to run this from Linux. I do have Windows on my development machine, but Linux is my primary dev platform and I'm getting kind of sick of rebooting into Windows just to create the .exe. Any ideas? PS: I...

accessing files after setup.py install

I'm developing a python application and have a question regarding coding it so that it still works after an user has installed it on his or her machine via setup.py install or similar. In one of my files, I use the following: file = "TestParser/View/MainWindow.ui" cwd = os.getcwd() argv_path = os.path.dirname(sys.argv[0]) file_path = o...

Getting py2exe to work

Hello all. I am following the the tutorial at http://www.py2exe.org/index.cgi/Tutorial to figure out how to use py2exe. I get down to step 3 where you are suppose to run the command: python setup.py py2exe I do that and then I get this error: 'python' is not recognized as an internal or external command, operable program or batch fil...

python win32com Causes Program crash

I wrote program to control iTunes by monitoring keystrokes from with pyHooks and then interfaceing with the iTunes COM interface. The program works fine, the only problem I have is when I try to compile it with py2exe. The program always crashes with this traceback: Traceback (most recent call last): File "threading.pyc", line 527, i...

Help with py2exe error...

I'm trying to compile to an exe my script of python, but I'm getting an error that I'm not know how to resolve... my script include this libraries import pyHook import pythoncom import time import win32com.client and the py2exe script is from distutils.core import setup import py2exe import sys sys.argv.append('py2exe') setup( ...

py2exe com dll problem

hi; i'm trying making a com dll in python. but i try register to compiled dll have a error message "run time error r6034" and "could not load python dll" what is the solution this problem ? mycode : setup.py: # This is the distutils script for creating a Python-based com dll # server using ctypes.com. This script should be run like...

Py2exe Directory Structure

I use Py2exe to package a Python application with quite a few dependant packages. While Py2exe works flawlessly the resulting dist/ folder with the executable contains a large number (10-15) of support files (.dll, .pyd, .zip). Ideally I would like to be able to place all of these dependant files in a folder called support/ or lib/ or s...

py2exe not making exe?

I am following the tutorial for py2exe from this site http://www.py2exe.org/index.cgi/Tutorial this is the setup code: from distutils.core import setup import py2exe setup(console=['script.py']) when I type in cmd: python setup.py install I get this: running install running build my script works fine and I even tried it for s...

GTK ComboBox not rendering properly with py2exe

For my sins I am trying to distribute a gtk python application built with py2exe to windows users. I am having a problem whereby any gtk combo box's entries don't get rendered when the list is dropped down. Once you mouse over an item it appears (and when you mouse over an entry other random ones appear). This only happens when the appl...

Failure loading py2exe'd program when including pysvn

I am attempting to run a py2exe'd program (package.py) that includes pysvn. It is failing to run with the following error: Traceback (most recent call last): File "package.py", line 27, in <module> File "zipextimporter.pyc", line 82, in load_module File "pysvn\__init__.pyc", line 99, in <module> File "zipextimporter....

Application is not working under raw system.

Hi, I've an python GUI application, I use pyQt4. I build binary with bbfreeze (before I was using py2exe but it didn't work with email module well). On system where I build this app, everything works properly, but when I install it on raw windows (without all those vc_redist and set of python libraries) binary does not work. Where sh...

Hiding console window of Python GUI app with py2exe

I have a Python program uses Qt (PyQt4 in fact) and when I launch it from its main.py, I get a console window and the GUI window (on Windows, of course). Then I compile my program with py2exe and main.exe is successfully created. However, if I run main.exe (this is what users of program will do) console window of Python still appears an...

py2exe on PIL ImageStat.Stat throws Exception: argument 2 must be ImagingCore, not ImagingCore

I'm trying to create a .exe from a python program using py2exe, but when I run the .exe I get a log file with Exception in thread Thread-1: Traceback (most recent call last): File "threading.pyc", line 532, in __bootstrap_inner File "threading.pyc", line 484, in run File "webcam.py", line 66, in loop File "ImageStat.pyc", line 5...