loftytopping / UManSysProp_public

Source code for predictive techniques provided in the UManSysProp facility.
GNU General Public License v3.0
12 stars 9 forks source link

flask.ext now deprecated #4

Closed dvalters closed 5 years ago

dvalters commented 5 years ago

[Issue arising from JOSS review of PyBox, which depend on UManSysProp (seemed more relevant to open the issue here)]

The API in newer versions of flask has changed, so flask.ext no longer works, e.g.

<ipython-input-11-72b3b0cf0ac4> in <module>()
----> 1 from umansysprop.forms import CoreAbundanceField

~/Devel/UManSysProp_public/umansysprop/forms.py in <module>()
     41 
     42 import pybel
---> 43 from flask import request
     44 from flask.ext.wtf import Form as DeclarativeForm
     45 from wtforms.fields import (

ModuleNotFoundError: No module named 'flask'

See: https://stackoverflow.com/a/36733527/1953517 for solution

ref: https://github.com/openjournals/joss-reviews/issues/755

loftytopping commented 5 years ago

Thanks for this. Ive now updated the UManSysProp master branch to use flask_wtf inline with upto date Python3+.

dvalters commented 5 years ago

Great! Thanks :)