Project

General

Profile

Bug #13595

paddles: pecan populate config.py fails with Invalid argument(s) 'engine'

Added by Loïc Dachary over 8 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
-
% Done:

0%

Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Crash signature (v1):
Crash signature (v2):

Description

With

sqlalchemy = {
    # You may use SQLite for testing                                                                                                                                                                                
    # When you set up PostreSQL, it will look more like:                                                                                                                                                            
'url': 'postgresql+psycopg2://paddles:paddles@localhost/paddles',
    'echo':          True,
    'echo_pool':     True,
    'pool_recycle':  3600,
    'encoding':      'utf-8'
}

or

sqlalchemy = {
    # You may use SQLite for testing                                                                                                                                                                                
    # When you set up PostreSQL, it will look more like:                                                                                                                                                            
'url': 'postgresql://paddles:paddles@localhost/paddles',
    'echo':          True,
    'echo_pool':     True,
    'pool_recycle':  3600,
    'encoding':      'utf-8'
}

(which worked as of a06ab025f8da724f7be575200784c97c6e328007)

+ pecan populate config.py
==> LOADING ENVIRONMENT
Traceback (most recent call last):
  File "/home/ubuntu/paddles/virtualenv/bin/pecan", line 9, in <module>
    load_entry_point('pecan==1.0.3', 'console_scripts', 'pecan')()
  File "/home/ubuntu/paddles/virtualenv/local/lib/python2.7/site-packages/pecan/commands/base.py", line 96, in handle_command_line
    runner.run(sys.argv[1:])
  File "/home/ubuntu/paddles/virtualenv/local/lib/python2.7/site-packages/pecan/commands/base.py", line 91, in run
    self.commands[ns.command_name]().run(ns)
  File "/home/ubuntu/paddles/paddles/commands/populate.py", line 20, in run
    models.init_model()
  File "/home/ubuntu/paddles/paddles/models/__init__.py", line 75, in init_model
    conf.sqlalchemy.engine = _engine_from_config(conf.sqlalchemy)
  File "/home/ubuntu/paddles/paddles/models/__init__.py", line 87, in _engine_from_config
    return create_engine(url, **configuration)
  File "/home/ubuntu/paddles/virtualenv/local/lib/python2.7/site-packages/sqlalchemy/engine/__init__.py", line 386, in create_engine
    return strategy.create(*args, **kwargs)
  File "/home/ubuntu/paddles/virtualenv/local/lib/python2.7/site-packages/sqlalchemy/engine/strategies.py", line 144, in create
    engineclass.__name__))
TypeError: Invalid argument(s) 'engine' sent to create_engine(), using configuration PGDialect_psycopg2/QueuePool/Engine.  Please check that the keyword arguments are appropriate for this combination of componen\
ts.

History

#1 Updated by Loïc Dachary over 8 years ago

  • Subject changed from pecan populate config.py fails with Invalid argument(s) 'engine' to paddles: pecan populate config.py fails with Invalid argument(s) 'engine'

#2 Updated by Zack Cerza over 8 years ago

  • Assignee set to Andrew Schoen

Assigning this to Andrew as I'm pretty sure chacra ran into this

#3 Updated by Andrew Schoen over 8 years ago

  • Status changed from New to Fix Under Review

#4 Updated by Loïc Dachary over 8 years ago

  • Status changed from Fix Under Review to Resolved

Also available in: Atom PDF