sdl2 – ImportError: DLL load failed: The specified module could not be found and [CRITICAL] [App] Unable to get a Window, abort

I had the same problem. I solved this by removing Kivy and its dependencies first. python -m pip uninstall kivy python -m pip uninstall kivy.deps.sdl2 python -m pip uninstall kivy.deps.glew python -m pip uninstall kivy.deps.gstreamer python -m pip uninstall image Now reinstalling everything except gstreamer. python -m pip install –upgrade pip wheel setuptools python -m … Read more

Kivy: compiling to a single executable

Based on the links provided by KeyWeeUsr (Bundling data files with PyInstaller and Using PyInstaller to make EXEs from Python scripts) and combining that with Kivy’s resource path method, here’s a workable solution. I feel it’s a bit rough around the edges because it uses SYS._MEIPASS (I would prefer a public API) and requires adding … Read more

Kivy not working (Error: Unable to find any valuable Window provider.)

You’re probably missing some dependencies. From the docs: Install the dependencies (skip gstreamer (~120MB) if not needed, see Kivy’s dependencies): python -m pip install docutils pygments pypiwin32 kivy.deps.sdl2 kivy.deps.glew; python -m pip install kivy.deps.gstreamer To install these dependencies, open up a terminal (can be a console, Pycharm Terminal window, etc.), run the first command and … Read more

Pyinstaller adding data files

As others (@Anson Chan, @schlimmchen) have said: If you want to add some extra files, you should use Adding Data Files. Two ways to implement Command Line: add parameter to –add-data Spec file: add parameter to datas= Generated when running pyinstaller the first time. Then later you can edit your *.spec file. Then running pyinstaller … Read more