FindData tool throws `ImportError: cannot import name 'logger' from 'paraview' (unknown location)`
I noticed that, when running Paraview compiled from source, using the FindData tool, after setting all the criteria and pressing "Find Data", results an error with the following backtrace.
( 35.273s) [paraview ] vtkPythonSelector.cxx:97 WARN| vtkPythonSelector (0x26134150): Failed to import 'paraview.python_selector'
Traceback (most recent call last):
File "/opt/ParaView/install/lib/python3.8/site-packages/paraview/detail/python_selector.py", line 19, in <module>
from . import calculator
File "/opt/ParaView/install/lib/python3.8/site-packages/paraview/detail/calculator.py", line 16, in <module>
from paraview.vtk import vtkDataObject, vtkDoubleArray, vtkSelectionNode, vtkSelection, vtkStreamingDemandDrivenPipeline
File "/opt/ParaView/install/lib/python3.8/site-packages/paraview/vtk.py", line 30, in <module>
all_m = importlib.import_module('paraview.pv-vtk-all')
File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/opt/ParaView/install/lib/python3.8/site-packages/paraview/pv-vtk-all.py", line 2, in <module>
from . import logger
ImportError: cannot import name 'logger' from 'paraview' (unknown location)
where the file lib/python3.8/site-packages/paraview/pv-vtk-all.py
tries to import a logger
, which is defined in __init__.py
in that folder, but somehow it fails.
Oddly, it works fine with the Paraview precompiled binaries and this makes me think that maybe I'm missing some compile flags.
Any pointers?