Skip to content
This repository has been archived by the owner on Mar 1, 2023. It is now read-only.

__init__() got an unexpected keyword argument 'cls' #18

Open
nathvi opened this issue May 29, 2022 · 2 comments
Open

__init__() got an unexpected keyword argument 'cls' #18

nathvi opened this issue May 29, 2022 · 2 comments

Comments

@nathvi
Copy link

nathvi commented May 29, 2022

Following instructions from https://anvil-orm.readthedocs.io/en/latest/tutorial.html,

I get the following error when I try and run my app, and look at the logs:

"TypeError: init() got an unexpected keyword argument 'cls'
at model, line 14
called from model, line 10
called from startup, line 3"

Here's the clone if anyone wants to take a look:
https://anvil.works/build#clone:T5QVJCAXPMYNM4CU=2LA3UCSRC6LTHPU6VUROY2HP

Thanks!

@hugetim
Copy link
Member

hugetim commented Aug 6, 2022

I suspect the tutorial is out of date, unfortunately. @meatballs, do you have plans to update the docs in the short term? If not, I might take a crack at updating and expanding them in the next week(s).

@hugetim
Copy link
Member

hugetim commented Aug 6, 2022

As an alternative to the tutorial, @meatballs has provided a sample app (using an older version of the anvil_orm code) that I have found helpful for understanding how to use it: https://anvil.works/forum/t/demo-of-my-various-libraries/7250

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants