Import issues for vtkRemotingCore

I made a custom build of paraview in fedora linux.

I have set the $PYTHONPATH as below

I need to use IParaview for visualizing in the jupyter notebook.
When I started the jupyter-lab server I get the following printer in the console.

File "/usr/local/lib64/python3.11/site-packages/paraview/", line 217, in <module>
    from .modules import vtkRemotingCore
ImportError: Failed to load vtkRemotingCore: No module named paraview.modules.vtkRemotingClientServerStream

Anyone has idea what is wrong here and how to solve this problem?

More information is needed. If you use LD_DEBUG=libs in the environment and then try to load it, is there a library that cannot be found?