Opened 3 years ago

Closed 3 years ago

#5624 closed defect (fixed)

Cannot use sqlalchemy >= 1.4.0: set_models_as_attributes() troubles

Reported by: Charlotte Koch Owned by:
Priority: major Milestone:
Component: programming Keywords:
Cc: Parent Tickets:

Description

It seems to me that set_models_as_attributes() refers to some sqlalchemy internals which simply don't exist anymore in sqlalchemy 1.4.0b1, causing my initial/fresh database migration to fail.

So, my new deployment of MediaGoblin explicitly pins sqlalchemy to a version that I know works for sure from a previous deployment (1.3.20) and just like that, the initial database migration works perfectly again.

For whatever it's worth, here's the patch I applied in my copy of MediaGoblin: https://github.com/dressupgeekout/mediagoblin-dressupgeekout/commit/b85894dddc2d304f1aff05afce99d5dfa44b1b09

Change History (1)

comment:1 by Ben Sturmfels, 3 years ago

Resolution: fixed
Status: newclosed

Hi Charlotte,

Thanks very much for hunting down this issue with sqlalchemy - that's very useful. I've merged this into master:

https://git.savannah.gnu.org/cgit/mediagoblin.git/commit/?id=9fe970147cff840e55f7c726ac0a52db8620125e

Regards,
Ben

Note: See TracTickets for help on using tickets.