From e37eaf8363602d5f14daeee3b5cbebeadc58f609 Mon Sep 17 00:00:00 2001 From: Asela Dasanayaka Date: Wed, 17 Mar 2021 12:01:35 +0100 Subject: [PATCH 1/2] fix the deployment issues with the out dated flask app --- tensormap-server/requirements.txt | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/tensormap-server/requirements.txt b/tensormap-server/requirements.txt index c5d30048..cf8152f0 100644 --- a/tensormap-server/requirements.txt +++ b/tensormap-server/requirements.txt @@ -1,8 +1,8 @@ -aniso8601==6.0.0 -Click==7.0 -Flask==1.0.2 -Flask-RESTful==0.3.7 -tensorflow==2.0.0-alpha0 +aniso8601>=6.0.0 +Click>=7.0 +Flask>=1.1.2 +Flask-RESTful>=0.3.7 +tensorflow>=2.4.0 Flask_SocketIO eventlet numpy @@ -10,12 +10,12 @@ scipy scikit-learn pandas Flask-Session -mysqlclient +mysqlclient Flask-SQLAlchemy -itsdangerous==1.1.0 -Jinja2==2.10.1 -MarkupSafe==1.1.1 -pytz==2019.1 -six==1.12.0 -Werkzeug==0.15.2 -flask-cors==3.0.8 +itsdangerous>=1.1.0 +Jinja2>=2.10.1 +MarkupSafe>=1.1.1 +pytz>=2019.1 +six>=1.12.0 +Werkzeug>=0.15.2 +flask-cors>=3.0.8 \ No newline at end of file From 4b5e6cfd4a416700cdd5ee3bbfc7c87f80de5edb Mon Sep 17 00:00:00 2001 From: Asela Dasanayaka Date: Wed, 17 Mar 2021 12:37:29 +0100 Subject: [PATCH 2/2] Update Readme --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 9bbb51d1..aef0d526 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,8 @@ Then, go into 'tensormap-server' folder cd TensorMap cd tensormap-server ``` +Create a python 3 virtual environment and activate it. +* Follow this [How to setup and install virtual environment](https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/) tutorial to set up and activate the virtual environment. Then, install all the required packages by running