Replies: 10 comments 7 replies
-
What is the command line you are running? Also the "desktop" mode can be triggered when adding the |
Beta Was this translation helpful? Give feedback.
-
As suggested in the docs, I looked into the cookiecutter bundle desktop example and all it does is import multiprocessing and then simply call my main with the desktop argument; so, I skipped the wrapper and added that to my main: import multiprocessing
from frontend.ui import create_engine
def main(server=None, **kwargs):
engine = create_engine(server)
engine.server.start(**kwargs)
if __name__ == "__main__":
multiprocessing.freeze_support()
# main()
main(exec_mode="desktop") So, I have tried all 4 combinations, with and without |
Beta Was this translation helpful? Give feedback.
-
Still no command line... ParaView setup can be tricky. Understanding how you built your venv and how you are running your code is key. Just to be sure, did you try a trivial (no dependency) trame example and did the |
Beta Was this translation helpful? Give feedback.
-
Sorry and thanks for your insistence. I am using a conda environment, built with: conda create -n <ename> python=3.11.* trame==2.5.2 paraview
conda activate <ename>
pip install pywebview[qt] I have run my program with the following commnands: export PYWEBVIEW_GUI=qt
python main.py
python main.py --app
pvpython main.py
pvpython main.py --app
pvbatch main.py The browser based runs do fine; the desktop based one, do not. I just downloaded an example and will be doing some testing with that one, side-by-side my program. Additionally, I have access to Centos7 machines; I am going to test there too and see if it is a different experience than in Rocky9. |
Beta Was this translation helpful? Give feedback.
-
Hhhhmmm, that's a pickle...there is no pywebview in conda and there is no paraview in pip......so, if this is something that is supported and supposedly functional, maybe it is just a matter of having some specific version of each? |
Beta Was this translation helpful? Give feedback.
-
Testing, testing, 1, 2, 3 So, my program is based on Trame tutorials and samples, it takes advantage of ParaView as a friendlier (less complicated) interface to VTK. My program uses ParaView; desktop mode:
Found a Trame example online, downloaded it:
I am not sure what THAT answers:
|
Beta Was this translation helpful? Give feedback.
-
Well, you can use the plain ParaView (pvpython) and use a virtual-env (venv) to expend it. So the Qt be only in the venv if you grab a headless paraview (osmesa/egl). |
Beta Was this translation helpful? Give feedback.
-
Is the "not running" in Rocky9 related to a rendering issue/limitation? If so, that could be related to the GPU driver setup. |
Beta Was this translation helpful? Give feedback.
-
Well, the non-ParaView, VTK-based sample that runs on centos7... python app.py --app --debug
DEBUG:asyncio:Using selector: EpollSelector
INFO:root:awaiting runner setup
INFO:root:awaiting site startup
INFO:root:Print WSLINK_READY_MSG
INFO:root:Schedule auto shutdown with timout 300
INFO:root:awaiting running future
INFO:aiohttp.access:127.0.0.1 [12/Sep/2023:19:50:43 +0000] "GET /index.html HTTP/1.1" 200 236 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.15.2 Chrome/83.0.4103.122 Safari/537.36" |
Beta Was this translation helpful? Give feedback.
-
Does the following works on any of your system python3.9 -m venv venv
source ./venv/bin/activate
pip install -U pip
pip install trame trame-vuetify trame-vtk pywebview
python -m trame.app.demo --app |
Beta Was this translation helpful? Give feedback.
-
So, I have a small trame-paraview app running just fine, at least when rendered using the browser; but, when I switch from
main()
tomain(exec_mode="desktop")
, all I get is a blank standalone window.The debug messages in the terminal are as follows:
Any ideas what may be happening?
I am using the following:
Rocky 9
conda environment
Python 3.11.5
trame 2.5.2
paraview 5.11.1
pywebview 4.3.3
Beta Was this translation helpful? Give feedback.
All reactions