Questions tagged [auto-py-to-exe]

Auto PY to EXE is a .py to .exe converter using a simple graphical interface and PyInstaller in Python.

auto-py-to-exe is a tool to make packaging Python scripts to an executable/bundle on Windows easier. The interface uses Chromes app mode and a small Python server in the backend.

screenshot of auto py to exe running

184 questions
0
votes
1 answer

"ModuleNotFoundError: No module named 'chardet" - when using auto-py-to-exe

I run auto-py-to-exe and got this error after clicking on the .exe file. Any experts here know the problem? (I quite new to Python so hope can explain more in details) File "requests\compat.py", line 11, in ModuleNotFoundError: No module…
acube
  • 25
  • 5
0
votes
0 answers

Using Selenium, openpyxl, pyinstall for transforming into exe file(I tried 3 days all time)

This code is for crawling, finding and and scraping on a particular site. The steps are as follows; Create an Excel file and fill in row 1 Setup for selenium Click certain Xpath and back to the original page using "for" Finding the Xpath class's…
0
votes
0 answers

Can't Find a Usable init.tcl in the Following Directories - Python Tkinter Matplotlib App

I am having an issue with my Python Tkinter(Customtkinter) Matplotlib App, in my pc after I execute the app with auto-py-to-exe (adding the customtkinter directory) its working fine, tried to run it on 4 other PCs but after RUN it crashes due to the…
Dian VK
  • 1
  • 1
0
votes
1 answer

Python application for renaming PDF files not working after conversion to executable (.exe)

I'm working on a Python application that renames PDF files based on certain criteria. I use PySide6 for the GUI, and the application is supposed to read PDF files from a directory and rename them. Here is the snippet that reads the PDF files from a…
Mike
  • 161
  • 1
  • 12
0
votes
0 answers

how to use custom font with auto py to exe and tkextrafont?

Im trying to build an .exe file with auto py to exe. In PyCharm code I provided works fine and the font is displayed correctly but when I build exe file and run it, I get this error: FileNotFoundError: [WinError 2]:…
Paichiwo
  • 1
  • 2
0
votes
0 answers

Easyocr is running fine in the python code, but throwing error when converted into an exe file

This is my python code: import easyocr cropped_image_path = 'D:\\Desktop\\screens\\screens\\1.png' reader = easyocr.Reader(['en']) easy_results = reader.readtext(cropped_image_path) print(easy_results) print("Extracted text is: ",…
Test One
  • 1
  • 1
0
votes
3 answers

Fatal error detected: Module object for pyimod02_importers is NULL

After compiling the python script with auto-py-to-exe, I'm getting this error when I try to open the exe file. There's literally no information about this error on the internet, any ideas? List of the modules I use in the script: import…
0
votes
0 answers

How can I make a python app to a exe file?

I have a python app that downloads video's from youtube. In the IDE (Pycharm), the program works. But when I use auto-py-to-exe then the files are good but then it doesn't work. I add the files that are neccensery for the program to work but It…
Kevin
  • 3
  • 2
0
votes
1 answer

Why does AutoPy fail to merge multiple Python files when they are in different directories?

I have 6 different python files lets say numbered 1 to 6. 1 is the main GUI and based on buttons pressed on main gui, 2 to 6 are executed to perform their respective work. AutoPy merges them into a single window based executable file, but when I run…
0
votes
0 answers

Problems with kivy app after transform .py to .exe or .apk

Problems with kivy app after transform .py to .exe or .apk I'm creating an app so a worker can download pdf with their info in pdf format. I'm using Google drive API and Google sheets API with Google cloud and JSON files, so I have a main.py with my…
0
votes
1 answer

Use Tkinter application as default application

I am learning Tkinter in Python by building a simple Image viewer GUI based application with buttons to open the file explorer and load images by extracting their path. Now, I wanted to use this Tkinter application as default application, which…
0
votes
0 answers

How to resolve findfont error after auto-py-to-exe

I'm using matplotlib to convert some files to pdf. fig.savefig(pdf_folder_path+"\\" + filename) When I run the python code (inside visual code) no errors are shown on the console. But when I use auto-py-to-exe (or pyinstaller) a bunch of errors…
luan
  • 15
  • 3
0
votes
0 answers

ImportError: DLL load failed while importing _greenlet: The specified module could not be found

I tried running the command "python -m auto_py_to_exe" on Visual Studio Code/Command Prompt on a Windows 10 Virtual Machine using Python 3.9.0, Python 3.10.0/3.10.11 as well as Python 3.11. However, I always get the following: Traceback (most recent…
User2000
  • 119
  • 2
  • 8
0
votes
0 answers

Why did auto-py-to-exe create so many files and such a large application?

I used auto-py-to-exe to create an application out of a project I made. The total size of the required files is about 40MB. The libraries imported are -pandas -sklearn.svm -pickle -joblib -warnings -tkinter When I clicked "convert my .py to…
0
votes
0 answers

auto-py-to-exe --- Resolving the path of the exe files and not it instance in AppData\Local\Temp\

I have the following lines in my .py that i convert to an exe one file window based ; source_path = Path(file).resolve() source_dir = source_path.parent I use the pass to access files as config files, so i just need to keep those files in the same…
Vincent.G
  • 1
  • 2