Kitware / py-web-vue

Build a 3D Web application using VTK or ParaView while only writing a Python script. This project aims to streamline the existing ParaViewWeb infrastructure into something that is simpler to use by lowering the entry point complexity.
Other
24 stars 9 forks source link

ModuleNotFoundError: No module named 'vtkmodules.web.utils' #2

Closed nantille closed 3 years ago

nantille commented 3 years ago

Describe the bug

After pip install pywebvue and building the client with npm i, I tried launching example 03_applications/vtk-f1-picking/app.py. I got a ModuleNotFoundError: No module named 'vtkmodules.web.utils'. I've got the latest vtk python module (v9.0.3) installed.

To Reproduce

Follow description above

Code

None

Expected behavior

That the example launches correctly.

Platform:

Device:

OS:

Browsers Affected:

py-web-vue version: v1.2.5

jourdain commented 3 years ago

9.0.3 does not include the change needed for py-web-vue. You still need to get the dev version of vtk (which is the same as vtk/master).

jourdain commented 3 years ago

Hopefully we'll get a new official release of vtk on pip which will streamline the usage of the vtk backend in 3-6 months. In the meantime you will have to pip install vtk --dev instead.

nantille commented 3 years ago

Thanks @jourdain for your reply. However pip install vtk --dev does not work. I suppose you meant pip install git+https://github.com/Kitware/VTK.git@nightly-master. Is that right? Because there's no dev branch. And installing nightly-master fails with pip...

Looking forward to your progress with pywebvue.

jourdain commented 3 years ago

I was talking about any pre-release in the history of PyPI.

Thanks for your interest in this project. I'm very excited as it should simplify quite a lot the creation of Web app/demo when using VTK or ParaView.

Thanks!

nantille commented 3 years ago

That helps. Yes, I've engineered an interactive viz tool with VTK. It relies on advanced volume and surface/point rendering that typically cannot be handled by vtkjs. We use the viewer in QT but also as standalone app but we also use Jupyter. We already have got image streaming to Jupyter working thanks to ipyvtklink-simple. Hence we're interested in streaming from vtk to a web app with pywebvue. Thanks for your work!