pyinstaller

Docker Minimal Image PyInstaller Binary File?

时光毁灭记忆、已成空白 提交于 2020-07-23 09:11:24
问题 So I have a Docker image that basically consists of compiling python source code to standalone executable with RUN pyinstaller --onefile app.py in the build stage (after all deps for pyinstaller and python installed). It then copies the standalone executable to a scratch image using COPY --from=builder /dist/app /app . It executes the binary on entrypoint. However in the scratch image, I am getting standard_init_linux.go:211: exec user process caused "no such file or directory" error when the

Docker Minimal Image PyInstaller Binary File?

[亡魂溺海] 提交于 2020-07-23 09:11:17
问题 So I have a Docker image that basically consists of compiling python source code to standalone executable with RUN pyinstaller --onefile app.py in the build stage (after all deps for pyinstaller and python installed). It then copies the standalone executable to a scratch image using COPY --from=builder /dist/app /app . It executes the binary on entrypoint. However in the scratch image, I am getting standard_init_linux.go:211: exec user process caused "no such file or directory" error when the

Docker Minimal Image PyInstaller Binary File?

♀尐吖头ヾ 提交于 2020-07-23 09:09:04
问题 So I have a Docker image that basically consists of compiling python source code to standalone executable with RUN pyinstaller --onefile app.py in the build stage (after all deps for pyinstaller and python installed). It then copies the standalone executable to a scratch image using COPY --from=builder /dist/app /app . It executes the binary on entrypoint. However in the scratch image, I am getting standard_init_linux.go:211: exec user process caused "no such file or directory" error when the

How to fix the “WARNING: Hidden import” error pygame._view “not found!” after I turned my .py program into .exe?

眉间皱痕 提交于 2020-07-22 10:06:06
问题 After converting my .py program to .exe, my program stops running. I get the WARNING: Hidden import information pygame._view "not found!" . I tried to import the module but that does not exist. I have searched for solutions on the internet but I have found nothing useful. Many replies said this problem in newer pygame versions did not exist, and the rest of the answers did not help. But this is the newest version. More information about Pygame and Pyinstaller and about my code: https://repl

How to fix the “WARNING: Hidden import” error pygame._view “not found!” after I turned my .py program into .exe?

拈花ヽ惹草 提交于 2020-07-22 10:05:06
问题 After converting my .py program to .exe, my program stops running. I get the WARNING: Hidden import information pygame._view "not found!" . I tried to import the module but that does not exist. I have searched for solutions on the internet but I have found nothing useful. Many replies said this problem in newer pygame versions did not exist, and the rest of the answers did not help. But this is the newest version. More information about Pygame and Pyinstaller and about my code: https://repl

Licenses for dependencies with Pyinstaller

岁酱吖の 提交于 2020-07-20 06:36:16
问题 I have an application I have written in Python, that is being packaged with Pyinstaller. From what I understand (and I am not a lawyer) and from the Pyinstaller FAQ bundling the source code and distributing with my own license seems like it is OK (points 1 and 2). I have no intention of modifying the Pyinstaller source in anyway, so I don't believe there are any issues here (relating to the Pyinstaller GPL license, points 4 and 5). My question is specifically about my dependencies, beyond the

Getting Pyinstaller to recognize the path to Kivy Garden Matplotlib modules

笑着哭i 提交于 2020-07-19 04:41:19
问题 This is similar to: Kivy Garden in PyInstaller - stuck trying to trace import except that I'll provide much more detail to hopefully make this easier for someone to test out and provide a concrete solution.... I've built a Python 2.7.13 application using Kivy 1.9.1 and am attempting to package it for Windows, within Windows 10, with Pyinstaller. In short - I cannot get Pyinstaller to pick up the Garden modules - specifically the matplotlib module, which I am using to display data. This garden

PyInstaller .exe file terminates early without an error message

蓝咒 提交于 2020-07-09 11:52:04
问题 I have been trying to use PyInstaller to distribute my program as a bundled .exe file to my colleagues. The program, which analyses text data, runs perfectly from my CMD. I am using PyInstaller 3.6, Python 3.7, Windows 10, and Anaconda3 as my python environment. The program has quite a few dependencies including nltk, gensim, wordcloud, sklearn, matplotlib, mpld3, seaborn, pandas, numpy, xlsxwriter and a few standard libraries. It is also quite a long program, ~2000 lines. The Problem: So far

“tcl\encoding\ascii.enc could not be extracted” for pyinstaller-frozen .exe - Windows

隐身守侯 提交于 2020-07-09 08:20:27
问题 A Python 2.7 script frozen into .exe using pyinstaller has worked successfully for a number of users on many different Windows networks for months. This morning, one group of users on one Windows network, and ONLY these three and ONLY this office (who has successfully run the program before), gets an error when they execute the .exe: tcl\encoding\ascii.enc could not be extracted! fopen: Permission denied This makes me suspect they've suddenly changed file permissions or security on their

Error when running pyinstaller (1920, 'LoadLibraryEx', 'System cannot access the file')

时光怂恿深爱的人放手 提交于 2020-07-09 07:33:40
问题 Im trying to compile my python script to an exe so that i can send it to friends that can use with without having to install python, but im running into an issue and cant find a solution. i found a similar issue at Pyinstaller win32ctypes.pywin32.pywintypes.error: (1920, 'LoadLibraryExW', 'System cannot access the file') but cant post there except as a answer, i tried to add permissions and unhide the 'WindowsApps' folder but nothing seems to work. Here is what cmd is giving me when running