dynobase-icon
Dynobase

Error: 'dynamodb' object has no attribute 'table'

Rafal Wilinski

Answered by Rafal Wilinski

Last updated: October 23rd, 2026

Solution

'DynamoDB' object has no attribute 'Table' means you called the resource-level Table method on a low-level boto3 client, or used the wrong capitalization. Choose one interface and match its request format.

import boto3

dynamodb = boto3.resource("dynamodb", region_name="us-east-1")
table = dynamodb.Table("People")
response = table.get_item(Key={"pk": "person-1"})
print(response.get("Item"))

The equivalent client request is:

client = boto3.client("dynamodb", region_name="us-east-1")
response = client.get_item(
    TableName="People", Key={"pk": {"S": "person-1"}}
)

The resource method is Table, with a capital T; the client method is get_item. The resource returns native Python values, including Decimal for numbers. The client returns typed AttributeValue dictionaries. If this still fails, check that a local variable or module named boto3 has not replaced the imported package.

See boto3 examples and AWS documentation.

Dynobase is a Professional GUI Client for DynamoDB

Start your 7-day free trial today

Product Features

Download
/
Changelog
/
Pricing
/
Member Portal
/
Privacy
/
EULA
/
Twitter
© 2026 Dynobase
+
Still using AWS DynamoDB Console?
Try Dynobase to accelerate your DynamoDB workflow. Start your 7-day free trial today.