GithubHelp home page GithubHelp logo

Use of Uvicorn about pyflow HOT 4 CLOSED

david-oconnor avatar david-oconnor commented on September 26, 2024
Use of Uvicorn

from pyflow.

Comments (4)

David-OConnor avatar David-OConnor commented on September 26, 2024

This is caused by a bug in the dependency-cache API, where it's not handling specified dependencies properly in uvicorn, so its dependencies are not being installed. Will fix soon.

from pyflow.

David-OConnor avatar David-OConnor commented on September 26, 2024

Second issue: There's a bug parsing console scripts that include spaces, which is affecting uvicorn and gunicorn. Fixed in latest commit.

The syntax is: pyflow gunicorn. When installing/uninstalling, there should be a green message saying added/removed console script: gunicorn.

from pyflow.

David-OConnor avatar David-OConnor commented on September 26, 2024

Fixed on Pyflow's end. Try 0.1.1.

There's still a (subtle) problem on the dependency cache, where it works on my computer, but fails deployed. I've updated it for those two packages, so your use case will now work, but there's still something wrong; possibly the server timing out before done caching.

After upgrading, run pyflow reset in your project directory to clean out the incorrectly-resolved dependencies, then pyflow uvicorn package:main.

from pyflow.

David-OConnor avatar David-OConnor commented on September 26, 2024

Fixed on Pydeps end. Caused by Heroku using an old version of Pip; worked around by parsing the wheel directly instead of installing on the server with pip. This approach should provide faster caching as well, since it doesn't need to install child-dependencies (on server) to check which are required. If this works for you now, I'm prepared to close this.

from pyflow.

Related Issues (20)

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.