Coder Social home page Coder Social logo

update_by_field error about pyairtable HOT 2 CLOSED

gtalarico avatar gtalarico commented on May 23, 2024
update_by_field error

from pyairtable.

Comments (2)

gtalarico avatar gtalarico commented on May 23, 2024

You rpbable have a name Clash between the module airtable and a variable with the same name.

Try this:

from airtable import Airtable
table = Airtable(args) 
table.update_by_field(args)

from pyairtable.

vtennero avatar vtennero commented on May 23, 2024

Hi, I have the same issue with get_iter, I'm also using Lambda x airtable.

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

from pyairtable.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.