Re: [sqlalchemy] strange UnicodeEncodeError with MySQL + Google App Engine (0.9.1)

2015-01-02 Thread Staszek
On 2015-01-02 12:55, Staszek wrote: > On 2014-12-04 18:04, Michael Bayer wrote: >> >>> On Dec 4, 2014, at 3:46 AM, Staszek wrote: >>> >>> On 2014-12-04 08:23, Staszek wrote: On 2014-11-29 16:19, Michael Bayer wrote: > SQLAlchemy shouldn’t be attempting to run this decode operation unless

Re: [sqlalchemy] strange UnicodeEncodeError with MySQL + Google App Engine (0.9.1)

2015-01-02 Thread Michael Bayer
Staszek wrote: > On 2014-12-04 18:04, Michael Bayer wrote: >>> On Dec 4, 2014, at 3:46 AM, Staszek wrote: >>> >>> On 2014-12-04 08:23, Staszek wrote: On 2014-11-29 16:19, Michael Bayer wrote: > SQLAlchemy shouldn’t be attempting to run this decode operation unless > the MySQL dr

Re: [sqlalchemy] strange UnicodeEncodeError with MySQL + Google App Engine (0.9.1)

2015-01-02 Thread Staszek
On 2014-12-04 18:04, Michael Bayer wrote: > >> On Dec 4, 2014, at 3:46 AM, Staszek wrote: >> >> On 2014-12-04 08:23, Staszek wrote: >>> On 2014-11-29 16:19, Michael Bayer wrote: SQLAlchemy shouldn’t be attempting to run this decode operation unless the MySQL driver used here is acting

Re: [sqlalchemy] strange UnicodeEncodeError with MySQL + Google App Engine (0.9.1)

2014-12-04 Thread Michael Bayer
> On Dec 4, 2014, at 3:46 AM, Staszek wrote: > > On 2014-12-04 08:23, Staszek wrote: >> On 2014-11-29 16:19, Michael Bayer wrote: >>> SQLAlchemy shouldn’t be attempting to run this decode operation unless the >>> MySQL driver used here is acting in a flaky way, that is, SQLAlchemy did a >>> te

Re: [sqlalchemy] strange UnicodeEncodeError with MySQL + Google App Engine (0.9.1)

2014-12-04 Thread Staszek
On 2014-12-04 08:23, Staszek wrote: > On 2014-11-29 16:19, Michael Bayer wrote: >> SQLAlchemy shouldn’t be attempting to run this decode operation unless the >> MySQL driver used here is acting in a flaky way, that is, SQLAlchemy did a >> test on first connect to see if a Unicode() type comes bac

Re: [sqlalchemy] strange UnicodeEncodeError with MySQL + Google App Engine (0.9.1)

2014-12-03 Thread Staszek
On 2014-11-29 16:19, Michael Bayer wrote: > SQLAlchemy shouldn’t be attempting to run this decode operation unless the > MySQL driver used here is acting in a flaky way, that is, SQLAlchemy did a > test on first connect to see if a Unicode() type comes back as u’’ or not. > That it’s trying to

Re: [sqlalchemy] strange UnicodeEncodeError with MySQL + Google App Engine (0.9.1)

2014-11-29 Thread Staszek
On 2014-11-29 16:19, Michael Bayer wrote: >>> opList = dbSession.query(PendingOperation).filter_by(opcode=opcode).all() > > looks easy enough to reproduce: > > import codecs > > x = u'\u0142' > > codecs.utf_8_decode(x) > > that is, in Py2K when you call decode() on a unicode object

Re: [sqlalchemy] strange UnicodeEncodeError with MySQL + Google App Engine (0.9.1)

2014-11-29 Thread Michael Bayer
> On Nov 29, 2014, at 3:52 AM, Staszek wrote: > > Hi > > We are experiencing strange UnicodeEncodeError with MySQL + Google App > Engine. The stack trace looks like this (I edited the application name > for security reasons, sorry): > >> File >> "/base/data/home/apps/s~app/1-0.37982885017686

[sqlalchemy] strange UnicodeEncodeError with MySQL + Google App Engine (0.9.1)

2014-11-29 Thread Staszek
Hi We are experiencing strange UnicodeEncodeError with MySQL + Google App Engine. The stack trace looks like this (I edited the application name for security reasons, sorry): > File > "/base/data/home/apps/s~app/1-0.379828850176861603/sqlalchemy/orm/query.py", > line 2280, in all > return