Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

启动报错AttributeError: secondary #157

Open
huangjunyingnb opened this issue Jan 25, 2024 · 0 comments
Open

启动报错AttributeError: secondary #157

huangjunyingnb opened this issue Jan 25, 2024 · 0 comments

Comments

@huangjunyingnb
Copy link

Traceback (most recent call last):
File "/root/.pycharm_helpers/pydev/pydevd.py", line 1534, in _exec
pydev_imports.execfile(file, globals, locals) # execute the script
File "/root/.pycharm_helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "/home/dandan_wallet/dev_run_admin.py", line 70, in
site.mount_app(app)
File "/home/dandan_wallet/dandan_env/lib/python3.8/site-packages/fastapi_amis_admin/admin/admin.py", line 1452, in mount_app
self.register_router()
File "/home/dandan_wallet/dandan_env/lib/python3.8/site-packages/fastapi_amis_admin/admin/admin.py", line 1348, in register_router
self._register_admin_router_all()
File "/home/dandan_wallet/dandan_env/lib/python3.8/site-packages/fastapi_amis_admin/admin/admin.py", line 1340, in _register_admin_router_all
admin.register_router()
File "/home/dandan_wallet/dandan_env/lib/python3.8/site-packages/fastapi_amis_admin/admin/admin.py", line 1347, in register_router
self._register_admin_router_all_pre()
File "/home/dandan_wallet/dandan_env/lib/python3.8/site-packages/fastapi_amis_admin/admin/admin.py", line 1335, in _register_admin_router_all_pre
[admin.get_link_model_forms() for admin in self._registered.values() if isinstance(admin, ModelAdmin)]
File "/home/dandan_wallet/dandan_env/lib/python3.8/site-packages/fastapi_amis_admin/admin/admin.py", line 1335, in
[admin.get_link_model_forms() for admin in self._registered.values() if isinstance(admin, ModelAdmin)]
File "/home/dandan_wallet/dandan_env/lib/python3.8/site-packages/fastapi_amis_admin/admin/admin.py", line 660, in get_link_model_forms
[LinkModelForm.bind_model_admin(self, insfield) for insfield in self.link_model_fields],
File "/home/dandan_wallet/dandan_env/lib/python3.8/site-packages/fastapi_amis_admin/admin/admin.py", line 660, in
[LinkModelForm.bind_model_admin(self, insfield) for insfield in self.link_model_fields],
File "/home/dandan_wallet/dandan_env/lib/python3.8/site-packages/fastapi_amis_admin/admin/admin.py", line 116, in bind_model_admin
table = insfield.prop.secondary
File "/home/dandan_wallet/dandan_env/lib/python3.8/site-packages/sqlalchemy/util/langhelpers.py", line 1335, in getattr
return self._fallback_getattr(key)
File "/home/dandan_wallet/dandan_env/lib/python3.8/site-packages/sqlalchemy/util/langhelpers.py", line 1304, in _fallback_getattr
raise AttributeError(key)
AttributeError: secondary

fastapi-user-auth==0.5.0
fastapi-amis-admin==0.5.8

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

No branches or pull requests

1 participant