pvpython question

Hello,
I am trying to generalize some paraview script and I got this error. Does this mean
that pvpython does not recognize my config file, is it possible at all to make something like this meaning to combine pvpython with some configuration files and so on?

Blockqu
[aaaaaa@master bin]$ ./pvpython /home/aaaaaaa/interpolation/paraview/scripts/paraview_general.py -c config.yaml
Traceback (most recent call last):
File “/home/aaaaaaa/interpolation/paraview/scripts/paraview_general.py”, line 7, in
import yaml
ModuleNotFoundError: No module named ‘yaml’

Thank you.

It may work if you copy the PyYAML directory in the Python installed on your system into the Python library in ParaView.

(System Python installation directory)/Lib/site-packages/yaml

(ParaView installation directory)/lib/python3.9/site-packages

If possible, it would be better to make the Python version the same as the Python version of ParaView.

1 Like

Hello,
Thank you for the suggestion, I’ll try to proceed with that.