Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
francot opened this issue Sep 19, 2022 · 6 comments
Open

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

francot opened this issue Sep 19, 2022 · 6 comments

Comments

@francot
Copy link

francot commented Sep 19, 2022

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.
@legau
Copy link

legau commented Sep 29, 2022

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.

@dashdanw
Copy link

dashdanw commented Nov 2, 2022

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

@fan9704
Copy link

fan9704 commented Feb 4, 2023

I also have this problem

@vermastuti
Copy link

I also got this same error

@fan9704
Copy link

fan9704 commented Apr 3, 2023

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)

@mertwec
Copy link

mertwec commented May 12, 2023

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 = []'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants