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

Passing command line parameters to a Python script packaged as .exe with py2exe?

I have a python script that will be run as an exe (packaged using py2exe) on a machine without Python installed. I currently have my proxy information written into the script using a proxy handler with urllib2 (see code below), but I would like to…
Crazy Otto
  • 125
  • 2
  • 13
0
votes
0 answers

Packing the font file from pygame using py2exe?

I am using py2exe to create a simple pygame program. I searched around and found Pygame2exe where arit talks about where he had to edit his code if he used fonts. This means that I have to include the font file in the same folder as the exe. When I…
user4489771
0
votes
1 answer

py2exe and msvcr100.dll. The dll is not valid

I'm trying to make an exe for a python program I developed, with py2exe. I managed to do it, but I can't figure out the last problem I have: include the msvcr100.dll. I tried to follow the tutorial here: http://www.py2exe.org/index.cgi/Tutorial But…
JPFrancoia
  • 4,866
  • 10
  • 43
  • 73
0
votes
2 answers

Convert pygame to exe

When i try to convert this to a .exe file with py2exe it says "Import error, no module named pygame". How can i convert it to a .exe usin py2exe? If anyone can help me convert it with another tool, please let me know. import pygame import…
0
votes
1 answer

Why does py2exe remove `help` and `license`?

I packaged my Python app with py2exe. My app is a wxPython GUI, in which there is an interactive Python shell. I noticed that I can't do help(whatever) in the shell. I investigated a bit and discovered that after the py2exe process, 3 items were…
Ram Rachum
  • 84,019
  • 84
  • 236
  • 374
0
votes
3 answers

Problems to generate an executable with py2exe

I am trying use py2exe to generate an executable, but when I test the executable, I get following the error message: Traceback (most recent call last): File "mount_tool.py", line 15 in module File "matplotlib\pyplot.pyo", line 98,…
0
votes
2 answers

Incorporate an icon to python .exe using py2exe

I have this setup.py script for incorporating icon for my .exe file, but the icon isnt appearing after the setup. the icon is 361 KB in size. from distutils.core import setup import py2exe setup( console = [ { "script":…
ellabells
  • 49
  • 3
  • 10
0
votes
1 answer

Compiled Python Multiprocessing Locks CPU

I'm running a scraper program (using the requests library) that's using a simplistic threading scheme. Each thread goes to the internet, scrapes some data, and returns a dictionary. The multithreading code (using multiprocessing library's Pool)…
0
votes
1 answer

Error in exe file with ctypes with py2exe

In mainwindow.py file i have use this line, ctypes.windll.LoadLibrary("ptzdll/PTZ.dll") from PTZ import PTZDevice, PTZType When i execute mainwindow.py file with terminal(python mainwindow.py), it works, but when i double click on exe file made by…
jatinkumar patel
  • 2,920
  • 21
  • 28
0
votes
1 answer

Do Python programs still work the same as a standalone application?

I wrote a university gradebook application for my friends and I. I want to share it with them but they don't have python, so I was going to make it a standalone application. First - what exporter would be best so that both my Mac OS X friends and…
Jackson Blankenship
  • 475
  • 2
  • 7
  • 19
0
votes
1 answer

Image is not displayed in pyside exe file by py2exe

I have some images in pyside dsktop application in resources folder. Here the setup.py file to make a exe file.(python setup.py py2exe) The exe file works perfect, just image is not displaying. Is there any mistake in setup.py file? from…
jatinkumar patel
  • 2,920
  • 21
  • 28
0
votes
1 answer

Python py2exe with tkinter (pyw file)

I have made a small program in Python that involves tkinter, and I made it a pyw file because it has a shortcut on the desktop and I do not want the command prompt to get in the way. I used py2exe following the sentdex tutorial on youtube, and I got…
user4381005
0
votes
1 answer

Problems on Windows Service written in python and py2exe

I've written a service for Windows: agentservice.py import win32serviceutil import win32service import win32event import win32evtlogutil import agent class AgentService(win32serviceutil.ServiceFramework): _svc_name_ = "AgentService" …
0
votes
2 answers

Having problems with installing py2exe-0.6.9.win32-py2.6.exe

I just have installed py2exe-0.6.9.win32-py2.6.exe. When i started it it says that python version 2.6 is required , which was not found in the registry. But i have python2.7 installed at C:\Python27. What should i do ?
0
votes
1 answer

How do I get the OS and system modules into py2exe

I am trying to create a stand alone application for a windows computer I am trying to use the following modules: os system threading time But it is not allowing me to import any of these modules it doesn't give me an error code or anything it just…
Marcello B.
  • 4,177
  • 11
  • 45
  • 65