#928 Pagure failing to start
Closed: Fixed None Opened 7 years ago by ryanlerch.

after this commit:

https://pagure.io/pagure/c/be09bb55ec97d941038b96dd811dc1f853a4c57c

pagure won't start, giving me the error:

Traceback (most recent call last):
  File "createdb.py", line 7, in <module>
    from pagure import APP
  File "/home/rlerch/Source/pagure/pagure/__init__.py", line 130, in <module>
    SESSION = pagure.lib.create_session(APP.config['DB_URL'])
  File "/home/rlerch/Source/pagure/pagure/lib/__init__.py", line 88, in create_session
    client_encoding='utf8')
  File "/home/rlerch/.virtualenvs/pagure/lib/python2.7/site-packages/sqlalchemy/engine    /__init__.py", line 386, in create_engine
    return strategy.create(*args, **kwargs)
  File "/home/rlerch/.virtualenvs/pagure/lib/python2.7/site-packages/sqlalchemy/engine /strategies.py", line 144, in create
engineclass.__name__))
TypeError: Invalid argument(s) 'client_encoding' sent to create_engine(), using configuration   SQLiteDialect_pysqlite/NullPool/Engine.  Please check that the keyword arguments are  appropriate for this combination of components.

Turns out this issue was because the client_encoding param sent to create_engine was not available when using sqlite. #929 fixes this.

Login to comment on this ticket.

Metadata