[Raspbian jessie] Impossible de lancer un script python (pour activer une caméra)
Bonjour,
J'essaye de suivre ce tutoriel: https://learn.adafruit.com/diy-wifi-...h-cam/pi-setup
pour transformer un raspberry pi en appareil photo. Le problème c'est que lorsque je lance le script: cam.py je reçois ce message d'erreur:
Code:
1 2 3 4 5 6 7 8 9
| PuTTY X11 proxy: Unsupported authorisation protocol
PuTTY X11 proxy: Unsupported authorisation protocol
xcb_connection_has_error() returned true
PuTTY X11 proxy: Unsupported authorisation protocol
xcb_connection_has_error() returned true
Traceback (most recent call last):
File "cam.py", line 569, in <module>
pygame.mouse.set_visible(False)
pygame.error: video system not initialized |
du coup j'ai essayé en éditant le fichier et en rejoutant pygame.init() et voila la nouvelle erreur qui est apparue:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
PuTTY X11 proxy: Unsupported authorisation protocol
PuTTY X11 proxy: Unsupported authorisation protocol
xcb_connection_has_error() returned true
PuTTY X11 proxy: Unsupported authorisation protocol
xcb_connection_has_error() returned true
^CTraceback (most recent call last):
File "cam.py", line 619, in <module>
camera.capture(stream, use_video_port=True, format='raw')
File "/usr/lib/python2.7/dist-packages/picamera/camera.py", line 1573, in capture
if not encoder.wait(self.CAPTURE_TIMEOUT):
File "/usr/lib/python2.7/dist-packages/picamera/encoders.py", line 848, in wait
result = self.event.wait(timeout)
File "/usr/lib/python2.7/threading.py", line 621, in wait
self.__cond.wait(timeout)
File "/usr/lib/python2.7/threading.py", line 359, in wait
_sleep(delay)
KeyboardInterrupt |
La caméra semble allumée mais je n'ai rien sur l'écran que j'ai attaché au raspberry :(
Quelqu'un saurait comment résoudre ce problème ?
Merci d'avance :)