Skip to content

issue with sample code #14

@adriano26010

Description

@adriano26010

Hi,
I belive sample code shoud be based on AsyncEnforcer not Enforcer.

e = casbin.AsyncEnforcer('path/to/model.conf', adapter)

with Enforcer I receive following error:

File "...venv/lib/python3.11/site-packages/casbin/core_enforcer.py", line 92, in init_with_model_and_adapter
raise RuntimeError("Invalid parameters for enforcer.")
RuntimeError: Invalid parameters for enforcer.

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions