dpgen icon indicating copy to clipboard operation
dpgen copied to clipboard

[BUG] boto3 raise an exception if not configure aws region.

Open KZHIWEI opened this issue 3 years ago • 1 comments

Summary

/dpgen/dispatcher/AWS.py: line:8

try: import boto3 except ModuleNotFoundError: pass else: batch_client = boto3.client('batch')

DPGEN Version and Platform

all version

Job submission and computing cluster configuration

Expected Behavior

ignore the error if user not config boto3 region and not using AWS.

Actual Behavior

If user install boto3 but not config region, boto3 will throw an exception.

middle_img_v2_a6733bf7-f6d2-4c7d-a702-26e2281745eg

Steps to Reproduce

use a plain instance install boto3 (pip install boto3) and run dpgen

Further Information, Files, and Links

KZHIWEI avatar Mar 17 '22 09:03 KZHIWEI

Hello zhiwei @KZHIWEI , I have met this error info. A temporary solution is design a region by environment variable before excute dpgen. e.g.:

export AWS_DEFAULT_REGION=us-west-2

cherushui avatar Mar 17 '22 10:03 cherushui