Search code examples
pythonmoduleimporterrorattributeerrorairtable

Trouble with Airtable API and Python


I am using an online spreadsheet app called AirTable and need to be able to access the API using Python.

There is a python interface to the API as outlined on Github: https://github.com/bayesimpact/airtable-python

I've followed the getting started directions and when I run the code I get the following error: AttributeError: module 'airtable' has no attribute 'Airtable'

What am I doing wrong?


Solution

  • Temporary fix:

    from airtable import airtable
    

    Permanent fix:

    1 find your airtable installed path

    2 find the ini file

    3 Remove the #

    4 Specify the class you need to use once imported

    from airtable import airtable
    
    class Airtable(object):
        pass
    

    May be more class you need to add.