pyinsane2.init error
hello.
I'am trying to use this library to scan some document.
here is my stuff
- ubuntu
- python 3.5
- devices = plustek smartoffice ps396
I ran my code and got some error
Traceback (most recent call last):
File "test.py", line 5, in <module>
pyinsane2.init()
File "/root/project/python-project/scanner-fisipol/env/lib/python3.5/site-packages/pyinsane2/sane/abstract.py", line 45, in init
sane_init()
File "/root/project/python-project/scanner-fisipol/env/lib/python3.5/site-packages/pyinsane2/sane/rawapi.py", line 525, in sane_init
assert(sane_available)
AssertionError
here my code:
import pyinsane2.sane.abstract as pyinsane2
# import pyinsane2
if __name__ == '__main__':
pyinsane2.init()
try:
devices = pyinsane2.get_devices()
assert(len(devices) > 0)
device = devices[0]
print("I'm going to use the following scanner: %s" % (str(device)))
scanner_id = device.name
finally:
pyinsane2.exit()
my devices connect in my linux in dmesg
[ 1194.325071] usb 1-1: New USB device found, idVendor=07b3, idProduct=1404
[ 1194.325084] usb 1-1: New USB device strings: Mfr=10, Product=11, SerialNumber=12
[ 1194.325094] usb 1-1: Product: ADF Scanner
[ 1194.325095] usb 1-1: Manufacturer: Plustek INC
[ 1194.325096] usb 1-1: SerialNumber: 1
can someone help me pls.
thanks