Skip to content

TWAIN on Linux #2

@maashroom

Description

@maashroom

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions