threading.Thread.isAlive() is removed in python3.9 - use threading.Thread.is_alive()
Bug #1889280 reported by
zdohnal
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HPLIP |
Fix Released
|
Undecided
|
Unassigned | ||
Fedora |
Unknown
|
Undecided
|
Bug Description
Hi,
python3.9 removed a deprecated method of threading.Thread object - isAlive(). The new function is is_alive().
hp-scan (and probably copy and fax tools too, because they use the removed method too, but I didn't test those) tracebacks without the attached patch.
Traceback is in Fedora bug.
Would you mind adding the patch to HPLIP project?
Thank you in advance and have a nice day,
Zdenek Dohnal
RHEL/CentOS/Fedora hplip maintainer
Changed in fedora: | |
importance: | Unknown → Undecided |
To post a comment you must log in.
Description of problem:
trying to scan a document with hp-scan I get the following traceback
Page 1: Scanning... waitForScanActi ve() hplip/scan/ sane.py" , line 403, in waitForScanActive thread. isAlive( ) and \
Closing device.
Traceback (most recent call last):
File "/usr/bin/hp-scan", line 1315, in <module>
device.
File "/usr/share/
if self.scan_
AttributeError: 'ScanThread' object has no attribute 'isAlive'
Version-Release number of selected component (if applicable): 20.6-1. fc33.x86_ 64
hplip-3.
How reproducible:
always
Steps to Reproduce: net/HP_ Color_LaserJet_ MFP_M277dw? ip=x.x. x.x -m lineart
1. hp-scan --adf -o out.pdf -d hpaio:/
2.
3.
Actual results:
Expected results:
Additional info: