Flask-uploads Gives Attributeerror?
from flask import Flask from flask.ext.uploads import UploadSet, configure_uploads, IMAGES app = Flask(__name__) app.config['UPLOADED_PHOTOS_DEST'] = '/home/kevin' photos = Uploa
Solution 1:
As you noticed, Flask-Uploads 0.1.3 doesn't support Python 3 due to the call to dict.itervalues()
.
I recently took over as maintainer of the Flask-Uploads project, and accepted a PR fixing the issue in this commit.
The 0.2.0 release which includes this fix hasn't been pushed to Pypi yet, but until that happens you can install the Python 3 compatible version straight from GitHub:
pip install git+https://git@github.com/jeffwidman/flask-uploads.git
If you hit any issues, the issue tracker is here: https://github.com/jeffwidman/flask-uploads/issues
Solution 2:
dict.itervalues()
is only in python2.x, I guess flask-uploads don't support 3.x yet and the setup.py
also don't say that they support 3.x
Post a Comment for "Flask-uploads Gives Attributeerror?"