Hi
Really cool project. I've got the same scanner, and I am trying to get this to work on a computer running Ubuntu 18.04, but when I set it up, I get the following error:
Traceback (most recent call last): File "./http_server.py", line 27, in do_CGI web_app.run(**dic) File "/home/owen/repos/RackScanner/web_app.py", line 63, in run scanner_controller.scan(filename) File "/home/owen/repos/RackScanner/scanner_controller.py", line 26, in scan sm, scanner = open_scanner() File "/home/owen/repos/RackScanner/scanner_controller.py", line 55, in open_scanner sm = twain.SourceManager(0) NameError: name 'twain' is not defined
A bit of digging and I find that scanner_controller.py accesses the scanner through TWAIN. However, the pytwain module can only be called on Windows machines.
How did you get this to work on Linux?
Hi
Really cool project. I've got the same scanner, and I am trying to get this to work on a computer running Ubuntu 18.04, but when I set it up, I get the following error:
Traceback (most recent call last): File "./http_server.py", line 27, in do_CGI web_app.run(**dic) File "/home/owen/repos/RackScanner/web_app.py", line 63, in run scanner_controller.scan(filename) File "/home/owen/repos/RackScanner/scanner_controller.py", line 26, in scan sm, scanner = open_scanner() File "/home/owen/repos/RackScanner/scanner_controller.py", line 55, in open_scanner sm = twain.SourceManager(0) NameError: name 'twain' is not definedA bit of digging and I find that scanner_controller.py accesses the scanner through TWAIN. However, the pytwain module can only be called on Windows machines.
How did you get this to work on Linux?