auto-py-to-exe

How to get the correct path to a json file from the customtkinter module

How to get the correct path to a json file from the customtkinter module Question: I made my GUI using customtkinter. I used auto-py-to-exe to make it an file. The exe file doesn’t open because of an theme json file missing error. The path to the correct file is /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/customtkinter/assets/themes/blue.json. It caused this error when …

Total answers: 1

Can't make executable file from eel app in python

Can't make executable file from eel app in python Question: When I try to create an executable with auto_py_to_exe it builds fine, but when I run it it throws an error: Failed to execute script ‘main’ due to unhandled exception: ‘NoneType’ object has no attribute ‘write’ Traceback (most recent call last): File "main.py", line 1, …

Total answers: 1

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

How to resolve ModuleNotFoundError: No module named 'pandas'

How to resolve ModuleNotFoundError: No module named 'pandas' Question: I have this script that I originally created in Jupyter Notebooks and I saved it later on as a .py file, then I used auto-py-to-exe to convert it to an exe file. When it runs it gives me this error: ModuleNotFoundError: No module named ‘pandas’ [23712] …

Total answers: 1

PyInstaller – FileNotFoundError: [Errno 2] No such file or directory

PyInstaller – FileNotFoundError: [Errno 2] No such file or directory Question: I’m not too familiar with using PyInstaller but I have been trying to use it to convert my .py files to a single exe. I am using Windows 10 with Python 3.10.5 and PyInstaller 5.2. My files look like the following: Scripts Folder -venv …

Total answers: 2

Python exe file – ImportError: ERROR: recursion is detected during loading of "cv2" binary extensions. Check OpenCV installation

Python exe file – ImportError: ERROR: recursion is detected during loading of "cv2" binary extensions. Check OpenCV installation Question: i am trying to create an exe python file but i keep facing these errors. Environment: Windows 10 PyInstaller: 5.2 Python: 3.10.5 opencv-python 4.6.0.66 Terminal error when i click the exe file. I uploaded the code …

Total answers: 1