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
17
votes
4 answers

Embedding icon in .exe with py2exe, visible in Vista?

I've been trying to embed an icon (.ico) into my "compyled" .exe with py2exe. Py2Exe does have a way to embed an icon: windows=[{ 'script':'MyScript.py', 'icon_resources':[(1,'MyIcon.ico')] }] And that's what I am using. The icon shows up…
Etienne Perot
  • 4,764
  • 7
  • 40
  • 50
16
votes
5 answers

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

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…
alexroat
  • 1,687
  • 3
  • 23
  • 34
16
votes
4 answers

Using bundle_files = 1 with py2exe is not working

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…
sandra
  • 450
  • 1
  • 5
  • 18
16
votes
3 answers

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…
Bing Jian
  • 994
  • 3
  • 10
  • 18
16
votes
6 answers

ImportError: No module named mpl_toolkits with maptlotlib 1.3.0 and py2exe

I can't figure out how to be able to package this via py2exe now: I am running the command: python setup2.py py2exe via python 2.7.5 and matplotlib 1.3.0 and py2exe 0.6.9 and 0.6.10dev This worked with matplotlib 1.2.x I have read…
RuiDC
  • 8,403
  • 7
  • 26
  • 21
16
votes
2 answers

scipy with py2exe

I get the following error message using python v2.7.3 and scipy v0.11.0 with py2exe v0.6.10 on a 64 bit machine using 64 bit versions of the packages from Christoph Gohlke. If anyone can provide relevant and useful suggestions I would greatly…
chandradog
  • 339
  • 3
  • 9
15
votes
2 answers

UnknownTimezoneError Exception Raised with Python Application Compiled with Py2Exe

I'm having a problem distributing an application that utilizes pytz. I'm using Py2Exe to create an executable from my Python source. For a simple example of the problem I'm having, I have: pytz_test.py: import pytz tz_au =…
Lance
  • 399
  • 1
  • 5
  • 14
15
votes
2 answers

Make a py2exe exe run without a console?

Does anyone know how to make an exe with py2exe run without the black console? and bundle up all the pyd files etc into just one exe file?
P'sao
  • 2,946
  • 11
  • 39
  • 48
15
votes
1 answer

Simple license protection for Python app

Although there are quite a few questions like this, please bear with me as I think mine is different... I have a $5 Python app that I distribute using py2exe, py2app, and source for Linux. The app has a one-year license so that people need to…
new name
  • 15,861
  • 19
  • 68
  • 114
15
votes
1 answer

Relative import error with py2exe

I was trying to generate an executable for a simple Python script. My setup.py code looks like this: from distutils.core import setup import py2exe setup(console=["script.py"]) However, I am getting the error shown in the screenshot. Is there…
multigoodverse
  • 7,638
  • 19
  • 64
  • 106
15
votes
4 answers

pack a software in Python using py2exe with 'libiomp5md.dll' not found

I have Python 2.7 on Window 7 OS. I wish to pack my project.py in an Executable using py2exe. Following the instruction i wrote a setup.py file from distutils.core import setup import py2exe setup(console=["project.py"]) and I got this…
Gianni Spear
  • 7,033
  • 22
  • 82
  • 131
15
votes
4 answers

How to convert python .py file into an executable file for use cross platform?

I've been searching through SO for a while now trying to come up with an answer to this but due to my inexperience with programming I don't understand much of the documentation, nor am I confident enough to experiment too much. Would anyone be able…
Ricochet_Bunny
  • 537
  • 3
  • 8
  • 19
14
votes
5 answers

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"…
Luper Rouch
  • 9,304
  • 7
  • 42
  • 56
14
votes
3 answers

Python, PyInstaller error: no module named "Encodings" and system codec missing

I am using Python 3.3.3 and I have been trying to build a .exe from a simple .py script. My script looks like this: import encodings print('Test') and executes correctly. When I try to build it with PyInstaller with this command: pyinstaller…
Zesa Rex
  • 412
  • 1
  • 4
  • 16
14
votes
6 answers

ImportError: cannot import name RAND_egd

I've tried to create an exe file using py2exe. I've recently updated Python from 2.7.7 to 2.7.10 to be able to work with requests - proxies. Before the update everything worked fine but now, the exe file recently created, raising this error: …
Milano
  • 18,048
  • 37
  • 153
  • 353