[BUG] .setDaemon deprecated

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

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
backend

Research direction

Search the repository for the four uses of .setDaemon mentioned in the issue and inspect how each thread is initialized. Replace the deprecated usage with the supported daemon configuration, then run the existing tests or GitHub Actions to confirm the deprecation warnings are gone.

Written by the indexing model from the issue text.

Description

Hey,

since python 3.10 the use of .setDaemon is deprecated in favor of the property when initiating the object (..., daemon=True, ...)

https://docs.python.org/3/library/threading.html#threading.Thread.setDaemon

It's used 4 times in picamera2, and I get warnings about this in my github actions.

Maybe you want to replace it?

Thx!

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.