Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pyinstaller with kivy - No module named 'kivy_deps'

I am attempting to create an executable with Kivy using pyinstaller. I am following the official instructions from Kivy. But when attempting to run the .spec file I get the error No module named 'kivy_deps'. Specifically when I add this line to the .spec file

from kivy_deps import sdl2, glew

I've installed everything with anaconda and I get no issues when running the actual python file. I've tried ignoring the sdl2 and glew instructions and pysintaller runs without issues. But the .exe won't start. A black screen will flash and then close.

Packages installed:

conda install -c conda-forge pyinstaller 
conda install -c conda-forge kivy
conda install -c anaconda pandas

Am I missing some dependencies that don't come with the conda package?

like image 812
mconn Avatar asked Sep 13 '25 22:09

mconn


1 Answers

You can get the missing dependancies from pip by running:

pip install kivy-deps.sdl2
pip install kivy-deps.glew

For some reason conda does not install those by default

like image 164
Gabo_Tor Avatar answered Sep 15 '25 12:09

Gabo_Tor