pycasbin / django-orm-adapter

Django ORM Adapter for PyCasbin
https://github.com/casbin/pycasbin
Apache License 2.0
30 stars 19 forks source link

Casbin lib incompatibility #14

Closed eremeevfd closed 2 years ago

eremeevfd commented 2 years ago

Hello everybody, I faced this error today after using latest versions of libraries:

File "/Users/f.eremeev/saas/saas_core_v2/source/.venv/lib/python3.10/site-packages/casbin_adapter/enforcer.py", line 34, in _load
    super().__init__(model, adapter, enable_log)
TypeError: CoreEnforcer.__init__() takes from 1 to 3 positional arguments but 4 were given

here is the list of libs:

casbin                            1.16.10
casbin-django-orm-adapter         1.0.0

at first I used 1.16.11, then downgraded to 1.16.10 which is freezed in requirements, but no luck

hsluoyz commented 2 years ago

@Nekotoxin

/cc @leeqvip

eremeevfd commented 2 years ago

@hsluoyz I'm really looking forward to this merge :)