From 85f1d7d8a7d7e54cf4e98e9db640a6955ff04d2f Mon Sep 17 00:00:00 2001
From: SP Mohanty <spmohanty91@gmail.com>
Date: Tue, 30 Jul 2019 02:19:17 +0200
Subject: [PATCH] Remove boto3 as a dependency, and manually install it on the
 evaluator

---
 flatland/evaluators/aicrowd_helpers.py | 9 ++++++++-
 requirements_dev.txt                   | 1 -
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/flatland/evaluators/aicrowd_helpers.py b/flatland/evaluators/aicrowd_helpers.py
index 662ab179..1f79eac9 100644
--- a/flatland/evaluators/aicrowd_helpers.py
+++ b/flatland/evaluators/aicrowd_helpers.py
@@ -1,5 +1,4 @@
 import os
-import boto3
 import uuid
 import subprocess
 import glob
@@ -27,6 +26,14 @@ S3_UPLOAD_PATH_TEMPLATE = os.getenv("S3_UPLOAD_PATH_TEMPLATE", "misc/flatland-rl
 def get_boto_client():
     if not AWS_ACCESS_KEY_ID or not AWS_SECRET_ACCESS_KEY:
         raise Exception("AWS Credentials not provided..")
+    try:
+        import boto3
+    except ImportError as e:
+        raise Exception(
+                        "boto3 is not installed. Please manually install by : ",
+                        " pip install -U boto3"
+                        )
+
     return boto3.client(
             's3',
             aws_access_key_id=AWS_ACCESS_KEY_ID,
diff --git a/requirements_dev.txt b/requirements_dev.txt
index d8e23ace..2c3fce76 100644
--- a/requirements_dev.txt
+++ b/requirements_dev.txt
@@ -5,7 +5,6 @@ pytest>=3.8.2
 pytest-runner>=4.2
 Click>=7.0
 crowdai-api>=0.1.21
-boto3
 numpy>=1.16.2
 recordtype>=1.3
 xarray>=0.11.3
-- 
GitLab