-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Description
Loading webptools in default AWS python 3.9 environment fails due to an error related to uuid:
{
"errorMessage": "Syntax error in module 'lambda_function': invalid syntax (uuid.py, line 138)",
"errorType": "Runtime.UserCodeSyntaxError",
"requestId": "c644d245-fa99-456d-a8ad-edcad99a1bd9",
"stackTrace": [
" File \"/var/task/uuid.py\" Line 138\n if not 0 <= time_low < 1<<32L:\n"
]
}
Expected behavior
Successful execution of simple script:
from webptools import cwebp
def lambda_handler(event, context):
# Initialize variable from S3 event (ObjectCreated:Put)
print('Initializing variables . . .')
map_filename = event['Records'][0]['s3']['object']['key']
map_name = map_filename.split('.')[0]
print(map_name)
return map_name
Steps to reproduce
Try to load the package in an AWS Lambda environment
Steps to fix
Believe this can be fixed if uuid is removed from setup.py since it is now included since the default uuid library is included in the python standard library (similar error)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels