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
django-ninja uses the same namespace as the scikit buildninja package.
When it is needed for both to work on the same environment, this conflict causes:
the last installed to overwrite the files of first in site-packages
the namespace conflict: import ninja; from ninja import xxx
What did not work
Separate directory installation: poetry or pip custom path, manual package folder renaming.
This did not work as django-ninja uses itself the namespace ninja, so internal import are broken.
This cannot, practically, be done the other way (eg: changing ninja to scikit_ninja) as there are more packages depending on ninja than django-ninja (which is also higher level).
What did work for now
Changing django-ninja namespace: in a local fork, I changed every occurrence of ninja to django_ninja
Versions:
Python version: 3.12
Django version: 5.1
Django-Ninja version: 1.3.0
Pydantic version: 2.10.3
The text was updated successfully, but these errors were encountered:
Describe the bug
django-ninja
uses the same namespace as the scikit buildninja
package.When it is needed for both to work on the same environment, this conflict causes:
site-packages
import ninja; from ninja import xxx
What did not work
Separate directory installation: poetry or pip custom path, manual package folder renaming.
This did not work as
django-ninja
uses itself the namespaceninja
, so internal import are broken.This cannot, practically, be done the other way (eg: changing
ninja
toscikit_ninja
) as there are more packages depending onninja
thandjango-ninja
(which is also higher level).What did work for now
Changing
django-ninja
namespace: in a local fork, I changed every occurrence ofninja
todjango_ninja
Versions:
The text was updated successfully, but these errors were encountered: