question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dependency mismatch between blacksheep 1.2.0 and uvicorn[standard] 0.15.0

See original GitHub issue

Hi @RobertoPrevato ,

The last release fails on https://github.com/the-benchmarker/web-frameworks/pull/4774.

The backtrace is

ERROR: Exception in ASGI application
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/uvicorn/protocols/http/httptools_impl.py", line 371, in run_asgi
    asgi = app(self.scope)
  File "/usr/local/lib/python3.9/site-packages/uvicorn/middleware/message_logger.py", line 33, in __call__
    return MessageLoggerResponder(scope, self.app, self.logger, self.task_counter)
  File "/usr/local/lib/python3.9/site-packages/uvicorn/middleware/message_logger.py", line 51, in __init__
    raise exc from None
  File "/usr/local/lib/python3.9/site-packages/uvicorn/middleware/message_logger.py", line 47, in __init__
    self.inner = app(scope)
TypeError: __call__() missing 2 required positional arguments: 'receive' and 'send'

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
waghanzacommented, Oct 30, 2021

For some reason pip decides to implicitly downgrade the version of uvicorn along the way.

Yeah, I can see that and I do not understand what is going on

Seems to be the case with Cython-based uvicorn dependencies (uvicorn[standard])

0reactions
RobertoPrevatocommented, Oct 30, 2021

Please read my last comment. 😄 I wrote a stream of comments - sorry for spamming.

Read more comments on GitHub >

github_iconTop Results From Across the Web

FastAPI and uvicorn dependencies are not installed ... - GitHub
How can we reproduce it? I have a very simple application with this code: import uvicorn from fastapi import ...
Read more >
Uvicorn
This will install uvicorn with minimal (pure Python) dependencies. ... The uvicorn command line tool is the easiest way to run your application....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found