Cannot import Paraview 5.8.0 release candidate in python
I cannot import Paraview in Python, both on 5.8.0-rc1 and 5.8.0-rc2, in a Windows distribution.
When trying to import paraview
package:
>>> import paraview
Traceback (most recent call last):
File "C:\Program Files (x86)\ParaView-5.8.0-RC2-MPI-Windows-Python3.7-msvc2015-64bit\bin\Lib\site-packages\paraview\__init__.py", line 175, in <module>
from .modules import vtkRemotingCore
ImportError: DLL load failed: The specified module could not be found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Program Files (x86)\ParaView-5.8.0-RC2-MPI-Windows-Python3.7-msvc2015-64bit\bin\Lib\site-packages\paraview\__init__.py", line 177, in <module>
import _paraview_modules_static
ModuleNotFoundError: No module named '_paraview_modules_static'
My PYTHONPATH environment variable does contain paths down to site-packages
, site-packages\paraview
and site-packages\vtkmodules
. But it seems like lines 174 to 177 dedicated to static builds make the whole import fail since the exception triggers another bug.
N.B.: I cannot even import vtk
:
>>> import vtk
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Program Files (x86)\ParaView-5.8.0-RC2-MPI-Windows-Python3.7-msvc2015-64bit\bin\Lib\site-packages\vtk.py", line 30, in <module>
all_m = importlib.import_module('vtkmodules.all')
File "C:\Python37\Lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "C:\Program Files (x86)\ParaView-5.8.0-RC2-MPI-Windows-Python3.7-msvc2015-64bit\bin\Lib\site-packages\vtkmodules\all.py", line 8, in <module>
from .vtkWebCore import *
ImportError: DLL load failed: The specified module could not be found.
FYI: @pppebay
Edited by Ben Boeckel