All Questions
12 questions
0
votes
1
answer
101
views
Electron with python won't run when packaged
I am packaging an Electron desktop app that runs a Flask server locally. Whenever I try to run the standalone app that is created from the project I get the error below. When I run the project using ...
0
votes
1
answer
651
views
Python Flask server not running inside electron app
I'm working on an Electron app where I'm running a Python Flask server inside the Electron app. Code has shared below. When I'm trying to run the Electron app by npm run start command my electron app ...
0
votes
1
answer
97
views
How to run flask server as portable elf
Hello i am working on a small project using electron js and flask.
I was wondering if there is a way to compile my flask server as an exe.
And run it in the background so the frontend(electron js) can ...
-1
votes
2
answers
649
views
"Method Not Allowed The method is not allowed for the requested URL" even with methods = ["POST"] enabled?
In a render.html file I have a button that calls a function in render.js (I included render.js as src in script)
<button type="button" onclick="someFunc()">Calculate</...
1
vote
1
answer
311
views
update elements in electron with python (and flask?)
I am trying to use a python script to update elements on electron. I have read many tutorials but most of them didn't work and the one that did work I couldn't understand how to change it to use it in ...
1
vote
0
answers
367
views
How send result of each iteration of for loop to the html via flask
I have python application which uses Electron.js as a gui and that program takes folder name from html and sends to python. In python scripts, it reads the each of photos and detect them.
But in each ...
1
vote
2
answers
283
views
Flask app shows only 1 image and does not show other images
I have flask application via python. In my page, there is three images but flask only shows one of them.
I could not figure out where is the problem.
Here is my code.
HTML
<div class="col-xs-4&...
0
votes
3
answers
3k
views
Building a web application that can work with local files
I'd like to build an application (local, not online) by using front-end web technology for the UI, the application simply displays PDFs and has a few text fields for the user to fill in with regards ...
1
vote
1
answer
865
views
How to pass arguments to UI in Electron, using Flask?
I am using Flask to create a webapp and want to create a desktop app for the same. Now in Flask, I can just pass a list along with the HTML file in render_template function
return render_template('...
0
votes
0
answers
544
views
Saving cookies in Electron
I'm trying to implement a login system from my electron client, where I make a call to my RESTful API in Flask to authenticate. This is supposed to set a cookie onto Electron, but nothing is being ...
1
vote
0
answers
97
views
API calls in electron don't maintain sessions, while postman does
When I make a call to my RESTful API (implemented using flask) to login from Electron, it doesn't maintain the session. Here's an example:
@app.route('/login', methods=['POST'])
def login():
...
0
votes
1
answer
785
views
Flask only working as expected in debug mode
I'm creating a desktop application using electron and flask. When I attempt to send a selected path (selected by the user via a folder select dialog. Using electron I am able to get the full path and ...