PyFladesk | create desktop application by using Flask and QtWebKit | Dektop Application library
kandi X-RAY | PyFladesk Summary
kandi X-RAY | PyFladesk Summary
Create desktop application by using Flask and QtWebEngine.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Initialize the Qt widget .
- Open a link to the browser .
- Initialize the thread .
- Removes the thread .
- Load the directory .
- Show index . html .
- Render the page 2 .
PyFladesk Key Features
PyFladesk Examples and Code Snippets
Community Discussions
Trending Discussions on PyFladesk
QUESTION
I try to create from a python script using flask framework a standalone mac app with py2app. The application uses the framework pyfladesk for render website within a desktop window. On testing everything works fine, but as soon as I try to deploy the app with py2app , the folders get bundled and the app is created. But as soon as I start the app, it halts. Looking in terminal it shows a ModuleNotFoundError. The module pyfladesk is not found. How do I add 3 party modules to a py2app project. I tried the same procedure with pyinstaller as well with the same result.
Note: the module was added with pip3 and is located inside the venv of the given folder.
...ANSWER
Answered 2020-Jun-01 at 09:24Solved the issue, it turns out, py2app does not rely on the dependencies from venv, but rather on the installed one.
Solution: pip3 install pyfladesk
and all other used packages
update dependency search path in setup.py:
OPTIONS = {'argv_emulation': True,
'packages': ['requests', 'jinja2', 'pyfladesk']
}
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install PyFladesk
In case you don't want to use pip or you want to use a freezed version of PyFladesk, just download the __init__.py file from the pyfladesk folder and place it in your project (change the name to pyfladesk.py), then you can follow the instructions below.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page