DIYBookScanner / spreads

Modular workflow assistant for book digitization
GNU Affero General Public License v3.0
127 stars 53 forks source link

Error using ScanTailor rotation for processing #199

Open boredland opened 9 years ago

boredland commented 9 years ago

without things are fine.

huey.consumer.ConsumerThread: Unhandled exception in worker thread
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/spreads/vendor/huey/consumer.py", line 149, in process_task
    self.huey.execute(task)
  File "/usr/local/lib/python2.7/dist-packages/spreads/vendor/huey/api.py", line 236, in execute
    result = task.execute()
  File "/usr/local/lib/python2.7/dist-packages/spreads/vendor/huey/api.py", line 415, in execute
    return func(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/spreadsplug/web/tasks.py", line 166, in process_workflow
    workflow.process()
  File "/usr/local/lib/python2.7/dist-packages/spreads/workflow.py", line 972, in process
    self._run_hook('process', self.pages, processed_path)
  File "/usr/local/lib/python2.7/dist-packages/spreads/workflow.py", line 833, in _run_hook
    getattr(plug, hook_name)(*args)
  File "/usr/local/lib/python2.7/dist-packages/spreadsplug/scantailor.py", line 284, in process
    projectfile, out_dir)
  File "/usr/local/lib/python2.7/dist-packages/spreadsplug/scantailor.py", line 112, in _generate_configuration
    marginconf = self.config['margins'].as_str_seq()
  File "/usr/local/lib/python2.7/dist-packages/spreads/vendor/confit.py", line 398, in as_str_seq
    'a list'.format(self.name)
ConfigTypeError: scantailor.margins must be a whitespace-separated string or a list
adongy commented 9 years ago

You have to define the margins (even if it's 0) in your spread config

boredland commented 9 years ago

Thanks alot! We should add those margins to the config by default.

But why does it even ask for margins? When using scantailor-cli, I don't need to sprecify margins, it uses the "automargins" by default, I think.