Deploying on lambda > 'airtable object has no attribute 'get_iter'
See original GitHub issueHi,
When deploying on lambda, I get the following error
It would seem there is a conflict between airtable and airtable-python-wrapper but I don’t know how to solve it.
error log:
"errorMessage": "'Airtable' object has no attribute 'get_iter'",
"errorType": "AttributeError",
In my lambda_function.py:
from airtable import Airtable
...
table_output = Airtable(base_key, output_table_name, apikey)
output_pages = table_output.get_iter(view='Grid view')
...
table_output.insert({'abc':x.y})
In my root folder of my lambda:
airtable
airtable-0.4.8.dist-info
...
lambda_function.py
...
requirements.txt
In my requirements.txt:
airtable-python-wrapper
airtable
Note: with lambda, dependencies need to be uploaded in the same .zip as the main function for the app to run with its dependencies.
Thank you for your help
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
'Airtable' object has no attribute 'get_all' · Issue #24 - GitHub
I am receiving the error in the Title when trying to run my Python within a cron job. I have been having trouble...
Read more >Integrating with AWS Lambda & DynamoDB - Airtable Support
This guide focuses on pushing data into DynamoDB via an AWS Lambda. By changing the Lambda code, you could also use this setup...
Read more >AWS Lambda ERROR: AttributeError 'list' object has no ...
However, when I trigger the Lambda function (using an IoT Button) I get the following error message. [ERROR] AttributeError: 'list' object has ...
Read more >DynamoDB Integration - Retool Docs
Retool connects with DynamoDB, allowing you to access your data from your internal tools. Connecting DynamoDB. First, go to IAM and create a...
Read more >'str' object has no attribute 'get' error with Airtable.py | Solveforum
Ismail Hafeez Asks: AttributeError: 'str' object has no attribute 'get' error with Airtable.py I just installed airtable.py to connect with ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
thanks, all sorted with the following: In my lambda_function.py:
In my root folder of my lambda:
In my requirements.txt:
It looks like this is happening because you’re including
airtable
instead ofairtable-python-wrapper
in your root directory. They’re completely separate libraries (airtable and airtable-python-wrapper) with similar functionality – though I think this one is significantly better. It’s also not clear why both are in your requirements.txt, but onlyairtable
is in your root dir.Is there a reason you need both of them? Why not stick to
airtable-python-wrapper
?