mysqlconnector Problem

213 views
Skip to first unread message

Jürg Hofmann

unread,
Jan 21, 2013, 5:53:54 AM1/21/13
to sqlal...@googlegroups.com
Hy

I am using sqlalchemy 0.7.8 with python 3.2 on a debian wheezy system.
When i try to connect to a mysql database version 5.1.66 using the mysqlconnector version 1.0.8 i get the following error:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/sqlalchemy/pool.py", line 719, in _do_get
    return self._pool.get(wait, self._timeout)
  File "/usr/lib/python3/dist-packages/sqlalchemy/util/queue.py", line 137, in get
    raise Empty
sqlalchemy.util.queue.Empty

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/bottle.py", line 745, in _handle
    return route.call(**args)
  File "/usr/lib/python3/dist-packages/bottle.py", line 1480, in wrapper
    rv = callback(*a, **ka)
  File "bp.py", line 7473, in au_suchen
    shop_connection = shop_engine.connect()
  File "/usr/lib/python3/dist-packages/sqlalchemy/engine/base.py", line 2474, in connect
    return self._connection_cls(self, **kwargs)
  File "/usr/lib/python3/dist-packages/sqlalchemy/engine/base.py", line 878, in __init__
    self.__connection = connection or engine.raw_connection()
  File "/usr/lib/python3/dist-packages/sqlalchemy/engine/base.py", line 2560, in raw_connection
    return self.pool.unique_connection()
  File "/usr/lib/python3/dist-packages/sqlalchemy/pool.py", line 183, in unique_connection
    return _ConnectionFairy(self).checkout()
  File "/usr/lib/python3/dist-packages/sqlalchemy/pool.py", line 387, in __init__
    rec = self._connection_record = pool._do_get()
  File "/usr/lib/python3/dist-packages/sqlalchemy/pool.py", line 741, in _do_get
    con = self._create_connection()
  File "/usr/lib/python3/dist-packages/sqlalchemy/pool.py", line 188, in _create_connection
    return _ConnectionRecord(self)
AttributeError: 'MySQLConnection' object has no attribute 'set_client_flag'

Direct connecting (without using sqlalchemy) is working well.

Any ideas what i am doing wrong?

Many thanks

Jürg Hofmann

 

Michael Bayer

unread,
Jan 21, 2013, 10:34:06 AM1/21/13
to sqlal...@googlegroups.com
--
You received this message because you are subscribed to the Google Groups "sqlalchemy" group.
To view this discussion on the web visit https://groups.google.com/d/msg/sqlalchemy/-/qnwKv109AmAJ.
To post to this group, send email to sqlal...@googlegroups.com.
To unsubscribe from this group, send email to sqlalchemy+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.

Jürg Hofmann

unread,
Jan 22, 2013, 5:37:42 AM1/22/13
to sqlal...@googlegroups.com
Thanks, in wheezy is only 0.7.8, so i will try to install 0.7.9 from sid or 0.8 from sqlalchemy.

Jürg Hofmann

unread,
Jan 24, 2013, 2:18:07 AM1/24/13
to sqlal...@googlegroups.com
I installed version 0.8.0b2 from tar-file and the mysqlconnector is now working.
Many thanks!
Reply all
Reply to author
Forward
0 new messages