py2exe

FileNotFoundError when using py2exe

FileNotFoundError when using py2exe Question: I have a gui program written in Python 3.9 that uses the PySide6 library. I want to make this into a .exe file using py2exe. However, when I try to open the executable I get the error: Traceback (most recent call last): File "main.py", line 3, in <module> File "<frozen …

Total answers: 1

packageError py2exe and python-docx

packageError py2exe and python-docx Question: I have a program written in python that reads certain datafiles and produces a docx file and a pdf file. Now I need to distribute this, so I created a GUI and found that with py2exe I can create the .exe that I should then be able to distribute. The …

Total answers: 1

Executable Python program with all dependencies for Linux

Executable Python program with all dependencies for Linux Question: Is there a way to deploy a Python program that includes all dependencies on a Linux system? I have used py2exe to "compile" a python script with all modules to a standalone .exe, but that’s obviously only working on Windows. Is there an easy way to …

Total answers: 2

No module named builtins

No module named builtins Question: I’m trying to convert my .py script into an executable using py2exe. I’ve had a number of issues so far that have been largely addressed by the “options” in the setup file below. But now I have a problem that I have not been able to find a solution for, …

Total answers: 4

Deploy to artifactory via python script

Deploy to artifactory via python script Question: I am trying to create a python script that can deploy an artifact to Artifactory. I am using Python 3.4 and I want the resulted script to put it through py2exe, so external libraries might create issues. Through all my research, I found that one way is this, …

Total answers: 2

How to compile multiple scripts with py2exe?

How to compile multiple scripts with py2exe? Question: 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 …

Total answers: 3

Install py2exe for python 2.7 over pip: this package requires Python 3.3 or later

Install py2exe for python 2.7 over pip: this package requires Python 3.3 or later Question: >>> python -c “import sys; print sys.version” 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] >>> pip –version pip 1.5.5 from C:Python27libsite-packages (python 2.7) >>> pip install py2exe <mumble grumble..> RuntimeError: This package requires Python 3.3 or …

Total answers: 5

How to call python script on excel vba?

How to call python script on excel vba? Question: Trying to call a python script on Vba and I am a newb. I tried converting the main script to an exe using py2exe and then calling it from VBA (shell) but the main script calls other scripts therefore it becomes complicated and I messed it …

Total answers: 13

Issue compiling using py2exe on Windows 7 x64

Issue compiling using py2exe on Windows 7 x64 Question: I am using py2exe to compile my script into an exe file to run on Windows, but I am hitting errors based on my OS, which is Window 7 x64. I am running the below script in cmd using execmaker.py py2exe: from distutils.core import setup import …

Total answers: 5

multiprocessing.freeze_support()

multiprocessing.freeze_support() Question: Why does the multiprocessing module need to call a specific function to work when being “frozen” to produce a windows executable? Asked By: Voo || Source Answers: The reason is lack of fork() on Windows (which is not entirely true). Because of this, on Windows the fork is simulated by creating a new …

Total answers: 1