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

AttributeError: 'Configuration' object has no attribute 'set', #198

Open
boredland opened this issue Jun 12, 2015 · 1 comment
Open

AttributeError: 'Configuration' object has no attribute 'set', #198

boredland opened this issue Jun 12, 2015 · 1 comment
Labels

Comments

@boredland
Copy link
Contributor

I get the following when pushing scans from raspberry to processor:

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 107, in upload_workflow
    tmp_cfg.set(user_config)
AttributeError: 'Configuration' object has no attribute 'set'
@adongy
Copy link
Contributor

adongy commented Jun 12, 2015

This is a real bug, config has no set attribute, I guess it was meant to be an dict() update-like mechanism.

I /think/ user_config is a Configuration object (didn't really check), so replace tmp_cfg.set(user_config) by

for k, v in user_config.iteritems():
    tmp_cfg[k] = v

And it should continue.

@jbaiter jbaiter added the bug label Jun 19, 2015
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