Why is it saying no available video device?

Question:
Why is it saying no available video device
Repl link:
https://replit.com/@Shayaank77/Tetris-99

code snippet

WIN = pygame.display.set_mode((WIDTH, HEIGHT))

Click Files > ⋮ > Show hidden files. Copy the pygame replit.nix into your repl.

copy it onto my main?

replace the replit.nix file in your repl with the replit.nix file I linked

It has started creating errors

ah, didn’t realise that the pygame template uses an outdated nix channel. Replace xlibs with xorg in the replit.nix file

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.