{"action":"created","issue":{"url":"https://api.github.com/repos/DIYBookScanner/spreads/issues/197","labels_url":"https://api.github.com/repos/DIYBookScanner/spreads/issues/197/labels{/name}","comments_url":"https://api.github.com/repos/DIYBookScanner/spreads/issues/197/comments","events_url":"https://api.github.com/repos/DIYBookScanner/spreads/issues/197/events","html_url":"https://github.com/DIYBookScanner/spreads/issues/197","id":87704216,"number":197,"title":"Hidapi for processor","user":{"login":"boredland","id":4662748,"avatar_url":"https://avatars.githubusercontent.com/u/4662748?v=3","gravatar_id":"","url":"https://api.github.com/users/boredland","html_url":"https://github.com/boredland","followers_url":"https://api.github.com/users/boredland/followers","following_url":"https://api.github.com/users/boredland/following{/other_user}","gists_url":"https://api.github.com/users/boredland/gists{/gist_id}","starred_url":"https://api.github.com/users/boredland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boredland/subscriptions","organizations_url":"https://api.github.com/users/boredland/orgs","repos_url":"https://api.github.com/users/boredland/repos","events_url":"https://api.github.com/users/boredland/events{/privacy}","received_events_url":"https://api.github.com/users/boredland/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-06-12T11:45:48Z","updated_at":"2015-06-12T13:28:10Z","closed_at":null,"body":"Hi there,\r\nwhen handing over a scanjob from spreadpi to processor, somehow the processor calls for the hidtrigger-plugin and therefor hidapi. I'll now try installing that one to get this out of my way, but why does it call for it? If I'm right its quite unnecessary...\r\nYours\r\n\r\n```\r\nspreads.plugin: Looking for extension \"hidtrigger\"\r\ntornado.application: Uncaught exception POST /api/workflow/upload (192.168.0.107)\r\nHTTPServerRequest(protocol='http', host='192.168.0.127:2060', method='POST', uri='/api/workflow/upload', version='HTTP/1.1', remote_ip='192.168.0.107', headers={'Content-Length': '2401643', 'Host': '192.168.0.127:2060', 'Accept-Encoding': 'gzip, deflate', 'Content-Type': 'application/zip', 'Connection': 'keep-alive', 'Accept': '*/*', 'User-Agent': 'python-requests/2.4.3 CPython/2.7.9 Linux/3.18.14+'})\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python2.7/dist-packages/tornado/web.py\", line 1413, in _execute\r\n    result = method(*self.path_args, **self.path_kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/spreadsplug/web/handlers.py\", line 173, in post\r\n    workflow = Workflow(path=os.path.join(self.base_path, wfname))\r\n  File \"/usr/local/lib/python2.7/dist-packages/spreads/workflow.py\", line 478, in __init__\r\n    for name, cls in plugin.get_plugins(*self.config[\"plugins\"]\r\n  File \"/usr/local/lib/python2.7/dist-packages/spreads/plugin.py\", line 421, in get_plugins\r\n    .format(name, message, name))\r\nExtensionException: Missing Python dependency for extension 'hidtrigger': hidapi\r\ntornado.access: 500 POST /api/workflow/upload (192.168.0.107) 1560.72ms"},"comment":{"url":"https://api.github.com/repos/DIYBookScanner/spreads/issues/comments/111493068","html_url":"https://github.com/DIYBookScanner/spreads/issues/197#issuecomment-111493068","issue_url":"https://api.github.com/repos/DIYBookScanner/spreads/issues/197","id":111493068,"user":{"login":"boredland","id":4662748,"avatar_url":"https://avatars.githubusercontent.com/u/4662748?v=3","gravatar_id":"","url":"https://api.github.com/users/boredland","html_url":"https://github.com/boredland","followers_url":"https://api.github.com/users/boredland/followers","following_url":"https://api.github.com/users/boredland/following{/other_user}","gists_url":"https://api.github.com/users/boredland/gists{/gist_id}","starred_url":"https://api.github.com/users/boredland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boredland/subscriptions","organizations_url":"https://api.github.com/users/boredland/orgs","repos_url":"https://api.github.com/users/boredland/repos","events_url":"https://api.github.com/users/boredland/events{/privacy}","received_events_url":"https://api.github.com/users/boredland/received_events","type":"User","site_admin":false},"created_at":"2015-06-12T13:28:10Z","updated_at":"2015-06-12T13:28:10Z","body":"I installed hidapi, now it's mocking me with a warning\r\n```\r\nspreadsplug.hidtrigger: Initializing HidTrigger plugin\r\nspreadsplug.hidtrigger: Could not find any HID devices.\r\n```\r\nfollowed by doing nothing. The Scanjob arrives a the processor, where I can trigger postprocessing again, followed by the following output:\r\n```\r\nhuey.consumer.ConsumerThread: Executing <spreadsplug.web.tasks.queuecmd_process_workflow object at 0xb52f0ed0>\r\nspreadsplug.web.tasks: Initiating processing for workflow test\r\nWorkflow: Starting postprocessing...\r\nWorkflow: Running 'process' hooks\r\nspreadsplug.scantailor: Generating ScanTailor configuration\r\nspreadsplug.scantailor: /usr/local/bin/scantailor-cli --start-filter=2 --end-filter=5 --layout=1.5 -o=/tmp/tmpMei1J8.ScanTailor --margins-top=2.5 --margins-right=2.5 --margins-bottom=2.5 --margins-left=2.5 /home/spreads/scans/test/data/raw/000.jpg /tmp/st-outcDD9Pw\r\nspreadsplug.scantailor: Generating output images from ScanTailor configuration.\r\nspreadsplug.scantailor: Generating output...\r\nspreadsplug.scantailor: Launching those subprocesses!\r\nWorkflow: Done with postprocessing!\r\nspreadsplug.web.util: Generating thumbnail for /home/spreads/scans/test/data/done/000.tif\r\nhuey.consumer.ConsumerThread: Executing <spreadsplug.web.tasks.queuecmd_output_workflow object at 0xb278c1f0>\r\nspreadsplug.web.tasks: Initiating output generation for workflow test\r\nWorkflow: Generating output files...\r\nWorkflow: Running 'output' hooks\r\nspreadsplug.pdfbeads: Assembling PDF.\r\nspreadsplug.pdfbeads: Running /usr/local/bin/pdfbeads -d -M /tmp/tmpbfBQaV/metadata.txt /tmp/tmpbfBQaV/000.tif -o /home/spreads/scans/test/data/out/book.pdf\r\nspreadsplug.pdfbeads: pdfbeads stdout:\r\n\r\nspreadsplug.pdfbeads: pdfbeads stderr:\r\n\r\n[DEPRECATION] requiring \"RMagick\" is deprecated. Use \"rmagick\" instead\r\n\r\nPrepared data for processing /tmp/tmpbfBQaV/000.tif\r\n\r\nJBIG2 compression complete. pages:1 symbols:242 log2:8\r\n\r\nProcessed /tmp/tmpbfBQaV/000.tif\r\n\r\nCleaning up temporary files for /tmp/tmpbfBQaV/000.tif\r\n\r\n\r\nWorkflow: Done generating output files!\r\n```\r\nWhen viewing the scantailored files, everything seems fine. Sadly no generated pdf (perhaps the rmagick thingy pdfbeads is telling me?)."}}