From 644fc70c24d796b374f3f8929159ea00b39fcff5 Mon Sep 17 00:00:00 2001 From: Dendi Suhubdy Date: Sun, 1 Mar 2020 11:29:38 +0700 Subject: [PATCH 1/2] fix - adjusting to Python3 --- app.py | 4 ++-- requirements.txt | 7 +++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/app.py b/app.py index a229d9e..496ae25 100755 --- a/app.py +++ b/app.py @@ -13,7 +13,7 @@ from flask import Flask, request, render_template, redirect, url_for, send_from_directory from flask_bootstrap import Bootstrap -from werkzeug import secure_filename +from werkzeug.utils import secure_filename from lib.upload_file import uploadfile @@ -61,7 +61,7 @@ def create_thumbnail(image): return True except: - print traceback.format_exc() + print(traceback.format_exc()) return False diff --git a/requirements.txt b/requirements.txt index cec2ffd..573d5e4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,3 @@ -Flask==0.10 -Flask-Bootstrap==3.2.0.2 -simplejson==3.6.0 -Pillow==2.5.1 +Flask +Flask-Bootstrap +simplejson From cce2b7dcfc0a9ef6fe1f6faa60375e96e6840dca Mon Sep 17 00:00:00 2001 From: Dendi Suhubdy Date: Sun, 1 Mar 2020 11:31:29 +0700 Subject: [PATCH 2/2] fix - add back Pillow --- requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements.txt b/requirements.txt index 573d5e4..6183aab 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ Flask Flask-Bootstrap simplejson +Pillow