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
1 answer

Compiling Python script to exe

I recently created a script using Python 2.7 and pygame. I have tried using py2exe, but when I run the file it created, it gives me this error: G:\Downloads2\GAME\dist\ANNECUTE.exe\zipextimporter.py:82: RuntimeWarning: import display: No module…
0
votes
1 answer

Missing tkinter attributes after converting to py2exe executable

I have a Python 3.3 script which uses tkinter and tkinter.filedialog. The latter is being used in this particular line of one of the classes: self.root_folder = os.path.realpath(tk.filedialog.askdirectory(**self.dir_opt)) The code runs well in…
ekh
  • 1
  • 2
0
votes
2 answers

Executable with py2exe without incurring the [WinError87]

I made a simple interface using PyQt and now I'm trying to deliver an executable using py2exe. The following setup.py script works fine: from distutils.core import setup import py2exe setup(console=['main.py'],…
isar
  • 1,661
  • 1
  • 20
  • 39
0
votes
1 answer

Is it possible to use Celery to run an already compiled (py2exe) python script

Is it possible to use Celery to run an already compiled (py2exe) python script, if yes, how I can invoke it ?
Vasilis Aivalis
  • 495
  • 4
  • 6
0
votes
0 answers

Is it possible to create a python executable (py2xe) that contains a celery worker task?

Is it possible to create a python executable (py2xe) that contains a celery worker task ? I am getting the error : Traceback (most recent call last): File "tasks.py", line 1, in File "celery\five.pyc", line 307, in __getattr__ File…
Vasilis Aivalis
  • 495
  • 4
  • 6
0
votes
1 answer

Py2exe, PyQt4 and Postgre Driver (QPSQL)

I`m trying to freeze my application using Py2exe. My app uses PyQt4 and it apparently works fine with py2exe. But once I`ve uninstalled PyQt, it shows the following error: QSqlDatabase: QPSQL driver not loaded QSqlDatabase: available drivers: QPSQL7…
Marshall
  • 11
  • 4
0
votes
1 answer

Error converting python script to exe

I am using Python 3.4.1 on Windows 7 x86_64 system and I have a script that automatically downloads some data dumps from a website by using "Firefox" web browser for which I have written a python script. Within the python script I am importing: from…
Arun
  • 2,222
  • 7
  • 43
  • 78
0
votes
1 answer

convert python script to exe in windows 7 32bit using py2exe

I have python script that have different modules like : MYSQLdb (update.py) Python Script: import fileinput import sys import os import re import subprocess import…
user4064453
0
votes
2 answers

How do i convert my Python script (that has imported modules) to a windows exe?

Here are the import modules that my script uses : import datetime from dateutil import parser from tkinter import filedialog import tkinter import mailbox import pprint import json import urllib.request from tkinter import * #my script code…
user4530588
0
votes
1 answer

Having trouble in creating exe file for python script

I used py2exe to make an exe of my Python script but when I run the exe file it gives me matplotlib data file missing error. What can I do for this thing? Also I tried using pyInstaller but when everything was completed there was a run time error…
Akshay Bhasin
  • 581
  • 2
  • 6
  • 13
0
votes
1 answer

How do i convert a python3.4 script(that has installed modules) into a windows executable using py2exe?

I have a python script that i have to import all these modules, which some of them require downloading: import datetime from dateutil import parser from tkinter import filedialog import tkinter import mailbox import pprint import json import…
user4530588
0
votes
1 answer

How to add dll's using py2exe?

I use a c++ dll in python. That dll uses other dlls. I want to know if it's possible to include all the dll's in my .exe using py2exe without calling them directlly. If so, how can I do it? Thanks in advance :)
aF.
  • 64,980
  • 43
  • 135
  • 198
0
votes
1 answer

What should I do to get my game in exe format to work?

I tried to convert the game code using py2exe. But every time I type the syntax python setup.py py2exe in the command prompt, it raises an error saying the python is not recognised as a operable batchfile. I'm totally new to this stuff and after…
nerd0711
  • 61
  • 8
0
votes
0 answers

py2exe no module found

I have python script main.py and two others scripts under.py and above.py which I imported to main.py, I also used additional modules and I want to make .exe file for Windows for distribution. My setup.py looks like from distutils.core import…
PaolaJ.
  • 10,872
  • 22
  • 73
  • 111
0
votes
1 answer

Can't bundle with py2xe, keeps wanting to include tkinter though it is not used

py2exe's been driving me insane. I'm trying to bundle a small app that has no GUI or anything and even though I am not using TKinter, py2exe keeps wanting to bundle it in the .exe. I'm a beginner in all this so if the my app code is not that great,…
Faryus
  • 161
  • 1
  • 4
  • 14