Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kameratreiber veraltet? #15

Open
McKaiver opened this issue Jun 17, 2024 · 0 comments
Open

Kameratreiber veraltet? #15

McKaiver opened this issue Jun 17, 2024 · 0 comments

Comments

@McKaiver
Copy link

Hallo zusammen,

dieser Befehl führt bei mir zu keinem Ergebnis:
sudo apt-get install python3-picamera

ich habe es mit
sudo apt-get install python3-picamera2
versucht

Allerdings funktioniert das Skript nicht mehr, da Zeile 9:
import picamera # camera driver

und Zeile 313:
self.camera = picamera.PiCamera()

darauf verweisen. ich habe dort jeweils picamera durch picamera2 ersetzt, doch jetzt kommt beim Start des Skriptes folgendes:
Fotobox@Fotobox:~ $ python3 /home/Fotobox/Photobooth/photobooth.py /home/Fotobox/Photobooth/photobooth.py:971: SyntaxWarning: "is" with a literal. Did you mean "=="? if printerstate.get("printer-state-message") is "": Exception ignored in: <function Photobooth.__del__ at 0x65c80118> Traceback (most recent call last): File "/home/Fotobox/Photobooth/photobooth.py", line 370, in __del__ self.stoppreview() File "/home/Fotobox/Photobooth/photobooth.py", line 1037, in stoppreview self.camera.stop_preview() ^^^^^^^^^^^ AttributeError: 'Photobooth' object has no attribute 'camera'
Wie bekommt man das also gelöst?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant