py2exe

Python py2exe - memory load error

I am creating a medium level application in Python. Everything works well now, and I am trying to make this a windows executable with py2exe. The executable is created fine, but when I try to run it, it fails with the following error. File "zipextimporter.pyo", line 82, in load_module File "ffhandler.pyo", line 33, in ? File "zipe...

python pygame + tkinter + py2exe = Segmentation Fault

Hi all, I have made a pygame application, which I sucessfuly compiled to an exe using the pygame2exe script from pygame website. Now I made a small launcher with startup options for the application, using Tkinter, and everything work smoothly. The problem comes when I try to compile the application to exe, using the same script as abo...

Making Windows executables from Django applications

I am trying to make a Django website be a simple Windows executable. I've been told that py2exe does not work correctly, both due to Django using __import__, and to its attempting to dispatch manage.py in some obscure way. Is that the case? If so, is there an alternative tool that works better, or is there a way to work around the py2...

build python program with extensions using py2exe

I'm having a hard time finding py2exe recipes, especially for cases that require c extensions. The following recipe works fine without the "ext_modules" part. With it I get "NameError: name 'Extension' is not defined. from distutils.core import setup import py2exe import matplotlib import os s = os.popen('svnversion') version = s.r...

Py2exe: Embed static files in library.zip or exe file itself and transparently access them at runtime

Is there a way to have py2exe embed static files (and/or subdirectories of static files) in a library.zip and/or the exe file itself (with zipfile=None) and then transparently access these embedded static files from code at runtime? Thank you, Malcolm ...

Py2exe: Are manifest files and w9xpopen.exe required when compiling a web server without GUI interface?

I'm using Py2exe to compile a CherryPy (3.1) server using Python 2.6 (32-bit) on Windows 7 Pro (64-bit). This server will run without a GUI. Questions: Do I need to be concerned about adding a manifest file for this application if it runs without a GUI? Do I need to include w9xpopen.exe with my exe? So far, my limited testing has i...

PyCrypto with Py2exe

Can you use PyCrypto with py2exe? Can you use any arbitrary library for that matter with py2exe? Thanks, Chris ...

Py2exe: Embed static files in exe file itself and access them

Hi all, I found a solution to add files in library.zip via: Extend py2exe to copy files to the zipfile where pkg_resources can load them. I can access to my file when library.zip is not include the exe. I add a file : text.txt in directory: foo/media in library.zip. And I use this code: import pkg_resources import zipfile from cStrin...

Windows Server cannot execute a py2exe-generated app

A simple python script needs to run on a windows server with no python installed. I used py2exe, which generated a healthy dist subdirectory, with script.exe that runs fine on the local machine. However, when I run it on the server (Windows Server 2003 R2), it produces this: The system cannot execute the specified program. and ERRORL...

Py2exe - win32api.pyc ImportError DLL load failed

I am trying to use py2exe to distribute a python application I have written. Everything seems to go OK, but when I run it on another machine it fails with the following error: Traceback (most recent call last): File "application.py", line 12, in <module> File "win32api.pyc", line 12, in <module> File "win32api.pyc", line 10, in _...

Accessing py2exe program over network in Windows 98 throws ImportErrors

I'm running a py2exe-compiled python program from one server machine on a number of client machines (mapped to a network drive on every machine, say W:). For Windows XP and later machines, have so far had zero problems with Python picking up W:\python23.dll (yes, I'm using Python 2.3.5 for W98 compatibility and all that). It will then ...

Problem while building a PyQt script with py2exe (QtCore)

Hi, I'm trying to make a simple hello-world executable python gui app in windows using pyqt. So I've made the pyqt.py file import sys from PyQt4.QtGui import * app = QApplication(sys.argv) button = QPushButton("Hello World", None) button.show() app.exec_() I tried to use py2exe with the following setup.py script: from py2exe.build_ex...

How to unzip python eggs?

Hi, I'm trying to bundle some egg dependencies when using py2exe and as stated on the py2exe site, it doesn't work with those and I need to unzip them first. I've tried to first run easy_install -m lxml and then easy_install --always-unzip lxml==2.2.2, but it didn't work. Then I tried to set the unzipping behaviour to default by putting ...

multiprocessing problem [pyqt, py2exe]

I am writing a GUI program using PyQt4. There is a button in my main window and by clicking this button. I hope to launch a background process which is an instance of a class derived from processing.Process. class BackgroundTask(processing.Process): def __init__(self, input): processing.Process.__init__(self) ... ...

MemoryLoadError when trying to run py2exe application

I am attempting to bundle up a Python application using py2exe 0.6.9 and Python 2.6.4 on Windows. While the executable runs just fine on the system I used to build it, it fails when I attempt to run it on another system: C:\Documents and Settings\Administrator\Desktop\dist>.\backend.exe install Traceback (most recent call last): File...

py2exe and win32com

Can py2exe create standalone executables even ones requiring the win32com package? I've googled / searched SO to no avail. ...

Process to convert simple Python script into Windows executable

I wrote a script that will help a Windows user in her daily life. I want to simply send her the .exe and not ask her to install python, dlls or have to deal with any additional files. I've read plenty of the stackoverflow entries regarding compiling Python scripts into executable files. I am a bit confused as there are many options but ...

exe generated with py2exe can't find pywinauto

Hi there: I've been trying to pack my app with py2exe. The application works fine but it keeps failing to find/use pywinauto. I been googling but I get nothing, I'm now I'm totally lost... Here's the packing script: from distutils.core import setup setup( windows = ["mainForm.py"], data_files=[ ('', ['mainForm.ui']), ...

pyqt jpeg support not working in bundled form

To enable jpeg support in a PyQT application, you have to manually include the qjpeg4.dll. It works fine when the dll and pyd file are not bundled together in the final exe. For example with py2exe you can do the following : DATA=[('imageformats',['C:\\Python26/Lib/site-packages/PyQt4/plugins/imageformats/qjpeg4.dll'])] setup(console=[{...

py2exe twisted outcoming udp packet

Hi all, I've developed an application for Windows that use wxPython and twisted. The issue is that if I run the app using the Python interpreter everything is OK (I could receive and transmit UDP packets). If I build a py2exe app I can only receive UDP packets. I have no error, the app is responsive but tx packets are not transmitted ...