Comments (8)
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.
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.
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.
Could you confirm which version of Hypercorn you are using?
from quart.
Hypercorn 0.5.3
from quart.
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.
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.
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)
- async function support in url_defaults and url_value_preprocessor HOT 1
- incorrect display img logo on https://quart.palletsprojects.com/en/latest/ HOT 1
- Remove poetry from examples in documentation HOT 2
- Allow kwargs in Quart.test_client for custom test client implementations HOT 1
- unix socket support HOT 1
- reload() puts comman name after command line arguments HOT 2
- Hot reload does not work within poetry scripts HOT 2
- New doc contribution: Add a doc to integrate Quart with BentoML HOT 1
- The parameter of ContentRange in quart.wrappers.Response._process_range_request is not correct.
- Handling CTRL+C for websockets [linux] HOT 2
- 'quart.app' vs 'app' for log level configuration via dictConfig
- [Docs] AttributeError: 'async_generator' object has no attribute 'test_client'
- after_this_websocket is not called if the client disconnects?
- Background tasks can disappear mid-execution HOT 1
- Server sent events guide: Add = None to optional retry argument
- Cannot get request files with NGINX HOT 1
- Hot-reload not working on paths with spaces
- Blog tutorial has typo for path
- Support Accept-Range header in send_file?
- Hot reload cause a permission denied error in docker container HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quart.