flask not launching
See original GitHub issueInstallation
pip install vuepy
pip install vuepy[flask]
mkdir vuepy
cd vuepy
App.py :
from vue import *
class App(VueComponent):
template = "<div>Hello vue.py</div>"
App("#app")
vue-cli deploy flask
here is the server results:
- Serving Flask app “vuecli.provider.flask” (lazy loading)
- Environment: production WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
- Debug mode: off
- Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
127.0.0.1 - - [18/Nov/2021 11:24:23] “GET / HTTP/1.1” 200 -
127.0.0.1 - - [18/Nov/2021 11:24:23] “GET /vuepy.js HTTP/1.1” 200 -
127.0.0.1 - - [18/Nov/2021 11:24:23] “GET /vue.js HTTP/1.1” 200 -
127.0.0.1 - - [18/Nov/2021 11:24:23] “GET /loading.gif HTTP/1.1” 200 - 127.0.0.1 - - [18/Nov/2021 11:24:23] “GET /favicon.ico HTTP/1.1” 404 - 127.0.0.1 - - [18/Nov/2021 11:24:23] “GET /entry_point.py?1637231063646 HTTP/1.1” 200 - 127.0.0.1 - - [18/Nov/2021 11:24:23] “GET /app.py?v=1637231063662 HTTP/1.1” 404 - 127.0.0.1 - - [18/Nov/2021 11:24:23] “GET /app/init.py?v=1637231063668 HTTP/1.1” 404 - 127.0.0.1 - - [18/Nov/2021 11:24:23] “GET /Lib/site-packages/app.py?v=1637231063680 HTTP/1.1” 404 - 127.0.0.1 - - [18/Nov/2021 11:24:23] “GET /Lib/site-packages/app/init.py?v=1637231063687 HTTP/1.1” 404 -
Loading widget forever running
Note : I have npm with vuejs3 already installed (not in this directory) can it causes problems ?
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (12 by maintainers)
Top Results From Across the Web
flask 'hello world' not working - Stack Overflow
I think you are trying to copy the route generated through your flask program in cmd by pressing ctrl+c which ...
Read more >2. What to do if the Server does not Start — Flask API
In case the python -m flask fails or flask does not exist, there are multiple reasons this might be the case. First of...
Read more >Why Won't My Flask Application Run? - Nylas
Best practice when creating a Flask application is to use this port, so why is it the case sometimes that you can't get...
Read more >Flask not running (Browser window not open) - Replit
Hi, I tried to create a webapp in python and flask: https://repl.it/@beli3ver/malte-kiefer But when I run it ... Flask not running (Browser window...
Read more >127.0.0.1.5000 LOADING FOREVER : r/flask - Reddit
So there's a code I'm trying to run but the localhost keeps on loading forever. This is my code;. from flask import Flask...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Great! As far as I understand all your issues are resolved? I will close this ticket, feel free to re-open or create a new issue if other problems occur.
Regarding the 404 error, a bit more explanation: Lets say this is our project structure:
when you do a
import package
with brython, it cannot know in advance ifpackage
is a directory or a file, so it tries to accesspackage.py
if it gets a 404, so it next tries to accesspackage/__init__.py
which succeeds.Lets look at the
vuepy
project structureYou get the 404 errors when brython tries to load a module which is a directory (
vue
,bridge
,decorators
)So nothing to worry about the 404, it is part of how brython works.
After configuring vuepy.yml in the new format and reinstalling master, the results are as follows.
I think this is probably normal and does not need to be noticed.
So far all my problems have been solved perfectly.
Thx. Have a good day!