You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
python3 init_db.py
----------开发环境启动------------
角色-超级管理员-创建成功
角色-普通用户-创建成功
用户-王小右-创建成功
用户-测试用户-创建成功
Traceback (most recent call last):
File "init_db.py", line 93, in
init_casbin()
File "init_db.py", line 78, in init_casbin
e = get_casbin()
File "/home/quanpower/fastapi_app/common/sys_casbin.py", line 27, in get_casbin
e = casbin.Enforcer(settings.CASBIN_MODEL_PATH, adapter, True)
TypeError: init() takes from 1 to 3 positional arguments but 4 were given
The text was updated successfully, but these errors were encountered:
init_db时报错,
python3 init_db.py
----------开发环境启动------------
角色-超级管理员-创建成功
角色-普通用户-创建成功
用户-王小右-创建成功
用户-测试用户-创建成功
Traceback (most recent call last):
File "init_db.py", line 93, in
init_casbin()
File "init_db.py", line 78, in init_casbin
e = get_casbin()
File "/home/quanpower/fastapi_app/common/sys_casbin.py", line 27, in get_casbin
e = casbin.Enforcer(settings.CASBIN_MODEL_PATH, adapter, True)
TypeError: init() takes from 1 to 3 positional arguments but 4 were given
The text was updated successfully, but these errors were encountered: