Import error when trying to use Airtable class from airtable-python-wrapper

I’m having trouble with importing the Airtable class after installing the airtable-python-wrapper package. I used pip to install it in my project directory:

pip install airtable-python-wrapper

Then I created this simple test script:

from airtable import Airtable
from pprint import pprint

api_key = 'my_api_key'
base_name = 'TestTable'
client = Airtable(api_key, base_name)
print(client)

But when I try to run it, I keep getting this error message:

ImportError: cannot import name 'Airtable' from 'airtable' (unknown location)

I’m confused because I followed the setup instructions exactly. Has anyone else run into this issue? What could be causing Python to not find the Airtable class even though the package seems to be installed correctly?

same prob here! make sure u dont have an airtable.py file in your dir, that can cause issues. also, check if ur virtual env is activated when running the script. that helped me!