py2exe

py2exe page says it is licensed under GPL, can I still use it in a python project that is not GPL?

This page says that py2exe is GPL licensed (bottom of the page) My concern is that you have to distribute some of the files they generate. I think this would be allowed with LGPL, but not GPL. <--- Please address this in your answer. My final product would not be GPL and will not give out source code. Update: Please see my answer b...

How to build PyQT project?

I have a simple PyQT project. I would like to know how to build it in Windows in such way, that it becomes runnable executable. I don't want to require user to install heavy QT framework for his computer. How to make executable with only necessary parts of QT? ...

Python 3.0.1 Executable Creator

Does anyone know if there's a windows Python executable creator program available now that supports Python 3.0.1? It seems that py2exe and pyInstaller, along with all the rest I've found, still aren't anywhere close to supporting 3.0 or 3.0.1. Any help is greatly appreciated. Edit: I guess I could downgrade the program to an older vers...

Create a standalone windows exe which does not require pythonXX.dll

Hello, is there a way to create a standalone .exe from a python script. Executables generated with py2exe can run only with pythonXX.dll. I'd like to obtain a fully standalone .exe which does not require to install the python runtime library. It looks like a linking problem but using static library instead the dynamic one and it would be...

Self updating py2exe/py2app application

I maintain a cross platform application, based on PyQt that runs on linux mac and windows. The windows and mac versions are distributed using py2exe and py2app, which produces quite large bundles (~40 MB). I would like to add an "auto update" functionality, based on patches to limit downloads size: check for new versions on an http s...

PY2EXE: How to output "*_D.PYD" file (debug) and use MSVCR80D.DLL?

The debug configuration of my app is built against: PYTHON25_D.DLL MSVCR80D.DLL We use Python .PYD files in our application. Some of these .PYD are .PY converted by PY2EXE to .PYD. When I run PY2EXE on MYSCRIPT.PY, I get the following .PYD and dependencies: MYSCRIPT.PYD PYTHON25.DLL MSVCR71.DLL KERNEL32.DLL What I want i...

Enabling JPEG support for QImage in py2exe-compiled Python scripts?

Hello, I'm trying to use a JPEG image in a QImage object from a Python script, with PyQt4. The script itself works perfectly, the image loads and can be manipulated and rendered and all. However, when I try to "compile" (compyle?) this script with py2exe, everything works but the JPEG image. Replacing it with a PNG equivalent works, but...

Bundling PyQwt with py2exe

I have a standard setup script for py2exe with which I bundle PyQt-based applications into Windows .exe files. Today I tried a simple script that uses the PyQwt module, and it doesn't seem to work. py2exe runs alright, but when I execute the .exe it creates, it dumps the following into a log file and doesn't run: Traceback (most recent...

py2exe - generated executable freezes when connecting to socket

Pardon my ignorance as I'm still a beginner in coding. I'm trying to convert a python script I wrote to a Windows executable program using py2exe. However, though I am able to successfully convert the script, the executable doesn't seem to be fully functional. After much debugging, I have isolated the cause and the following code seems...

py2exe windows service problem

I have successfully converted my python project to a service. When using the usual options of install and start/stop, everything works correctly. However, I wish to compile the project using py2exe, which seems to work correctly until you install the EXE as a service and try and run it. You get the following error message: Starting ...

Problem deploying Python program (packaged with py2exe)

I have a problem: I used py2exe for my program, and it worked on my computer. I packaged it with Inno Setup (still worked on my computer), but when I sent it to a different computer, I got the following error when trying to run the application: "CreateProcess failed; code 14001." The app won't run. (Note: I am using wxPython and the mult...

using registered com object dll from .NET

Hi all, I implemented a python com server and generate an executable and dll using py2exe tool. then I used regsvr32.exe to register the dll.I got a message that the registration was successful. Then I tried to add reference to that dll in .NET. I browsed to the dll location and select it, but I got an error message box that says: A ref...

py2exe: Compiled Python Windows Application won't run because of DLL

I will confess I'm very new to Python and I don't really know what I'm doing yet. Recently I created a very small Windows application using Python 2.6.2 and wxPython 2.8. And it works great; I'm quite pleased with how well it works normally. By normally I mean when I invoke it directly through the Python interpreter, like this: > python...

Error on connecting to Oracle from py2exe'd program: Unable to acquire Oracle environment handle

My python program (Python 2.6) works fine when I run it using the Python interpreter, it connects to the Oracle database (10g XE) without error. However, when I compile it using py2exe, the executable version fails with "Unable to acquire Oracle environment handle" at the call to cx_Oracle.connect(). I've tried the following with no joy...

How do I debug a py2exe 'application failed to initialize properly' error?

I'm very new to Python in general, but I made an app in Python 2.6 / wxPython 2.8 that works perfectly when I run it through Python. But I wanted to go a step further and be able to deploy it as a Windows executable, so I've been trying out py2exe. But I haven't been able to get it to work. It would always compile an exe, but when I actu...

Importing the entire Python standard library

I need a way to import the entire Python standard library into my program. While this may seems like a bad idea, I want to do this is so py2exe will package the entire standard library with my program, so my users could import from it in the shell that I give them. Is there an easy way to do this? Bonus points: I would prefer that thi...

Do I only need to check the users machine for the version of the MSVCR90.dll that was installed with my python installation?

I was working on an update to my application and before I began I migrated to 2.62 because it seemed to be the time to. I walked right into the issue of having problems building my application using py2exe because of the MSVCR90.dlls. There seems to be a fair amount of information on how to solve this issue, including some good answers...

Specifying relative path in py2exe

When specifying my script file in setup.py, e.g. "script": 'pythonturtle.py', how can I specify its relative position in the file system? In my case, I need to go down two folders and then go into the "src" folder and it's in there. How do I write this in a cross-platform way? ...

ImportError: no module named py2exe.

I get this error when I try to use one of the py2exe samples with py2exe. File "setup.py", line 22, in ? import py2exe ImportError: no module named py2exe I've installed py2exe with the installer, and I use python 2.6. I have downloaded the correct installer from the site (The python 2.6 one.) My path is set to C:\Python26 and I c...

what are the pros/cons of py2exe

im looking for simple script that will compile to exe , and i found py2exe before i decide to work with it , what do you think are the pros and cons of the py2exe tool? ...