You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File ~/.local/share/virtualenvs/myvenv/lib/python3.8/site-packages/kev/backends/s3/db.py", line 25, in __init__
boto3.Session(**session_kwargs)
TypeError: __init__() got an unexpected keyword argument 'endpoint_url'
My config is this one :
's3': {
'backend': 'kev.backends.s3.db.S3DB',
'connection': {
'bucket': 'mybucketname',
'endpoint_url': 'http://localhost:9000'# The port of my minio local deployment
}
}
Hi,
I am trying to make KEV work with minio: https://github.com/minio/minio
I got this error:
My config is this one :
I had dig a little bit inside the code and found the issue:
As described here : https://boto3.amazonaws.com/v1/documentation/api/latest/reference/core/session.html#boto3.session.Session
boto3.Session reference attributes (no endpoint_url):
Boto3 Session does not support endpoint_url argument.
This argument must be added when creating s3 boto resource.
What could be done is something like this in kev.backends.s3.db.S3DB class constructor:
boto3.resource reference attributes (existing endpoint_url kwarg):
endpoint_url default value is None, then this code should always be ok.
What do you think about this fix / workaround ?
Edit: We should add support to region_name also...
The text was updated successfully, but these errors were encountered: