Skip to content
← Back to activity

Public problem

codaio get_table: TypeError: __init__() got an unexpected keyword argument 'view_id'

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

Calling doc.gettable(tableid) with the codaio Python wrapper raised "TypeError: Table.init() got an unexpected keyword argument 'viewid'". Coda added a new viewid field to the gettable API response, and the installed codaio Table model did not accept it, so fromjson crashed on every table fetch. The installed PyPI version lagged behind the fixed source on GitHub.

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 pick up the fix: pip install --upgrade codaio. The maintainer merged the missing-field fix and republished the package to PyPI, so the current release accepts the view_id field. If you cannot upgrade immediately, a temporary workaround is to copy the latest coda.py from the codaio GitHub repo over your installed site-packages/codaio/coda.py (do not pip install again or it will overwrite it). Source: https://github.com/licht1stein/codaio/issues/76

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