Questions tagged [py2exe]

Py2exe is a python extension that converts Python Scripts to Windows Executables.

py2exe is a extension which converts Python scripts (.py) into Windows executables (.exe). These executables can run on a system without Python installed. It is the most common tool for doing so.

py2exe was used to distribute the official BitTorrent client (prior to version 6.0) and is still used to distribute SpamBayes as well as other projects.

Resources

1654 questions
10
votes
1 answer

Bundling GTK resources with py2exe

I'm using Python 2.6 and PyGTK 2.22.6 from the all-in-one installer on Windows XP, trying to build a single-file executable (via py2exe) for my app. My problem is that when I run my app as a script (ie. not built into an .exe file, just as a loose…
detly
  • 29,332
  • 18
  • 93
  • 152
10
votes
3 answers

Is there a way to specify the build directory for py2exe

I can set the final dist directory of py2exe using the command line: python setup.py py2exe -d "my/dist/dir" but I can't seem to set the file to use for the interim build directory. I've taken a brief look at the source, but unless I am missing…
Casey
  • 12,070
  • 18
  • 71
  • 107
10
votes
3 answers

ImportError: cannot import name Publisher

I succesfully created an executable version (Py2exe, Pyinstaller) of my application. When I try to run the app from .exe, I get an error as follows in the log file: Traceback (most recent call last): File "CreateAS.pyw", line 8, in…
Shansal
  • 1,369
  • 5
  • 16
  • 26
10
votes
1 answer

Freeze a program created with Python's `click` pacage

I've got a command line program that uses Python's click package. I can install and run it locally, no problem with: pip install --editable . # (or leave out the editable of course) Now, I'd like to create an executable file that can be distributed…
fenkerbb
  • 795
  • 2
  • 7
  • 18
10
votes
3 answers

Py2Exe, [Errno 2] No such file or directory: 'numpy-atlas.dll'

I have included matplotlib in my program, I searched about numpy_atlas.dll on google and I seem to be the only one on Earth with this problem. setup.py from setuptools import setup import py2exe setup(console=['EulerMethod.py']) Running Py2Exe…
Louis Hong
  • 1,051
  • 2
  • 12
  • 27
10
votes
4 answers

Window Icon of Exe in PyQt4

I have a small program in PyQt4 and I want to compile the program into an Exe. I am using py2exe to do that. I can successfully set icon in the windows title bar using the following code, but when i compile it into exe the icon is lost and i see the…
realz
  • 123
  • 1
  • 6
10
votes
1 answer

py2exe change application name output

I am working on my first Python project and I need compile with py2exe. I wrote this setup.py code : from distutils.core import setup import py2exe import sys import os if len(sys.argv) == 1: sys.argv.append("py2exe") setup( options =…
kingcope
  • 1,121
  • 4
  • 19
  • 36
10
votes
4 answers

Including PYDs/DLLs in py2exe builds

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…
TheObserver
  • 2,973
  • 7
  • 33
  • 41
10
votes
3 answers

Exe created with py2exe doesn't work and returns logfile with errors

It's my first post so go easy on me. My problem is similar as in here, but I couldn't make it work, though I really tried: " py2exe with enthought and pandas ". Having installed separately both versions of python(x84-64, x32) with libraries I…
lottee
  • 113
  • 1
  • 7
10
votes
3 answers

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

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…
jean-michel
  • 111
  • 1
  • 5
10
votes
4 answers

System path error with PyQt and Py2exe

My Problem: I have this problem where if I try to run py2exe on my python file that uses Pyqt/Pyside I get the following error when trying to run the EXE generated in I:\Documents\Python\Buttonio_Testio\dist : Error recieved when running…
user2529777
  • 103
  • 1
  • 5
10
votes
2 answers

How to install the py2exe modul in Linux

I downloaded the actual py2exe package. But I've no idea how to get it in my system. I mean I can follow the tutorial a 100% but I can't find anything how to install py2exe to my kubuntu 11.10. I also can't find a py2exe.py which I could include to…
user1312621
  • 101
  • 1
  • 1
  • 3
9
votes
4 answers

py2exe `ImportError: No module named backend_tkagg`

I am trying to make a windows executable from a python script that uses matplotlib and it seems that I am getting a common error. File "run.py", line 29, in import matplotlib.pyplot as plt File "matplotlib\pyplot.pyc", line 95, in File…
kechap
  • 2,077
  • 6
  • 28
  • 50
9
votes
3 answers

Python 3 project into exe?

I've made my first Python program, using Python 3.2. Now I'm trying to figure out how to make it an executable. I pretty much only need it for Windows only. I've searched as much as possible and found out that py2exe doesn't support Python 3.…
Martti Laine
  • 12,655
  • 22
  • 68
  • 102
9
votes
4 answers

using py2exe with wxPython and Matplotlib

I'm trying to generate an .exe file from a python script that uses wxPython and Matplotlib and it looks like to be impossible. The imports I'm doing (related with Matplotlib) are the following: from numpy import * import…
asivolella
  • 91
  • 1
  • 4