Python import error

I just built Paraview on Windows 10 from master and now I’m getting an error when trying to run pvbatch from the command line. It was working previously with the code base from a month ago.

C:\Users\toddm\Downloads\paraview_python_test>python test2.py
[‘C:/Users/toddm/workspace/Build_Paraview_64/bin/Debug/pvbatch.exe’, ‘test/input_sample.py’]
Traceback (most recent call last):
File “C:\Users\toddm\workspace\Build_Paraview_64\bin\Lib\site-packages\paraview_init_.py”, line 257, in
from .modules import vtkRemotingCore
ImportError: Failed to load vtkRemotingCore: No module named paraview.modules.vtkRemotingClientServerStream

where the contents of test2.py are

import subprocess

PARAVIEW_PATH = "C:/Users/toddm/workspace/Build_Paraview_64/bin/Debug/pvbatch.exe"
input_file_path = "test/input_sample.py"

args = [PARAVIEW_PATH, input_file_path]
print(args)
paraview_process = subprocess.Popen(args)
paraview_process.wait()

No ideas? Nothing has changed except updating the Paraview source from the repository.

Edit: I was able to resolve this by deleting the build/bin folder and rebuilding Paraview.

1 Like