question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Raspberry Pi 3B+: No available video device

See original GitHub issue

Versions

  • Python: 3.5.3
  • OS: Raspbian Stretch Lite
  • Kivy: 1.11.0.dev0
  • Kivy installation method: sudo pip3 install git+https://github.com/kivy/kivy.git@master

Description

Just installed Kivy on the latest Raspbian Stretch Lite using this command:

sudo pip3 install Cython
sudo pip3 install git+https://github.com/kivy/kivy.git@master

And got this error: pasted file at february 7 2019 12_50 pm

Kivy info: pasted file at february 7 2019 12_57 pm

NOTE: I have been installing Kivy on several RPi’s for over 3 months. It has been working well, but suddenly stopped working today.

Any idea?

P.S. I had to set KIVY_GL_BACKEND environment variable to gl to get it working before.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
mathamcommented, Jun 13, 2019

I was having similar issues. The problem seems to be that for some reason sdl2_image is unable to load these images - I think the sdl2_image version is too old.

The solution is to install pillow. I’ll add that to the docs.

1reaction
mandoodecommented, Jun 19, 2019

@matham, thanks for responding. I checked my pip3 list, and I see Pillow (6.0.0) is already installed, but I will pull the latest and rebuild.

I did get kivy to get a window by changing the raspberry pi GL driver using raspi-config (I had to choose the legacy “G3” non-gl desktop driver so graphics are really slow).

My env settings where kivy can get a window with my current git clone are :

Screen Shot 2019-06-19 at 2 30 09 PM

shell env: KIVY_GL_BACKEND=gl and KIVY_WINDOW=egl_rpi

As soon as I change back to the main driver, kivy can’t get a window:

Screen Shot 2019-06-19 at 2 25 03 PM

When trying KIVY_WINDOW=sdl2, I also get the Unable to get a Window.

Read more comments on GitHub >

github_iconTop Results From Across the Web

SDL2 error: No available video device - Raspberry Pi Forums
Hi, I am attempting to run a Kivy application on my pi 3. I had a Wheezy image for pi 2 ... sdl2...
Read more >
Raspberry Pi 3 B+: Many video devices are showing
Why it is showing multiple video devices? What is the meaning of video10 etc? While working, using video0 and video2 , camera get...
Read more >
7 Causes for a Raspberry Pi That Won't Boot (And How to Fix ...
6. No Video Output on Your Raspberry Pi? ... Your Raspberry Pi cannot display any video without a bootable SD card present and...
Read more >
SDL2 on Raspberry Pi 4: SDL Initialization failed No available ...
When initializing SDL. I am not sure what video system is being used because the configuration command disables mir wayland x11 and opengl....
Read more >
Setting up your Raspberry Pi
To connect to a power socket, all Raspberry Pi models have a USB port (the same found on many mobile phones): either USB-C...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found