Hello,
I’ve just installed Paperwork on a Debian testing machine (‘bullseye’) using flatbak. According to the splash screen I am using Paperwork 1.3.1-27-g69075a47.
Unfortunately, scanning does not work using my Brother ADS-2100e – which has been running fine earlier with Debian stable and the flatpak.
When I try to scan, Paperwork asks me if the scanner is turned on. In the terminal, I get the following messages:
INFO paperwork.frontend.util.config Will scan using sane:net:127.0.0.1:brother4:bus3;dev1
INFO paperwork.paperwork ../subprojects/libinsane/src/bases/sane.c:L212(ensure_sane_is_init): Sane version code: 0x100001B
INFO paperwork.paperwork ../subprojects/libinsane/src/bases/sane.c:L385(lis_sane_get_device): Sane: get_device(net:127.0.0.1:brother4:bus3;dev1) ...
ERROR paperwork.paperwork ../subprojects/libinsane/src/workarounds/cache.c:L568(cache_get_device): Failed to get_device(sane:net:127.0.0.1:brother4:bus3;dev1): 0x40000003, Invalid value
ERROR paperwork.paperwork ../subprojects/libinsane/src/normalizers/source_nodes.c:L442(lis_sn_get_device): wrapped->get_device() failed: 0x40000003, Invalid value
WARNING paperwork.frontend.util.config Exception while configuring scanner: <class 'gi.repository.GLib.GError'>: libinsane-quark: Libinsane get devices error: 0x40000003, Invalid value (4)
ERROR paperwork.frontend.util.config libinsane-quark: Libinsane get devices error: 0x40000003, Invalid value (4)
Traceback (most recent call last):
File "/app/lib/python3.7/site-packages/paperwork-1.3.1-py3.7.egg/paperwork/frontend/util/config.py", line 350, in get_scanner
return _get_scanner(config, libinsane, devid, preferred_sources)
File "/app/lib/python3.7/site-packages/paperwork-1.3.1-py3.7.egg/paperwork/frontend/util/config.py", line 300, in _get_scanner
dev = libinsane.get_device(devid)
gi.repository.GLib.GError: libinsane-quark: Libinsane get devices error: 0x40000003, Invalid value (4)
INFO paperwork.paperwork ../subprojects/libinsane/src/bases/sane.c:L311(lis_sane_list_devices): Sane: list_devices() ...
INFO paperwork.paperwork ../subprojects/libinsane/src/bases/sane.c:L364(lis_sane_list_devices): Sane: list_devices(): 1 devices found
INFO paperwork.frontend.util.config Will try another scanner id: sane:net:127.0.0.1:brother4:bus3;dev2
INFO paperwork.frontend.util.config Will scan using sane:net:127.0.0.1:brother4:bus3;dev2
INFO paperwork.paperwork ../subprojects/libinsane/src/bases/sane.c:L385(lis_sane_get_device): Sane: get_device(net:127.0.0.1:brother4:bus3;dev2) ...
ERROR paperwork.paperwork ../subprojects/libinsane/src/workarounds/cache.c:L568(cache_get_device): Failed to get_device(sane:net:127.0.0.1:brother4:bus3;dev2): 0x40000003, Invalid value
ERROR paperwork.paperwork ../subprojects/libinsane/src/normalizers/source_nodes.c:L442(lis_sn_get_device): wrapped->get_device() failed: 0x40000003, Invalid value
WARNING paperwork.frontend.mainwindow Exception while configuring scanner: <class 'gi.repository.GLib.GError'>: libinsane-quark: Libinsane get devices error: 0x40000003, Invalid value (4). Assuming scanner is not connected
ERROR paperwork.frontend.mainwindow libinsane-quark: Libinsane get devices error: 0x40000003, Invalid value (4)
Traceback (most recent call last):
File "/app/lib/python3.7/site-packages/paperwork-1.3.1-py3.7.egg/paperwork/frontend/util/config.py", line 367, in get_scanner
config, libinsane, devices[0].get_dev_id(), preferred_sources
File "/app/lib/python3.7/site-packages/paperwork-1.3.1-py3.7.egg/paperwork/frontend/util/config.py", line 300, in _get_scanner
dev = libinsane.get_device(devid)
gi.repository.GLib.GError: libinsane-quark: Libinsane get devices error: 0x40000003, Invalid value (4)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/app/lib/python3.7/site-packages/paperwork-1.3.1-py3.7.egg/paperwork/frontend/mainwindow/__init__.py", line 1444, in do
self.__config, self.__libinsane
File "/app/lib/python3.7/site-packages/paperwork-1.3.1-py3.7.egg/paperwork/frontend/util/config.py", line 372, in get_scanner
raise exc
File "/app/lib/python3.7/site-packages/paperwork-1.3.1-py3.7.egg/paperwork/frontend/util/config.py", line 350, in get_scanner
return _get_scanner(config, libinsane, devid, preferred_sources)
File "/app/lib/python3.7/site-packages/paperwork-1.3.1-py3.7.egg/paperwork/frontend/util/config.py", line 300, in _get_scanner
dev = libinsane.get_device(devid)
gi.repository.GLib.GError: libinsane-quark: Libinsane get devices error: 0x40000003, Invalid value (4)
INFO paperwork.frontend.util.dialog Showing popup !
Basically the same errors come up when using the built-in diagnosis tool: https://andwil.de/temp/paperworkdiag.txt.
When using Skanlite, scanning works just fine. Skanlite uses “brother4:bus3;dev2”.
Does anyone have an idea on how to get the scanner running again with Paperwork? Please let me know if you need any additional information.
Thanks a lot!