Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error using ScanTailor rotation for processing #199

Open
boredland opened this issue Jun 12, 2015 · 2 comments
Open

Error using ScanTailor rotation for processing #199

boredland opened this issue Jun 12, 2015 · 2 comments
Labels

Comments

@boredland
Copy link
Contributor

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
Copy link
Contributor

adongy commented Jun 12, 2015

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

@jbaiter jbaiter added the bug label Jun 19, 2015
@boredland
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants