Giter Club home page Giter Club logo

Comments (8)

pgjones avatar pgjones commented on July 18, 2024

I haven't used PyCharm so I'm not sure how it runs Quart, could you provide the command it uses to invoke Quart?

Also can you check you have Hypercorn >= 0.5.3 installed? 0.5.3 fixed a number of reloader issues.

from quart.

Bobsans avatar Bobsans commented on July 18, 2024

I tried many ways to run it.

By default PyCharm may runs main.py as file or as module.
If run as file command looks like this:
C:\py37-env\Scripts\python.exe D:/Python/quart-test/main.py
run as module like this:
C:\py37-env\Scripts\python.exe -m main
In both cases auto reloading not works.

I tried run app with Hypercorn too.
Command in PyCharm looks like this:
C:\py37-env\Scripts\python.exe -m hypercorn main:app
and auto reload still not works.

Even else run Hypercorn from PyCharm terminal (> hypercorn main:app) i got same result.

Maybe problem in PyCharm. I not sure.

from quart.

Bobsans avatar Bobsans commented on July 18, 2024

Output from terminal:

(py37-env) D:\Python\quart-test> hypercorn main:app
- Running on 127.0.0.1:8000 over http (CTRL + C to quit)
- Running on http://localhost:5000 (CTRL + C to quit)

(i change code)

(py37-env) D:\Python\quart-test> c:\py37-env\scripts\python.exe: can't open file 'main:app': [Errno 2] No such file or directory

from quart.

pgjones avatar pgjones commented on July 18, 2024

Could you confirm which version of Hypercorn you are using?

from quart.

Bobsans avatar Bobsans commented on July 18, 2024

Hypercorn 0.5.3

from quart.

tjtaill avatar tjtaill commented on July 18, 2024

I use nodemon https://nodemon.io/ to restart quart / hypercorn when I develop works pretty well, yes it is a nodejs tool but surprisingly works well with python too

from quart.

pgjones avatar pgjones commented on July 18, 2024

I think this is fixed in master with bb6989da48080478a87d4e909b3da00fe6fe6ca4 and the 0.5-maintenance branch in a4919a853e4b9b921d5132a79cf65e343432f8fe. Could you try it? If it works I'll release 0.5.4.

from quart.

slyduda avatar slyduda commented on July 18, 2024

Hot reloading is not working for me due to a space in my path name when trying to access my conda environment.

C:\Users\Sylvester: can't open file 'Duda\.conda\envs\onyx\python.exe': [Errno 2] No such file or directory

This works fine in vanilla Flask though.

from quart.

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.