[BUG] AttributeError: module 'kms' has no attribute 'PixelFormat'
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 30/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- python, raspberry-pi
- Domain
- embedded-iot
Research direction
Start with the import traceback and inspect picamera2/previews/drm_preview.py, especially the DrmPreview references to pykms.PixelFormat. Reproduce the import on Raspberry Pi with Python 3.9 and Debian 12, then verify that the package imports successfully without the AttributeError.
Written by the indexing model from the issue text.
Description
Hello,
Describe the bug
I am trying to import the module picamera2 using python 3.9.6 on my raspberry pi4 with Debian 12 OS
Console Output, Screenshots
import picamera2
Traceback (most recent call last):
File "", line 1, in
File "/home/louis/.local/lib/python3.9/site-packages/picamera2/init.py", line 9, in
from .picamera2 import Picamera2, Preview
File "/home/louis/.local/lib/python3.9/site-packages/picamera2/picamera2.py", line 28, in
from picamera2.previews import DrmPreview, NullPreview, QtGlPreview, QtPreview
File "/home/louis/.local/lib/python3.9/site-packages/picamera2/previews/init.py", line 1, in
from .drm_preview import DrmPreview
File "/home/louis/.local/lib/python3.9/site-packages/picamera2/previews/drm_preview.py", line 48, in
class DrmPreview(NullPreview):
File "/home/louis/.local/lib/python3.9/site-packages/picamera2/previews/drm_preview.py", line 50, in DrmPreview
"RGB888": pykms.PixelFormat.RGB888,
AttributeError: module 'kms' has no attribute 'PixelFormat'
Hardware :
I am using the Raspberry Pi 4 with the Pi Camera v2.1
- Dominant language
- Python
- Stars
- 1.2k
- Forks
- 258
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from raspberrypi/picamera2
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
raspberrypi/picamera2#1405 · 3 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
raspberrypi/picamera2#1404 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 57/100
raspberrypi/picamera2#1403 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
raspberrypi/picamera2#1392 · 13 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
raspberrypi/picamera2#1389 · 4 comments ·
All issues in raspberrypi/picamera2
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
bancolombia/sentinel#23 ·
-
test md OpenCI
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
bug client
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100