django-grpc-framework icon indicating copy to clipboard operation
django-grpc-framework copied to clipboard

django-grpc-framework doesn't work with Django 4.1.1

Open francot opened this issue 2 years ago • 6 comments

Following quick start tutorial: https://djangogrpcframework.readthedocs.io/en/latest/quickstart.html with Django 4.1.1

command python manage.py grpcrunserver --dev

return error:

Traceback (most recent call last):
  File "manage.py", line 22, in <module>
    main()
  File "manage.py", line 18, in main
    execute_from_command_line(sys.argv)
  File "/home/franco/.virtualenvs/proto/lib/python3.8/site-packages/django/core/management/__init__.py", line 446, in execute_from_command_line
    utility.execute()
  File "/home/franco/.virtualenvs/proto/lib/python3.8/site-packages/django/core/management/__init__.py", line 440, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/franco/.virtualenvs/proto/lib/python3.8/site-packages/django/core/management/__init__.py", line 279, in fetch_command
    klass = load_command_class(app_name, subcommand)
  File "/home/franco/.virtualenvs/proto/lib/python3.8/site-packages/django/core/management/__init__.py", line 49, in load_command_class
    return module.Command()
  File "/home/franco/.virtualenvs/proto/lib/python3.8/site-packages/django/core/management/base.py", line 274, in __init__
    raise TypeError("requires_system_checks must be a list or tuple.")
TypeError: requires_system_checks must be a list or tuple.

francot avatar Sep 19 '22 09:09 francot

This lib is not maintained anymore, I suggest you take a look at https://github.com/socotecio/django-socio-grpc which was originally based on this library. It does support Django 4.1.

legau avatar Sep 29 '22 15:09 legau

@legau what would it take to boot this back up?

dashdanw avatar Nov 02 '22 00:11 dashdanw

I also have this problem

fan9704 avatar Feb 04 '23 05:02 fan9704

I also got this same error

vermastuti avatar Apr 02 '23 12:04 vermastuti

Or try my project i upgrade it to Django 4 https://github.com/fan9704/NeoRPCSeach

but I,m it can work correctly(long time ago)

fan9704 avatar Apr 03 '23 09:04 fan9704

for fix this problem, need change one string in file of [django-grpc-framework]: in file: "path_to_venv/lib/python3.10/site-packages/django_grpc_framework/management/commands/grpcrunserver.py" replace 20 string from 'requires_system_checks = False' to 'requires_system_checks = []'

mertwec avatar May 12 '23 08:05 mertwec