Re: [Tutor] Error with sqlalchemy

2017-08-01 Thread Alan Gauld via Tutor
On 01/08/17 12:13, rakesh sharma wrote: > I am getting the error > > TypeError: utf_8_decode() argument 1 must be string or buffer, not long That's not too helpful out of context, can you show us more of the error trace? Can you show us the method that generates it? Do you have any indication ab

Re: [Tutor] Error with sqlalchemy

2017-08-01 Thread Mats Wichmann
On 08/01/2017 05:13 AM, rakesh sharma wrote: > Hi All > > > I am getting an error in python. Its a flask app that I am doing > > I am getting the error > > TypeError: utf_8_decode() argument 1 must be string or buffer, not long > > at this point in the code > > ship_schedules = ShipSchedule.q

[Tutor] Error with sqlalchemy

2017-08-01 Thread rakesh sharma
Hi All I am getting an error in python. Its a flask app that I am doing I am getting the error TypeError: utf_8_decode() argument 1 must be string or buffer, not long at this point in the code ship_schedules = ShipSchedule.query.all() The schema definition is like that I gave below, there is