`SaneDev.snap()` raises `SANE_STATUS_INVAL` on Epson `epsonscan2` backend at any depth — works with `scanimage`
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 50/100
Direzione di ricerca
Start by reproducing the Epson failure with the minimal Python example, then inspect SaneDev_snap's sane_read() loop where the issue reports SANE_STATUS_INVAL. Compare its behavior with the successful scanimage run and verify that dev.snap() completes and returns the expected 8-bit image at the reported settings.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Environment
- python-sane: 2.9.2 (both the distro package and a fresh
pip install .from this repo) - Python 3.13.13, openSUSE Leap 16.0
- SANE backend:
epsonscan2:Perfection V39/GT-S650:esci2:usb:ES010D:317 - Scanner: EPSON Perfection V39 / GT-S650 (USB)
Summary
SaneDev.snap() fails with _sane.error: Invalid argument (SANE_STATUS_INVAL) on every scan through the Epson epsonscan2 backend. The failure is independent of scan mode and depth — reproduced at 1-bit lineart and 8-bit grayscale. The same device scans cleanly with scanimage at both depths, so hardware, USB permissions and the backend itself are all functional.
Minimal reproducer
import sane
sane.init()
dev = sane.open("epsonscan2:Perfection V39/GT-S650:esci2:usb:ES010D:317")
dev.mode = "Grayscale"
dev.resolution = 300
dev.start()
print(dev.get_parameters()) # ('gray', 1, (2280, 2280), 8, 2280)
img = dev.snap() # raises _sane.error: Invalid argument
start() and get_parameters() return GOOD; the INVAL is raised inside SaneDev_snap's sane_read() loop. Cross-check: scanimage --mode Grayscale --resolution 300 > test.pnm completes and yields a valid 8-bit PGM.
Please see this issue in scantpaper for more details.
- Lingua principale
- C
- Stelle
- 61
- Fork
- 22
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di python-pillow/Sane
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
python-pillow/Sane#110 · 1 commento · 1 reazione ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
python-pillow/Sane#103 ·
-
Sane leaks filedescriptors Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
python-pillow/Sane#93 ·
-
Cannot push virtual buttons Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
python-pillow/Sane#92 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
python-pillow/Sane#81 · 1 commento ·
Tutte le issue di python-pillow/Sane
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
BasedHardware/omi#15662 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
level/task module/gcp type/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 86/100
hapostgres/pg_auto_failover#1190 ·