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

Deploying on Heroku. ModuleNotFoundError: No module named 'uvloop' #2915

Closed
westerntrix opened this issue Oct 27, 2020 · 2 comments · Fixed by #2939
Closed

Deploying on Heroku. ModuleNotFoundError: No module named 'uvloop' #2915

westerntrix opened this issue Oct 27, 2020 · 2 comments · Fixed by #2939
Labels

Comments

@westerntrix
Copy link

Received a ModuleNotFoundError: No module named uvloop when deploying my app to Heroku..

Not sure if this is a breaking change.

My solution
I did bypass this by rolling back --> #2866

In requirements/base.txt

  • Change this line --> uvicorn==0.12.1 # https://github.com/encode/uvicorn
  • To this --> uvicorn==0.11.8 # https://github.com/encode/uvicorn
  • Redeploy

Will this have any further implicatons for my project down the line?

@foarsitter
Copy link
Collaborator

As mentioned in #2894 by @Andrew-Chen-Wang uvicorn has changed the way the install dependencies: encode/uvicorn@5fa99a1#diff-60f61ab7a8d1910d86d9fda2261620314edcae5894d5aaa236b821c7256badd7

@Andrew-Chen-Wang
Copy link
Contributor

@westerntrix No, just install those missing dependencies. Refer to uvicorn's website for any additional performance booster packages that they mention. Once you get those installed, there shouldn't be any more problems.

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

Successfully merging a pull request may close this issue.

3 participants