Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'NoneType' object has no attribute 'endpoint' #12

Open
sharabiania opened this issue Dec 12, 2022 · 1 comment
Open

Comments

@sharabiania
Copy link

I use the docker command provided in the Readme. I keep getting the following error:

Traceback (most recent call last):
  File "dynamodb-copy-table.py", line 22, in <module>
    ddbc = DynamoDBConnection()
  File "/usr/local/lib/python3.6/site-packages/boto/dynamodb2/layer1.py", line 173, in __init__
    kwargs['host'] = region.endpoint
AttributeError: 'NoneType' object has no attribute 'endpoint'

I have initialized all the required environment variables.

@jerry42
Copy link

jerry42 commented Feb 11, 2023

Hello,

Changed this ( line 19 - 23 ) if it can help someone else !

host = 'dynamodb.%s.amazonaws.com' % region
ddbc = DynamoDBConnection(is_secure=False, region=region, host=host)
# Setting the default region name for the connection.
# DynamoDBConnection.DefaultRegionName = region
# ddbc = DynamoDBConnection()

Don't forget to set AWS_DEFAULT_REGION in ENV

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants