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

py2exe or pyinstaller fail to include jaraco.util

I have a small python script for irc which needs jaraco.util to function. Requirement is to release it as binary on windows so I've tried with py2exe and pyinstaller. I am using WinPython-64bit-2.7.6.4 I have some experience with py2exe from…
Marius
  • 30
  • 4
0
votes
0 answers

"Errno2" py2exe, my script cant be found

I am trying to use py2exe but it won't find the python script that I specified in the setup.py. yes they are in the same directory. i get this message; C:\Users\11>c:\users\11\desktop\setup.py py2exe running py2exe *** searching for required modules…
0
votes
1 answer

hiding highscore text file in exe using py2exe/pygame2exe

I have a highscore system in my game that I made in Pygame, it saves name and score in text files name.txt and score.txt but the problem is that anyone can edit that text files.So could i hide them in exe file. python version 2.7 setup script:…
NetSec
  • 85
  • 1
  • 1
  • 12
0
votes
1 answer

GDAL Import Error after freezing Python 3 script

I am trying to freeze a Python script that contains an import from osgeo but the executable fails with an ImportError: No module named '_gdal'. I've stripped down my script to just one line: import osgeo When running in Python (version 3.3.3) all is…
Harry G.
  • 45
  • 5
0
votes
1 answer

Python py2exe dll load fail pygame mixer module not available

I tried to make an exe from my programm in python using py2exe. My programm contains multiple sound- and image files. The problem is, that when I try to run the exe, it gives me an error: C:\Users\Eduard\Desktop\testordner>test.exe test.exe:7:…
Duardo
  • 107
  • 11
0
votes
1 answer

Python py2exe dll load fail mixer module not available

I tried to make an exe from my programm in python using py2exe. The problem is, that when I try to run the exe, it gives me an error: C:\Users\Eduard\Desktop\testordner>test.exe test.exe:7: RuntimeWarning: use mixer: DLL load failed: Das angegebene…
Duardo
  • 107
  • 11
0
votes
0 answers

Command Prompt showing for Python Executable (python 3.4)

So I am designing an application in python 3.4, and I used the following website and py2exe to make it an executable file: http://www.kosbie.net/cmu/fall-10/15-110/koz/notes-py2exe-tutorial.html The executable is created, and works properly, but it…
gnasr
  • 214
  • 2
  • 8
0
votes
1 answer

Python: Is original source code viewable when converting a python script to .exe file using py2exe?

I made a python script that saves its output into a .text file. The .text file contents is scrambled but the python script I made can unscramble the text. If I use py2exe to make the script an .exe file, will others be able to see the script it uses…
Rmor91
  • 252
  • 3
  • 10
0
votes
2 answers

wxPython MSVCP90.dll error

Man I am exhausted...I am running python 2.7 and have created an application with wxPython. When attempting to create and .exe with py2app, I get the following error: error: [Errno 2] No such file or directory: 'MSVCP90.dll' I have read tons of…
BPoy
  • 159
  • 2
  • 11
0
votes
1 answer

How do I have a setup.py file that satisfies both Windows and Linux?

I'm hacking an existing python tool (using Tkinter GUI) that has a setup.py written for windows (its dependencies include py2exe and Tix) the import statement has from distutils.core import setup import py2exe import os import…
Jon C
  • 1
0
votes
3 answers

Failed to load OpenCL runtime - OpenCV3 Python

I have a program that processes videos using foreground detection in OpenCV 2.4.9/python/on windows and packaged for a windows executable using py2exe. I recently updated opencv to opencv3 and repackaged my program. When i run on my computer (with…
bw4sz
  • 2,237
  • 2
  • 29
  • 53
0
votes
0 answers

How to make this code work with py2exe

My code is like this: from PIL import Image from VideoCapture import Device def cam_capture(usr): try: cam = Device() …
0
votes
1 answer

Popen() does not redirect output from Task Scheduler task

I am writing a wrapper program to add features to a Windows command-line tool. This program is made to run on a Windows server with py2exe. In it, there are several lines which look like: job = subprocess.Popen(syncCommand, stdout=myLog,…
0
votes
2 answers

exe generated from a python script with Py2exe does not work on xp

I have a python script that works fine on my computer (Python 2.7 32 bit installed). It has the following imports : import mechanize from bs4 import BeautifulSoup from Tkinter import * import json import webbrowser I wanted…
user3215014
  • 147
  • 2
  • 2
  • 11
0
votes
2 answers

Can't send ActiveCell value to an external program

I made an executable based on a Python Script that I made from a Selenium Code where I put a number and then it returns a *.pdf file. Now I'm trying to create a VBA Macro in Excel to send the ActiveCell value through the Shell Command to my…