question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

flask not launching

See original GitHub issue

Installation

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:closed
  • Created 2 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

3reactions
stefanhoelzlcommented, Mar 23, 2022

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:

package
|-__init__.py
|-sub.py

when you do a import package with brython, it cannot know in advance if package is a directory or a file, so it tries to access package.py if it gets a 404, so it next tries to access package/__init__.py which succeeds.

Lets look at the vuepy project structure

vue
|-bridge
   |- <multiple .py files>
|-decorators
   |- <multiple .py files>

You 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.

0reactions
aaronchncommented, Mar 23, 2022

After configuring vuepy.yml in the new format and reinstalling master, the results are as follows.

Screenshot_2022-03-24_06-21-39

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found