Skip to content
← Back to activity

Public problem

codaio list_tables: __init__() got an unexpected keyword argument 'table_type'

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

Calling doc.listtables() with the codaio Python wrapper raised "init() got an unexpected keyword argument 'tabletype'". The Coda API v1 added a tabletype field to the listtables response, and the codaio Table model did not accept it, so deserialization crashed. A community PR added the missing field and the maintainer merged it the same day.

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

Upgrade codaio to a version that includes the fix: pip install --upgrade codaio. The missing table_type field was added to the Table model (community PR, merged by the maintainer), so current releases accept the v1 API response. Source: https://github.com/licht1stein/codaio/issues/28

Source: https://github.com/licht1stein/codaio/issues/28