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

How to mantain file structure for dynamic loading python files using Py2Exe

I am using py2exe in order to generate a .exe file from a project of mine. This project contain in the root folder a main.py In order folders, like the folder project, there are other .py files that should be imported only when relevant during the…
Prometheus
  • 523
  • 7
  • 19
0
votes
2 answers

Py2exe cannot be convert python script to Windows executables

I want to make the python script into Windows executable with py2exe. I did not miss MSVCP90.dll and the Feiwings.py(the file that I use for transforming) and setup.py are under the same path. Doing those things under command window, everything…
Siqi Liu
  • 1
  • 1
0
votes
1 answer

Trouble using py2exe

When i write this command in CMD python.exe C:\Users\osman\Desktop\setup.py c:\py2exe Then it says that unable to import py2exe. I don't understand what to do now. please help.
0
votes
2 answers

Py2Exe file closing at end, probably due to

i made a py2exe executable, it's a "Programming Quiz". It is made in pygame and when I run it as an EXE, it all works until the end. I assume because the end has pygame text in it. The error is below. Here's the portion of the code that doesn't work…
HKVariant
  • 837
  • 10
  • 23
0
votes
1 answer

Making the CMD window to appear while executing an .EXE created by py2exe

I am trying to create a simple console programm in python which shall accept arguments. For the testing purpose I have created a simple python programm using python v2.7 on Windows 7 OS, that just prints the argument passed by the…
ρss
  • 5,115
  • 8
  • 43
  • 73
0
votes
2 answers

py2exe and assimulo - No module named algebraic

I am trying to build an executable using py2exe on a soft that uses the library assimulo (differential equation solver). The problem encountered is that during execution I receive: ImportError: No module named algebraic The exact error message…
Yvus
  • 338
  • 1
  • 20
0
votes
0 answers

ImportErrors with Py2Exe

Unlike all other Import errors that other people have been experiencing, my py2exe Import error occurs due to the fact it is unable to locate the modules that I'm trying to import. It is likely to be path problems. I have two directories: Code/ …
user3019766
  • 131
  • 1
  • 10
0
votes
1 answer

How do I combine these two py2exe programs. They are pygame2exe and a pyttsx.exe

I'm sorry if I asked the question in a funny way but, I did not know a better way to word it. I'm trying to combine this. http://www.pygame.org/wiki/Pygame2exe?parent=CookBook With this. from distutils.core import setup import py2exe py2exe_options…
0
votes
1 answer

Creating setup.py for making .exe

I am working with python3.4 on windows 7.Using py2exe for making executable file. In my python script i am opening multiple folders and reading files from them.The setup.py used is as follows, from distutils.core import setup import py2exe, sys, os…
Maxxie
  • 397
  • 1
  • 4
  • 14
0
votes
1 answer

PIL in py2exe: 'no module named Image'

I've a working python-script in which Image from Pillow is imported succesfully. Like this: 'from PIL import Image' After using py2exe and including PIL like any other Library, follwing error occurs: 'No module named Image' All other Libraries seem…
Nico Schmidt
  • 3
  • 1
  • 5
0
votes
1 answer

py2exe ctypes dll load error when running from compiled exe but not when running code using the interpreter

I'm compiling and exe using py2exe when I test the code running from cmd like this C:\wdir\mvl-tryton-client\tryton-3.2.3\bin>python tryton it works fine. But when I run it after executing the generated installation I get: Error DLL load failed:…
Marciano
  • 123
  • 4
  • 9
0
votes
0 answers

compiles .py to .exe inluding it Classes

I have 4 .py files. Below is a list of files what is required to run the programme. Any of them missing will fail the programme to run. How my code works: ) GUIss.py imports demonstrator.py ) Demonstrator.py imports filereader.py and process.py )…
Raitis Kupce
  • 760
  • 2
  • 7
  • 16
0
votes
1 answer

Is it ok to suggest the user home directory as default installation folder?

I am making an installer for py2exe packaged app. py2exe catches strerr and put that in log file created in the same folder as executable. So, installing the app into "Program Files" will cause a problem because the app does not have the right to…
otterb
  • 2,660
  • 2
  • 29
  • 48
0
votes
1 answer

Switch py2exe 64bit to 32bit

I'm trying to switch my 64bit py2exe to 32bit version. Since I haven't found any uninstall command for py2exe, I've decided to just install 32bit version without uninstalling previous 64bit version. Is this process harmless? EDIT: I want to…
Milano
  • 18,048
  • 37
  • 153
  • 353
0
votes
1 answer

Create an executable file out of .py script

I have a python script I need to be able to run on a computer not having Python installed on it. I do have found a compile.py example on this link: Can I somehow "compile" a python script to work on PC without Python installed? When running it as…
gussilago
  • 922
  • 3
  • 12
  • 27