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
0
votes
0 answers

Use applications built by Py2Exe in a directory other than the original one?

I am using Py2Exe to build an application. It works well when I double click the application in the original project folder, all the graphical interfaces appear on the screen. However, when I copy and paste the project to another directory, the…
ChangeMyName
  • 7,018
  • 14
  • 56
  • 93
0
votes
1 answer

pyGame, py2exe and pyOpenGL: No module named platform

So I was trying to make my game in pyGame using pyOpenGL ready for distribution to friends who don't have either pyGame or pyOpenGL - so I ran such script using py2exe: from distutils.core import setup import py2exe …
Straightfw
  • 2,143
  • 5
  • 26
  • 39
0
votes
0 answers

Python executable cannot read file

Given below is the code that I am using to read values form a file import linecache line_number=line_number+1 linecache.getline("write.txt", line_number) I am using py2exe to convert the file into an executable. The problem is after conversion to…
praxmon
  • 5,009
  • 22
  • 74
  • 121
0
votes
1 answer

py2exe executable containing private password

In my setup, the py2exe bundles all the dependency modules into a zip and I can see them on the deployed machine. (*.pyo) My script windows_app.py is specified in the setup.py as setup(windows = ["windows_app.py"] However I do not see…
Vink
  • 1,019
  • 2
  • 9
  • 18
0
votes
1 answer

error using py2exe with python 2.7 and easygui 0.95

I am converting my python 2.7.6 code(which only uses easygui.py (v0.95) into an .exe but I am having trouble when using python setup.py py2exe my setup.py from distutils.core import setup import py2exe import easygui import matplotlib.pyplot as…
0
votes
1 answer

Reduce Size py2exe and pyqt

I just used py2exe to compile my python app that uses pyqt. The size of it is 23MB. The Pyqt libraries (PyQt4.QtCore.pyd, PyQt4.QtGui.pyd, QtCore4.dll and QtGui4.dll) sum more than 17MB. Is there a way to use QT with a reduced size? Thank you!
Antonio
  • 482
  • 1
  • 5
  • 16
0
votes
1 answer

Output missing when exe built with py2exe is run from Win CLI

I have a script, my_script.py that includes these functions. def output_results(scrub_count, insert_count): print "Scrubbing Complete" print "Valid requests: "+ str(scrub_count["Success"]) if scrub_count["Error"] > 0: print…
wanderingandy
  • 823
  • 1
  • 8
  • 16
0
votes
1 answer

.py file works, converted .exe file doesn't

EDIT: Turns out the actual error was with the font code - Apparently I had to use pygame.font.SysFont("some_font", font_size) instead of pygame.font.Font(None, font_size) everywhere in my original piece of code. Consider this question…
MMM
  • 107
  • 1
  • 1
  • 9
0
votes
1 answer

how to use py2exe packing python+gevent program into .exe file?

I use setup.py : from distutils.core import setup import py2exe setup( windows=[{"script":"flask_gevent.py"}], options={ "py2exe":{ "includes": [] }, } ) Traceback (most recent call last): File "flask_gevent.py", line…
ldl
  • 156
  • 3
  • 12
0
votes
1 answer

Generating exe from PyQt program with py2exe

I have this program which works fine in the shell [ http://pastebin.com/qsfJt8eE ] But when I try to generate a .exe using the py2exe I get this error. Traceback (most recent call last): File "test1.py", line 470, in NameError: name…
f.rodrigues
  • 3,499
  • 6
  • 26
  • 62
0
votes
2 answers

Issue packaging scrapy spider with cx_Freeze or py2exe

I've created a scraper with Scrapy and wxPython which works as expected, exporting a file with results to the desktop in CSV format. I'm attempting to package this into an executable with cx_Freeze using the below command prompt line: cxfreeze…
user994585
  • 661
  • 3
  • 13
  • 28
0
votes
1 answer

python GUI to EXE with image and modules

I have created a Python GUI and trying to convert it to .exe with py2exe. i am using following modules wx,matplotlib,numpy,time,serial,random and a .ico image as logo. i tried create a setup.py file but it didn't work.need help creating setup file…
0
votes
2 answers

when using py2exe to convert into exes, yaml packages cannot be imported, while yaml works in IDLE

I have installed yaml successfully, which works well python IDLE using import yaml. When using py2exe to convert into exes, raise ImportError: no module named yaml. My setup.py as below: from distutils.core import setup import py2exe setup( …
era_misa
  • 200
  • 1
  • 9
0
votes
1 answer

How do you fix all of these py2exe problems?

I have been making a game with Python and Pygame, and I've FINALLY finished it! It has a main.py, and this uses 2 other .py files: process.py and classes.py. I have been trying to make it into a standalone .exe (using this setup.py:…
0
votes
1 answer

How to pass data to an application from python code

I am using python 2.7 on windows 7 64 bit machine. I am calling external application within python code as os.startfile("D:\\dist\\NewProcess.exe") This application(used py2exe for converting python script into an exe) uses two strings, which need…
imp
  • 1,967
  • 2
  • 28
  • 40
1 2 3
99
100