mirror of
https://github.com/brentvollebregt/auto-py-to-exe.git
synced 2026-04-25 19:55:49 +03:00
[GH-ISSUE #194] Getting issues applying tensorflow imports #177
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @PedroFumero on GitHub (Sep 1, 2021).
Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/194
Hello, I've created an application using tkinter, medipipe, tensorflow and custom models, but at the moment of generate the folder with my files including .exe, the log shows me some issues related to tensorflow, I really don't understand why it's not capable of getting the tensorflow files because all the stuff are in the virtual environment and it's working:
At the moment of execute pyinstaller all the stuff I'm giving to it is as follows:
pyinstaller --noconfirm --onedir --windowed --icon "D:/TG/img/app_icon.ico" --clean --add-data "D:/TG/img;img/" --add-data "D:/TG/classes;classes/" --add-data "D:/TG/models;models/" --add-data "D:/TG/utils/keyboard;utils/keyboard/" --additional-hooks-dir "D:/TG/hooks" "D:/TG/main.py"@PedroFumero commented on GitHub (Sep 2, 2021):
I was able to solve the problem, after activating the shell mode, I could see that the problem had to do with the mediapipe library and some files that it was not recognizing, I manually added the mediapipe folder as a flag:
--add-data "D: /TG/.TG/Lib/site-packages/mediapipe; mediapipe /"
And after finishing the freezing process the program works correctly.