[Sqlalchemy-tickets] [sqlalchemy] #2934: Error parsing server version with cymysql dialect
Brought to you by:
zzzeek
|
From: sqlalchemy <mi...@zz...> - 2014-02-03 17:14:20
|
#2934: Error parsing server version with cymysql dialect
------------------------+----------------------------------------
Reporter: webdevmatt | Owner:
Type: defect | Status: new
Priority: medium | Milestone: 0.9.xx
Component: mysql | Severity: trivial - <10 minutes
Keywords: | Progress State: awaiting triage
------------------------+----------------------------------------
Last line of the traceback says it all:
{{{
Traceback (most recent call last):
File "manage.py", line 22, in <module>
meta.reflect(bind=engine)
File "/Users/project/lib/python3.3/site-
packages/sqlalchemy/sql/schema.py", line 3215, in reflect
with bind.connect() as conn:
File "/Users/project/lib/python3.3/site-
packages/sqlalchemy/engine/base.py", line 1678, in connect
return self._connection_cls(self, **kwargs)
File "/Users/project/lib/python3.3/site-
packages/sqlalchemy/engine/base.py", line 59, in __init__
self.__connection = connection or engine.raw_connection()
File "/Users/project/lib/python3.3/site-
packages/sqlalchemy/engine/base.py", line 1747, in raw_connection
return self.pool.unique_connection()
File "/Users/project/lib/python3.3/site-packages/sqlalchemy/pool.py",
line 272, in unique_connection
return _ConnectionFairy._checkout(self)
File "/Users/project/lib/python3.3/site-packages/sqlalchemy/pool.py",
line 608, in _checkout
fairy = _ConnectionRecord.checkout(pool)
File "/Users/project/lib/python3.3/site-packages/sqlalchemy/pool.py",
line 425, in checkout
rec = pool._do_get()
File "/Users/project/lib/python3.3/site-packages/sqlalchemy/pool.py",
line 928, in _do_get
return self._create_connection()
File "/Users/project/lib/python3.3/site-packages/sqlalchemy/pool.py",
line 277, in _create_connection
return _ConnectionRecord(self)
File "/Users/project/lib/python3.3/site-packages/sqlalchemy/pool.py",
line 401, in __init__
exec_once(self.connection, self)
File "/Users/project/lib/python3.3/site-
packages/sqlalchemy/event/attr.py", line 238, in exec_once
self(*args, **kw)
File "/Users/project/lib/python3.3/site-
packages/sqlalchemy/event/attr.py", line 247, in __call__
fn(*args, **kw)
File "/Users/project/lib/python3.3/site-
packages/sqlalchemy/util/langhelpers.py", line 1180, in go
return once_fn(*arg, **kw)
File "/Users/project/lib/python3.3/site-
packages/sqlalchemy/engine/strategies.py", line 166, in first_connect
dialect.initialize(c)
File "/Users/project/lib/python3.3/site-
packages/sqlalchemy/dialects/mysql/base.py", line 2207, in initialize
default.DefaultDialect.initialize(self, connection)
File "/Users/project/lib/python3.3/site-
packages/sqlalchemy/engine/default.py", line 222, in initialize
self._get_server_version_info(connection)
File "/Users/project/lib/python3.3/site-
packages/sqlalchemy/dialects/mysql/cymysql.py", line 57, in
_get_server_version_info
version = [int(v) for v in dbapi_con.server_version.split('.')]
File "/Users/project/lib/python3.3/site-
packages/sqlalchemy/dialects/mysql/cymysql.py", line 57, in <listcomp>
version = [int(v) for v in dbapi_con.server_version.split('.')]
ValueError: invalid literal for int() with base 10: '33a-MariaDB'
}}}
--
Ticket URL: <http://www.sqlalchemy.org/trac/ticket/2934>
sqlalchemy <http://www.sqlalchemy.org/>
The Database Toolkit for Python
|