diff --git a/flatland/evaluators/aicrowd_helpers.py b/flatland/evaluators/aicrowd_helpers.py index 662ab17930d5ef7c88ea86dfb6e1d8f889c6ed0f..1f79eac9f1b88645a107d4fba25fd7cb38c6db20 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 d8e23acef9bea1486cfd2b6055ad8c7416414eb4..2c3fce762e2cc9f66890ad6def2f7e8c005305c9 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