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
2 answers

py2exe missing module pyodbc

my python script uses pyodbc module. When I create setup.py script it failed to compile and throws the error: raise ImportError, "No module named " + qname portError: No module named pyodbc What is wrong with my setup.py script: from…
susja
  • 311
  • 3
  • 12
  • 33
0
votes
3 answers

How to compile multiple scripts with py2exe?

I have been recently working on a text game (executes in the console or CMD). I already tested it and it works perfectly. But now I want to make it a SINGLE EXE. I have already done that with other scripts. The proble is that this game is actually…
Meowtwo 117
  • 72
  • 1
  • 5
0
votes
1 answer

ImportError: No module named allcontrols with pywinauto and py2exe

I want to generate an .exe file from a python script which includes the pywinauto module. It builds fine, however when running the resulting dist\pywinauto_sample.exe, I get this error: Traceback (most recent call last): File…
Babken Vardanyan
  • 14,090
  • 13
  • 68
  • 87
0
votes
0 answers

Weird behaviour in py2exe

Guys I'm having trouble in compiling my python script to 'exe' using py2exe. When I run the setup script, it doesn't throw up any errors. But the 'exe' is not generated. Also, the 'dist' and 'build' directories are empty. My program uses PyQt4. When…
freeMinder
  • 81
  • 1
  • 2
  • 8
0
votes
1 answer

Wrong unicode characters representation in Python 3.4 and py2exe-3

I have problem with Unicode strings in frozen app. I use python 3.4.1 32bit (on Windows 7 64bit Pro) and py2exe-3 from svn repository. I can demonstrate it with following code: #!/usr/bin/python3 # -*- coding: utf-8 -*- # file:…
user898678
  • 2,994
  • 2
  • 18
  • 17
0
votes
1 answer

py2exe input not working

My little bit of code (it's not all but I think it's all that is needed): functions = {'1':cels_kelw, '2':cels_farh, '3':cels_kelw, '4':kelw_farh, '5':cels_farh, '6':kelw_farh} while True: operation = raw_input("Choose number:\n") if…
Łukasz Szcześniak
  • 1,417
  • 11
  • 23
0
votes
1 answer

Python application, py2exe, Inno Setup, os.system() start function does not work

I have made some application with PyQt4, which contains os.system() start function in it as a button, which basically opens a csv file. import sqlite3 import sys import os ....... class Ui_MainWindow(object): def setupUi(self, MainWindow): …
0
votes
1 answer

Python compiled code crashes

I made this game in python 2.7 and it worked in .py format but when I compiled it with py2exe it suddenly broke. It gave me this error: "Microsoft Visuak C++ Runtime Library Runtime Error! Program C:\Python27\Helmetdodger\Stuffz\main.exe This…
Frothiny
  • 71
  • 9
0
votes
1 answer

Python running but exe not. AttributeError

This is the error I got: Traceback (most recent call last): File "C:\Python34\lib\tkinter\__init__.py", line 1487, in __call__ return self.func(*args) File "interface.py", line 231, in testsubmit File "interface.py", line 202, in…
Dubar Alam
  • 79
  • 1
  • 10
0
votes
1 answer

Py2exe created executable works at first then stops working

I wrote a script that creates 50 boxes of random color. The script works normally, but once I used py2exe to make it an executable file, it stopped working. The executable worked at first, but then later it stopped working. I started getting this…
electron1
  • 97
  • 1
  • 1
  • 10
0
votes
1 answer

py2exe windows file system distribution

I am trying to create an application which I want later on to distribute. When I make the executable with py2exe I get the following warning message: Make sure you have the license if you distribute any of them, and make sure you don't distribute…
bergercookie
  • 2,542
  • 1
  • 30
  • 38
0
votes
0 answers

Freeze a Python script using Mayavi

I have a script in Python with a GUI in QT (implemented through Qt designer and PySide) embedding a custom Mayavi widget. I want to build it with cx_freeze, but I don't know if it is possible, because I wonder if I can freeze Mayavi?
0
votes
2 answers

Python py2exe Problems?

I coded a python application with a GUI in Tkinter with pictures. Now that I have finished, I am trying to convert it to a .exe with py2exe. All my pictures are in the same folder as my python file and setup file, but when I try to convert my python…
Rohan K.
  • 91
  • 5
0
votes
1 answer

Including nested modules in setup script

I am trying to convert a Python project to exe using py2exe. My project directory structure is: project/ __init__.py main.py src/ __init__.py interface/ __init__.py window.py …
qurban
  • 3,885
  • 24
  • 36
0
votes
1 answer

Py2Exe, Sqlite - Not a valid Win 32 Application

I have a Python program that I am attempting to package using Py2Exe. I am using Python 3.4. My program uses Sqlachemy and Sqlite3 in order to create and access the database. When I install the resulting files from Py2Exe I get the dll…
Spencer Bates
  • 237
  • 3
  • 11
1 2 3
99
100