We observed the following behavior on Windows with ParaView 5.6.x:
If a state file contains some custom filters (in <CustomProxyDefinitions>) they get imported into ParaView persistently (i.e. they end up in the ParaView .ini-file and you can also see them via the Tools | Manage Custom Filters menu option).
First question: Is this intended behavior?
But now to the real problem: these custom filter break the Python shell:
> from paraview.simple import *
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "C:/paraview/ParaView-5.6.0-Windows-msvc2015-64bit/bin\Lib/site-packages\paraview\servermanager.py", line 2242, in find_module
if vtkPVPythonModule.HasModule(fullname):
AttributeError: 'NoneType' object has no attribute 'HasModule'
If I remove the custom filter via the menu manager or directly in the .ini-file and restart ParaView the Python shell is fine again.
But I also have to remove the <CustomProxyDefinitions>-element from ParaView state file to prevent ParaView from re-adding these custom filters. Have a look at the “infected” state file:
Any idea how and why this happens?
Thanks a lot!
Lars
But by looking at the commit message of the fix I assume that only the leaking of unused custom filter definitions into state files was fixed, right?
I can attest that an infected state file can be cleaned up by simply re-saving it. The only thing to do manually afterwards is to remove the custom filter definitions via the menu option. Afterwards everything works as expected. So yes, I would say my problem is resolved.