PythonORMSleepy icon indicating copy to clipboard operation
PythonORMSleepy copied to clipboard

Update for related dependencies

Open leeprevost opened this issue 8 years ago • 3 comments

This looks like a fantastic comparison framework. Thank you for sharing with the world. But, I downloaded and tried to run it and ran into multiple dependency issues mainly because of the very early stage of Marshmallow (0.5) which shifted many conventions on naming conventions, etc. I tried to resolve but after about 30 minutes in, I was not able to quickly resolve.

leeprevost avatar Jan 02 '18 23:01 leeprevost

Thanks for reporting this.

I don't have time to update this project at the moment but would gladly review and merge a PR.

Was it not as simple as import Schema instead of Serializer?

from marshmallow import Schema, fields

class PersonSchema(Schema):
    id = fields.Integer()
    name = fields.Function(lambda p: "{0}, {1}".format(p.lastname, p.firstname))
    created = fields.DateTime()
    n_items = fields.Integer()

sloria avatar Jan 02 '18 23:01 sloria

I'll try to circle back to this. It was more than that including some of the changes to the flask dependencies:

Looking at git and my tracked changes:

these were problems as well: from flask.ext.sqlalchemy import SQLAlchemy from flask.ext.classy import FlaskView from flask.ext.sqlalchemy import SQLAlchemy

I got past those but ran out of steam on the marshmallow conflicts.

leeprevost avatar Jan 03 '18 19:01 leeprevost

I tried to do a branch and pull request but running into a problem -- maybe this a private repo? I was able to get the sqlalchemy example script to run but with some data/server errors.

leeprevost avatar Jan 04 '18 19:01 leeprevost