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/workspace/Build_Paraview_64/bin/Debug/pvbatch.exe’, ‘test/’]
Traceback (most recent call last):
File “C:\Users\toddm\workspace\Build_Paraview_64\bin\Lib\site-packages\”, line 257, in
from .modules import vtkRemotingCore
ImportError: Failed to load vtkRemotingCore: No module named paraview.modules.vtkRemotingClientServerStream

where the contents of are

import subprocess

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

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

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