algoo / preview-generator

generates previews of files with cache management
https://pypi.org/project/preview-generator/
MIT License
235 stars 51 forks source link

Anyone knows how to install vtk? #239

Open tonypottera24 opened 3 years ago

tonypottera24 commented 3 years ago

I've got this message Builder <class 'preview_generator.preview.builder.cad__vtk.ImagePreviewBuilderVtk'> is missing a dependency: this builder requires vtk to be available" Even if I run pip install vtk

requirements.txt:
...
vtk==9.0.20210612.dev0
...
raphj commented 3 years ago

if you don't need vtk, you can safely ignore this message. Otherwise, you can install vtk from packages provided by your distribution, or check out https://vtk.org/

@inkhey we might want to make this clear, these warnings can make it seem like something is missing for Preview-Generator to work correctly.

inkhey commented 3 years ago

@inkhey we might want to make this clear, these warnings can make it seem like something is missing for Preview-Generator to work correctly.

There was already a ticket (https://github.com/algoo/preview-generator/issues/88) and a pending PR (2019 !!) about it : https://github.com/algoo/preview-generator/pull/109. I do think, we can rework on it (us directly or @JulienPalard if he want to) about it after implementation of a weight process at builder level: https://github.com/algoo/preview-generator/issues/237 which permit us to have a strict ordering of loading of builder which will permit to have a less random result.