[BUG] ModuleNotFoundError: No module named 'qt_gl_preview'

Open
#1,304 1 comment 0 reactions 0 assignees View on GitHub

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
Domain
embedded-iot

Research direction

Start with the linked Raspberry Pi article and the current Picamera2 installation on Bookworm, then check where the example imports qt_gl_preview and whether that module is present or has changed. Done means either the example runs without ModuleNotFoundError or the issue documents the supported replacement or compatibility limitation.

Written by the indexing model from the issue text.

Description

I'm on a raspberry pi 4b running Bookworm.

I'm trying to run the python code here:
[(https://www.raspberrypi.com/news/using-the-picamera2-library-with-tensorflow-lite/)]

but I get a
ModuleNotFoundError: No module named 'qt_gl_preview'

Anyone else have this problem? Did the module change since 2022?

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from raspberrypi/picamera2

All issues in raspberrypi/picamera2

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.