1

I am new to Python so please be kind ;) I am trying to start the Adafruit Video Looper from a python script.

Basically I have this code:

from pi_video_looper.Adafruit_Video_Looper.video_looper import VideoLooper

looper = VideoLooper(os.path.abspath("video_looper.ini"))

But it throws this error:

File "/home/pi/pi_video_looper/Adafruit_Video_Looper/video_looper.py",  line 70, in __init__
pygame.display.init()
pygame.error: Unable to open a console terminal

What can I do?

  • 1
    I would comment if i could by i don't have enough reputation. Have you tried running your python script with sudo? My first guess would be permissions issuse, which may be solved with sudo. Hope this helps. – LecauseAndThePi Oct 2 '17 at 15:05
  • Are you running this within the Raspbian Desktop ? – CoderMike Oct 2 '17 at 15:27
  • I run that from an SSH session… – philipp Oct 2 '17 at 15:47
  • @LecauseAndThePi Your Guess seams to be right… Works if I run that as root, if you answer i will accept – philipp Oct 2 '17 at 15:48
0

I would comment if i could by i don't have enough reputation. Have you tried running your python script with sudo? My first guess would be permissions issuse, which may be solved with sudo. Hope this helps.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.