Python AttributeError when connecting to Airtable database

I’m facing challenges with a Python library for Airtable integration

I’m trying to link my Python code to an Airtable base using a wrapper library. I installed the library and went through the setup steps, but when I execute my code, I repeatedly receive this error message:

AttributeError: module 'airtable' has no attribute 'Airtable'

Here’s a simple example of my code:

import airtable

# This line triggers the error
client = airtable.Airtable('my_base_id', 'my_table_name', api_key='my_api_key')
records = client.get_all()

I’ve confirmed that I installed the appropriate package and my credentials are accurate. The import statement executes correctly, but trying to access the Airtable class results in a failure. Has anyone else faced this issue? What might be the cause of this attribute error?