Giter Site home page Giter Site logo

windson / fastapi Goto Github PK

View Code? Open in Web Editor NEW
254.0 5.0 178.0 45 KB

FastAPI Tutorials & Deployment Methods to Cloud and on-prem infrastructures

Home Page: https://tutlinks.com

License: Creative Commons Zero v1.0 Universal

Python 79.93% Procfile 20.07%
fastapi python uvicorn uvicorn-gunicorn asgi wsgi async heroku-deployment azure gcp

fastapi's People

Contributors

dependabot[bot] avatar windson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

fastapi's Issues

Error: class uri 'uvicorn.workers.UvicornWorker' invalid or not found:

I had built a FastAPI Azure webapp and used your idea of passing "gunicorn -w 4 -k uvicorn.workers.UvicornWorker main:app" in startup command, but I keep getting the following error.

Error: class uri 'uvicorn.workers.UvicornWorker' invalid or not found:
2021-01-06T04:40:40.709590602Z
2021-01-06T04:40:40.709594402Z [Traceback (most recent call last):
2021-01-06T04:40:40.709598102Z File "/opt/python/3.7.9/lib/python3.7/site-packages/gunicorn/util.py", line 99, in load_class
2021-01-06T04:40:40.709602202Z mod = importlib.import_module('.'.join(components))
2021-01-06T04:40:40.709605802Z File "/opt/python/3.7.9/lib/python3.7/importlib/init.py", line 127, in import_module
2021-01-06T04:40:40.709609603Z return _bootstrap._gcd_import(name[level:], package, level)
2021-01-06T04:40:40.709613203Z File "", line 1006, in _gcd_import
2021-01-06T04:40:40.709617203Z File "", line 983, in _find_and_load
2021-01-06T04:40:40.709629603Z File "", line 953, in _find_and_load_unlocked
2021-01-06T04:40:40.709633503Z File "", line 219, in _call_with_frames_removed
2021-01-06T04:40:40.709637103Z File "", line 1006, in _gcd_import
2021-01-06T04:40:40.709640903Z File "", line 983, in _find_and_load
2021-01-06T04:40:40.709644503Z File "", line 965, in _find_and_load_unlocked
2021-01-06T04:40:40.709648303Z ModuleNotFoundError: No module named 'uvicorn'

I have a "requirements.txt" file like you have in your project and have included both gunicorn and unicorn libraries, but for some reason the I feel the webapp doesn't pick the gunicorn instance from the virtual environment. Have you faced anything like this?

Just wanted to say thank you :)

Awesome tutorial including Caddy 2.
Detailed and to the point, even basic like adding sources and creating services.
Thank you for sharing.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.