emmett-framework / granian

A Rust HTTP server for Python applications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error when trying to run Django app

peacewalker122 opened this issue · comments

Traceback (most recent call last):
File "homedir/.cache/pypoetry/virtualenvs/djangoapp-mLqhfNw2-py3.10/bin/granian", line 5, in
from granian import cli
File "homedir/.cache/pypoetry/virtualenvs/djangoapp-mLqhfNw2-py3.10/lib/python3.10/site-packages/granian/cli.py", line 14, in
cli = typer.Typer(name='granian', context_settings={'auto_envvar_prefix': 'GRANIAN', 'ignore_unknown_options': True})
AttributeError: module 'typer' has no attribute 'Typer'

I got this error when i tried to run the application using this command: "granian --interface wsgi core.wsgi:application --port 8000" and also same error message appear when i input wrong "application"

i running it from poetry venv.