Error while scanning with Epson Perfection v19
Hi,
I get the following error when I try running the Simple Scan example program with my Epson Perfection V19. I'm not sure what's wrong. Clearly it;s able to find the scanner. The error seems to occur at scan_session = device.scan(multiple=False)
INFO Pyinsane_daemon Ready
I'm going to use the following scanner: 'imagescan:esci:gt-s650:usb:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.2/1-1.2:1.0' (EPSON, Epson_Perfection_V19, )
WARNING Pyinsane_daemon Exception
Traceback (most recent call last):
File "/home/nchecka/.virtualenvs/work-py3/lib/python3.5/site-packages/pyinsane2/sane/daemon.py", line 138, in main_loop
result['out'] = f(*cmd['args'], **cmd['kwargs'])
File "/home/nchecka/.virtualenvs/work-py3/lib/python3.5/site-packages/pyinsane2/sane/daemon.py", line 53, in make_scan_session
scan_session = get_device(scanner_name).scan(multiple)
File "/home/nchecka/.virtualenvs/work-py3/lib/python3.5/site-packages/pyinsane2/sane/abstract.py", line 462, in scan
scan = SingleScan(self)
File "/home/nchecka/.virtualenvs/work-py3/lib/python3.5/site-packages/pyinsane2/sane/abstract.py", line 279, in __init__
self._init()
File "/home/nchecka/.virtualenvs/work-py3/lib/python3.5/site-packages/pyinsane2/sane/abstract.py", line 186, in _init
rawapi.sane_start(sane_dev_handle[1])
File "/home/nchecka/.virtualenvs/work-py3/lib/python3.5/site-packages/pyinsane2/sane/rawapi.py", line 696, in sane_start
raise SaneException(SaneStatus(status))
pyinsane2.sane.rawapi.SaneException: <class 'pyinsane2.sane.rawapi.SaneStatus'> : Operation was cancelled (2)
INFO Pyinsane_daemon Daemon stopped
Traceback (most recent call last):
File "scannertest.py", line 20, in <module>
scan_session = device.scan(multiple=False)
File "/home/nchecka/.virtualenvs/work-py3/lib/python3.5/site-packages/pyinsane2/sane/abstract_proc.py", line 268, in scan
return ScanSession(self, multiple)
File "/home/nchecka/.virtualenvs/work-py3/lib/python3.5/site-packages/pyinsane2/sane/abstract_proc.py", line 208, in __init__
self._remote_session = remote_do('scan', scanner.name, multiple)
File "/home/nchecka/.virtualenvs/work-py3/lib/python3.5/site-packages/pyinsane2/sane/abstract_proc.py", line 74, in remote_do
raise exc_class(*result['exception_args'])
pyinsane2.sane.rawapi.SaneException: <class 'pyinsane2.sane.rawapi.SaneStatus'> : Operation was cancelled (2)
In addition, I tried running ironscanner. Once again, it's able to identify the scanner. Here's the system info that's outputted:
System informations that will be attached to the report:
- platform_uname: uname_result(system='Linux', node='XPS', release='4.13.0-45-generic', version='#50~16.04.1-Ubuntu SMP Wed May 30 11:18:27 UTC 2018', machine='x86_64', processor='x86_64')
- proc: x86_64
- mem: 16668307456
- system: Linux
- machine: x86_64
- nb_cpus: 8
- python: 3.5.3 (default, Jan 19 2017, 14:11:04)
[GCC 6.3.0 20170118]
- arch: ('64bit', 'ELF')
- swap: 17022578688
- cpu_freq: 3500
- os_uname: posix.uname_result(sysname='Linux', nodename='XPS', release='4.13.0-45-generic', version='#50~16.04.1-Ubuntu SMP Wed May 30 11:18:27 UTC 2018', machine='x86_64')
- type: posix
- platform_detailed: Linux-4.13.0-45-generic-x86_64-with-Ubuntu-16.04-xenial
- release: 4.13.0-45-generic
- platform_short: linux
Once again, I get an exception:
INFO ### SCAN TEST ###
INFO Configuring scanner: mode = Color
INFO [mode] set to [Color]
INFO Configuring scanner: source = Document Table
INFO Configuring scanner: resolution = 50
INFO [resolution] set to [50]
INFO Maximizing scan area ...
INFO Starting scan session ...
ERROR Unexpected exception while calling <bound method Scanner.scan of <pyinsane2.sane.abstract_proc.Scanner object at 0x7f9114bcb4e0>>
Traceback (most recent call last):
File "site-packages/ironscanner-1.1.0-py3.5.egg/ironscanner/trace.py", line 35, in run
File "site-packages/pyinsane2-2.0.12-py3.5.egg/pyinsane2/sane/abstract_proc.py", line 267, in scan
File "site-packages/pyinsane2-2.0.12-py3.5.egg/pyinsane2/sane/abstract_proc.py", line 208, in __init__
File "site-packages/pyinsane2-2.0.12-py3.5.egg/pyinsane2/sane/abstract_proc.py", line 74, in remote_do
pyinsane2.sane.rawapi.SaneException: <class 'pyinsane2.sane.rawapi.SaneStatus'> : Operation was cancelled (2)
INFO ### SCAN TEST FAILED ###
Traceback (most recent call last):
File "site-packages/ironscanner-1.1.0-py3.5.egg/ironscanner/main.py", line 737, in run
File "site-packages/ironscanner-1.1.0-py3.5.egg/ironscanner/trace.py", line 77, in trace
File "site-packages/ironscanner-1.1.0-py3.5.egg/ironscanner/trace.py", line 35, in run
File "site-packages/pyinsane2-2.0.12-py3.5.egg/pyinsane2/sane/abstract_proc.py", line 267, in scan
File "site-packages/pyinsane2-2.0.12-py3.5.egg/pyinsane2/sane/abstract_proc.py", line 208, in __init__
File "site-packages/pyinsane2-2.0.12-py3.5.egg/pyinsane2/sane/abstract_proc.py", line 74, in remote_do
pyinsane2.sane.rawapi.SaneException: <class 'pyinsane2.sane.rawapi.SaneStatus'> : Operation was cancelled (2)
I've tried running the scanner with the Epson Image Scan software on Ubuntu and it scans just fine.
Any help would be much appreciated!
Thanks, Neal
Edited by Jerome Flesch