I'm currently working on a kivy application and im using the WSL(windows subsystem for Linux) with the Ubuntu distribution. When i try running a basic kivy app with python, i keep getting this error
> [INFO ] [Logger ] Record log in /home/nkehj/.kivy/logs/kivy_25-04-17_7.txt
[INFO ] [Kivy ] v2.3.1
[INFO ] [Kivy ] Installed at "/mnt/c/Users/nkehj/Documents/kivy_app/Ukivy_venv/lib/python3.12/site-packages/kivy/__init__.py"
[INFO ] [Python ] v3.12.3 (main, Feb 4 2025, 14:48:35) [GCC 13.3.0]
[INFO ] [Python ] Interpreter at "/mnt/c/Users/nkehj/Documents/kivy_app/Ukivy_venv/bin/python"
[INFO ] [Logger ] Purge log fired. Processing...
[INFO ] [Logger ] Purge finished!
[INFO ] [Factory ] 195 symbols loaded
[INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_pil (img_ffpyplayer ignored)
[INFO ] [Window ] Provider: sdl2
Segmentation fault (core dumped) I tried asking AI about it and they suggest it's an issue with the sdl2 library. They recommended i install py-sdl2 or pysdl2, which i did and yet nothing works. I still keep getting the same issue. I'd appreciate some help here please.
This is my main.py python file
from kivy.app import App
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.button import Button
# from kivymd.uix.button import MDIconButton # for Material Design buttons
class CommunityApp(App):
def build(self):
return BoxLayout(minimum_size= (720,1600))
if __name__ == '__main__':
CommunityApp().run()