exe

How to convert python file to exe? The 'pathlib' package is an obsolete backport of a standard library package and is incompatible with PyInstaller

How to convert python file to exe? The 'pathlib' package is an obsolete backport of a standard library package and is incompatible with PyInstaller Question: I am receiving following error while converting python file to .exe I have tried to uninstall and intsall pyinstaller but it didnt helped out. i upgraded conda but still facing …

Total answers: 5

How to distinguish autostart of a program from opening it directly?

How to distinguish autostart of a program from opening it directly? Question: My task is to launch the desktop cleaning program along with windows, but the interface (program settings) should only be launched when the program is opened directly (for example, through a shortcut). I made a similar program device: But it has two entry …

Total answers: 1

Automatic GUI for python script with command line arguments?

Automatic GUI for python script with command line arguments? Question: Is there any software that auto generates GUI wrappers around python scripts? My specific scenario is that i wrote a simple script for my father in law to bulk download some stuff from a given url. Normally you just run the script via python my_script.py …

Total answers: 1

Remove Icons of exe Files automatically using jenkins

Remove Icons of exe Files automatically using jenkins Question: I have to change the icons of exe files for some project related work. i know there is a tool called resource hacker is used to remove icons but i need to automate this process(because more exe files). I have automated this process using python but …

Total answers: 1

openpyxl not found in exe file made with pyinstaller

openpyxl not found in exe file made with pyinstaller Question: I wrote a Python code using a virtual evn with pip, and I built it with pyinstaller to use it as executable, and it works. Now I’m moving to conda environment to use also geopandas, fiona and gdal. I can run it without any errors, …

Total answers: 3

Powershell appears after converting program to exe

Powershell appears after converting program to exe Question: I’ve got a program that I converted to an exe using auto-py-to-exe and pyinstaller. The problem is that some commands require powershell, and whenever I use powershell it pops up despite me hiding the console. I run the command like this: command = [POWERSHELL_PATH, ‘-ExecutionPolicy’, ‘Unrestricted’, ‘echo …

Total answers: 2

Python .exe PermissionError: [Errno 13] Permission denied

Python .exe PermissionError: [Errno 13] Permission denied Question: Here’s the code for my reprex: from PyPDF2 import PdfFileReader as rdr from PyPDF2 import PdfFileWriter as wtr import os SELF_PATH = os.path.dirname(__file__) file_name = ‘pdf_file’ in_path = fr'{SELF_PATH}{file_name}.pdf’ assert os.path.isfile(in_path) input = open(in_path, ‘r+b’) reader = rdr(input, strict=False) writer = wtr() orientation = reader.getPage(0).get(‘/Rotate’) for pagenum …

Total answers: 1

ModuleNotFound Pyinstaller

ModuleNotFound Pyinstaller Question: I am using: PyInstaller 5.3 Python 3.9 Windows 11 I have my directories set up like so: Project | + — DoSomething | | | +– doessomething.py | + — GUIs | +–GUI_main.py The .py files contain the following code: doessomething.py def doing(): print(‘Doing’) GUI_main.py from DoSomething.doessomething import * doing() I have …

Total answers: 2

How can I Make an Executable out of VBS Code?

How can I Make an Executable out of VBS Code? Question: (Before we begin, just a note that I’m not an experienced coder. This question is a duplicate, however the referred questions are highly outdated, so some things might have changed in the last 10 years.) I’m attempting to help a project out on GitHub, …

Total answers: 2

OSError: [Errno 8] Exec format error when calling subprocess.Popen on an exe file

OSError: [Errno 8] Exec format error when calling subprocess.Popen on an exe file Question: I’m calling subprocess.Popen on an exe file in this script, and it throws: OSError: [Errno 8] Exec format error: ‘/Users/maxghenis/PolicyEngine/openfisca-us/openfisca_us/tools/dev/taxsim/taxsim35.exe’ The answer to subprocess.Popen(): OSError: [Errno 8] Exec format error in python? suggests adding #!/bin/sh to the top of the shell …

Total answers: 2