rubatopy / rubato

A lightweight, developer-first game engine built for Python
https://rubato.app
GNU General Public License v3.0
23 stars 1 forks source link

Repl.it doesn't work #446

Open mrElnekave opened 1 year ago

mrElnekave commented 1 year ago

Describe the bug

Recently Repl.it upgraded to 3.10.6 for python, meaning we could theoretically run rubato there. But when you try initializing rubato it can't make a window. Looking further in the sdl2/ext/window it says the video system wasn't initialized. This is usually done in sdl2.SDL_Init(sdl2.SDL_INIT_EVERYTHING) in our init, but it seems to be failing.

We should: a) find a fix. b) notice when sdl2 init fails and raise our own error.

Background: I think Replit is running on Ubuntu.

Version

1.0.0

OS

Linux

Logs

No response

Code of Conduct

mrElnekave commented 1 year ago

Update: SDL2 cannot find a video device in replit. image

Possible fix? See how pygame does it, also there are people who use sdl2 in c++ on replit.

tinmarr commented 1 year ago

You need to use repl.it with a turtle window (not tested).

tinmarr commented 1 year ago

We need to have a better understanding of how poetry works (the package manager used in repl.it). I don't think it's an issue on our end.