Trace Not Working PV 5.10.0-RC1

I get this error message when I attempt to start a trace. I am a relatively new PV user. I am using PV 5.10.0-RC1.

ERROR: In C:\glr\builds\paraview\paraview-ci\build\superbuild\paraview\src\Remoting\ServerManager\vtkSMTrace.cxx, line 77
vtkSMTrace (0000017FA8DCB250): Failed to import paraview.smtrace module.

Generic Warning: In C:\glr\builds\paraview\paraview-ci\build\superbuild\paraview\src\Remoting\ServerManager\vtkSMTrace.cxx, line 164
Trace not started since required Python modules are missing.

UPDATE: I get the same error message after installing/running PV 5.10.0-RC2. I added “C:\Program Files\ParaView 5.10.0-RC2-Windows-Python3.9-msvc2017-AMD64” to my environment path (Windows 10 Enterprise 20H2) and that did not fix anything either. Please advise.

I am not able to reproduce with an installation of ParaView 5.10.0-RC2. Select View → Python Shell and run

import sys
sys.path

What does that print? On my 5.10.0-RC2 installation it prints

['C:\\Program Files\\ParaView 5.10.0-RC2-Windows-Python3.9-msvc2017-AMD64\\bin\\Lib\\site-packages', 'C:\\Program Files\\ParaView 5.10.0-RC2-Windows-Python3.9-msvc2017-AMD64\\bin\\python39.zip', 'C:\\Program Files\\ParaView 5.10.0-RC2-Windows-Python3.9-msvc2017-AMD64\\bin\\DLLs', 'C:\\Program Files\\ParaView 5.10.0-RC2-Windows-Python3.9-msvc2017-AMD64\\bin\\lib', 'C:\\Program Files\\ParaView 5.10.0-RC2-Windows-Python3.9-msvc2017-AMD64\\bin', 'C:\\Program Files\\ParaView 5.10.0-RC2-Windows-Python3.9-msvc2017-AMD64\\bin\\lib\\site-packages', 'C:\\Program Files\\ParaView 5.10.0-RC2-Windows-Python3.9-msvc2017-AMD64\\bin\\lib\\site-packages\\win32', 'C:\\Program Files\\ParaView 5.10.0-RC2-Windows-Python3.9-msvc2017-AMD64\\bin\\lib\\site-packages\\win32\\lib', 'C:\\Program Files\\ParaView 5.10.0-RC2-Windows-Python3.9-msvc2017-AMD64\\bin\\lib\\site-packages\\Pythonwin']

[‘C:\Program Files\ParaView 5.10.0-RC2-Windows-Python3.9-msvc2017-AMD64\bin\Lib\site-packages’, ‘C:\Program Files\DHI\2022\FEFLOW 7.5\python’, ‘C:\Program Files\ParaView 5.10.0-RC2-Windows-Python3.9-msvc2017-AMD64\bin\python39.zip’, ‘C:\Program Files\ParaView 5.10.0-RC2-Windows-Python3.9-msvc2017-AMD64\bin\DLLs’, ‘C:\Program Files\ParaView 5.10.0-RC2-Windows-Python3.9-msvc2017-AMD64\bin\lib’, ‘C:\Program Files\ParaView 5.10.0-RC2-Windows-Python3.9-msvc2017-AMD64\bin’, ‘C:\Program Files\ParaView 5.10.0-RC2-Windows-Python3.9-msvc2017-AMD64\bin\lib\site-packages’, ‘C:\Program Files\ParaView 5.10.0-RC2-Windows-Python3.9-msvc2017-AMD64\bin\lib\site-packages\win32’, ‘C:\Program Files\ParaView 5.10.0-RC2-Windows-Python3.9-msvc2017-AMD64\bin\lib\site-packages\win32\lib’, ‘C:\Program Files\ParaView 5.10.0-RC2-Windows-Python3.9-msvc2017-AMD64\bin\lib\site-packages\Pythonwin’]

By the way, the instant I first click into the Python Shell field, I get an AssertionError: Traceback (most recent call last):
File “”, line 1, in
File “C:\Program Files\ParaView 5.10.0-RC2-Windows-Python3.9-msvc2017-AMD64\bin\Lib\site-packages\paraview\simple.py”, line 2908, in
_add_functions(globals())
File “C:\Program Files\ParaView 5.10.0-RC2-Windows-Python3.9-msvc2017-AMD64\bin\Lib\site-packages\paraview\simple.py”, line 2742, in _add_functions
for key in dir(m):
File “C:\Program Files\ParaView 5.10.0-RC2-Windows-Python3.9-msvc2017-AMD64\bin\Lib\site-packages\paraview\servermanager.py”, line 2703, in dir
s.add(self._getPyName(xml=item[“xml”]))
File “C:\Program Files\ParaView 5.10.0-RC2-Windows-Python3.9-msvc2017-AMD64\bin\Lib\site-packages\paraview\servermanager.py”, line 2681, in _getPyName
assert name
AssertionError

My guess is that the path C:\Program Files\DHI\2022\FEFLOW 7.5\python’ is causing the issue. I’m guessing that is set in the PYTHONPATH environment variable on your system. If you remove that, does ParaView tracing work and the AssertionError when you launch the shell go away?

I removed it and launched a fresh instance of PV. Unfortunately I still get the same errors. I did not reboot my machine after removing the PYTHONPATH entry. Do I need to reboot before re-trying?

Here’s what returns now with the sys.path: [‘C:\Program Files\ParaView 5.10.0-RC2-Windows-Python3.9-msvc2017-AMD64\bin\Lib\site-packages’, ‘C:\Program Files\ParaView 5.10.0-RC2-Windows-Python3.9-msvc2017-AMD64\bin\python39.zip’, ‘C:\Program Files\ParaView 5.10.0-RC2-Windows-Python3.9-msvc2017-AMD64\bin\DLLs’, ‘C:\Program Files\ParaView 5.10.0-RC2-Windows-Python3.9-msvc2017-AMD64\bin\lib’, ‘C:\Program Files\ParaView 5.10.0-RC2-Windows-Python3.9-msvc2017-AMD64\bin’, ‘C:\Program Files\ParaView 5.10.0-RC2-Windows-Python3.9-msvc2017-AMD64\bin\lib\site-packages’, ‘C:\Program Files\ParaView 5.10.0-RC2-Windows-Python3.9-msvc2017-AMD64\bin\lib\site-packages\win32’, ‘C:\Program Files\ParaView 5.10.0-RC2-Windows-Python3.9-msvc2017-AMD64\bin\lib\site-packages\win32\lib’, ‘C:\Program Files\ParaView 5.10.0-RC2-Windows-Python3.9-msvc2017-AMD64\bin\lib\site-packages\Pythonwin’]

Your sys.path looks okay. Do you have anything related to another Python installation on your PATH environment variable?

I suspect having the Python38 paths in your PATH is causing issues.

Just thinking out loud, I would start by removing ALL of the paths (that are not system related), and then slowly add them back? If removing the paths works with ParaView, it isn’t a ParaView issue. If ParaView doesn’t work, you can stop fretting about the path…

It does not appear to be related to my PATH statements, but it does seem to be machine-dependent. I am not able to recreate the problem on another machine. Problem is…I need to get it to work on THIS machine. Any other ideas? I really appreciate your help.

Are there known conflicts with other software packages?

UPDATE: I uninstalled 5.10 and resorted back to 5.9.1 and I do not get any error messages. I have no idea why 5.10 is problematic, but hopefully this information provides some possible leads for troubleshooting.

@ben.boeckel thoughts? 5.10 should find ParaView’s Python before anything on the PATH, shouldn’t it?

FYI I’ve seen that and fixed it by removing ParaView settings.

Removing PV settings? Sorry, I do not understand. Which settings?

Read this: 11. Customizing ParaView — ParaView Documentation 5.10.0 documentation

Remove the files in:

%APPDATA%/ParaView/

Hi,

I have the same issue, but nothing suggested here works:

here’s my setup:

  • i build paraview from git repo (tag v5.9.1)
  • i use a “global” python3.8 on my laptop (all paths to other pythons are deleted from my ~.bashrc, this is ubuntu 20.4), so that in paraview’s console i get:
>>> 
Python 3.8.10 (default, Mar 15 2022, 12:22:08) 
[GCC 9.4.0] on linux
>>> from paraview.simple import *
>>> import sys
>>> sys.path
['/usr/local/lib/x86_64-linux-gnu/python3.8/site-packages', '/home/gosia', '/usr/local/lib/python3.8/site-packages', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/home/gosia/.local/lib/python3.8/site-packages', '/usr/local/lib/python3.8/dist-packages', '/usr/lib/python3/dist-packages']
  • at the same time i get the following error messages in the terminal, from which i start paraview:
raceback (most recent call last):
  File "/usr/lib/python3.8/code.py", line 90, in runcode
    exec(code, self.locals)
  File "<console>", line 1, in <module>
  File "/usr/local/lib/x86_64-linux-gnu/python3.8/site-packages/paraview/simple.py", line 41, in <module>
    from paraview import servermanager
  File "/usr/local/lib/x86_64-linux-gnu/python3.8/site-packages/paraview/servermanager.py", line 3401, in <module>
    __initialize()
  File "/usr/local/lib/x86_64-linux-gnu/python3.8/site-packages/paraview/servermanager.py", line 3392, in __initialize
    c = Connection(iter.GetCurrentSessionId(), iter.GetCurrentSession())
  File "/usr/local/lib/x86_64-linux-gnu/python3.8/site-packages/paraview/servermanager.py", line 2067, in __init__
    _createModules(self.Modules)
  File "/usr/local/lib/x86_64-linux-gnu/python3.8/site-packages/paraview/servermanager.py", line 2728, in _createModules
    m.filters = createModule('filters')
  File "/usr/local/lib/x86_64-linux-gnu/python3.8/site-packages/paraview/servermanager.py", line 2842, in createModule
    cobj = _createClass(groupName, proxyName, apxm=pxm)
  File "/usr/local/lib/x86_64-linux-gnu/python3.8/site-packages/paraview/servermanager.py", line 2799, in _createClass
    cdict.update(_createClassProperties(proto))
  File "/usr/local/lib/x86_64-linux-gnu/python3.8/site-packages/paraview/servermanager.py", line 2761, in _createClassProperties
    if (prop.GetInformationOnly() and propName != "TimestepValues" \
AttributeError: 'NoneType' object has no attribute 'GetInformationOnly'

  • there are error messages already present when starting paraview:
gosia@nela:~$ paraview
(   0.944s) [paraview        ]vtkSIProxyDefinitionMan:525    ERR| vtkSIProxyDefinitionManager (0x558f38b9f4f0): No proxy that matches: group=filters and proxy=ScalarFieldNormalizer were found.
(   1.036s) [paraview        ]vtkSMDeserializerXML.cx:57     ERR| vtkSMCompoundProxyDefinitionLoader (0x558f3b88d480): Could not create a proxy of group: filters type: ScalarFieldNormalizer
(   1.037s) [paraview        ]vtkSIProxyDefinitionMan:525    ERR| vtkSIProxyDefinitionManager (0x558f38b9f4f0): No proxy that matches: group=filters and proxy=ScalarFieldNormalizer were found.
(   1.037s) [paraview        ]vtkSMDeserializerXML.cx:57     ERR| vtkSMCompoundProxyDefinitionLoader (0x558f3b88d480): Could not create a proxy of group: filters type: ScalarFieldNormalizer
(   1.037s) [paraview        ]vtkSIProxyDefinitionMan:525    ERR| vtkSIProxyDefinitionManager (0x558f38b9f4f0): No proxy that matches: group=filters and proxy=ScalarFieldNormalizer were found.
(   1.037s) [paraview        ]vtkSMDeserializerXML.cx:57     ERR| vtkSMCompoundProxyDefinitionLoader (0x558f3b88d480): Could not create a proxy of group: filters type: ScalarFieldNormalizer
(   1.037s) [paraview        ]vtkSIProxyDefinitionMan:525    ERR| vtkSIProxyDefinitionManager (0x558f38b9f4f0): No proxy that matches: group=filters and proxy=ScalarFieldNormalizer were found.
(   1.037s) [paraview        ]vtkSMDeserializerXML.cx:57     ERR| vtkSMCompoundProxyDefinitionLoader (0x558f3b88d480): Could not create a proxy of group: filters type: ScalarFieldNormalizer
(   1.038s) [paraview        ]vtkSIProxyDefinitionMan:525    ERR| vtkSIProxyDefinitionManager (0x558f38b9f4f0): No proxy that matches: group=filters and proxy=SphereFromPoint were found.
(   1.038s) [paraview        ]vtkSMDeserializerXML.cx:57     ERR| vtkSMCompoundProxyDefinitionLoader (0x558f3b888430): Could not create a proxy of group: filters type: SphereFromPoint
(   1.043s) [paraview        ]vtkSIProxyDefinitionMan:525    ERR| vtkSIProxyDefinitionManager (0x558f38b9f4f0): No proxy that matches: group=filters and proxy=ScalarFieldNormalizer were found.
(   1.043s) [paraview        ]vtkSMDeserializerXML.cx:57     ERR| vtkSMCompoundProxyDefinitionLoader (0x558f3ba04db0): Could not create a proxy of group: filters type: ScalarFieldNormalizer
(   1.043s) [paraview        ]vtkSIProxyDefinitionMan:525    ERR| vtkSIProxyDefinitionManager (0x558f38b9f4f0): No proxy that matches: group=filters and proxy=ScalarFieldNormalizer were found.
(   1.043s) [paraview        ]vtkSMDeserializerXML.cx:57     ERR| vtkSMCompoundProxyDefinitionLoader (0x558f3ba04db0): Could not create a proxy of group: filters type: ScalarFieldNormalizer
(   1.043s) [paraview        ]vtkSIProxyDefinitionMan:525    ERR| vtkSIProxyDefinitionManager (0x558f38b9f4f0): No proxy that matches: group=filters and proxy=ScalarFieldNormalizer were found.
(   1.043s) [paraview        ]vtkSMDeserializerXML.cx:57     ERR| vtkSMCompoundProxyDefinitionLoader (0x558f3ba04db0): Could not create a proxy of group: filters type: ScalarFieldNormalizer
(   1.043s) [paraview        ]vtkSIProxyDefinitionMan:525    ERR| vtkSIProxyDefinitionManager (0x558f38b9f4f0): No proxy that matches: group=filters and proxy=ScalarFieldNormalizer were found.
(   1.044s) [paraview        ]vtkSMDeserializerXML.cx:57     ERR| vtkSMCompoundProxyDefinitionLoader (0x558f3ba04db0): Could not create a proxy of group: filters type: ScalarFieldNormalizer
(   1.106s) [paraview        ]vtkSIProxyDefinitionMan:525    ERR| vtkSIProxyDefinitionManager (0x558f38b9f4f0): No proxy that matches: group=filters and proxy=ScalarFieldNormalizer were found.
(   1.107s) [paraview        ]vtkSMDeserializerXML.cx:57     ERR| vtkSMCompoundProxyDefinitionLoader (0x558f3abfaff0): Could not create a proxy of group: filters type: ScalarFieldNormalizer
(   1.107s) [paraview        ]vtkSIProxyDefinitionMan:525    ERR| vtkSIProxyDefinitionManager (0x558f38b9f4f0): No proxy that matches: group=filters and proxy=ScalarFieldNormalizer were found.
(   1.107s) [paraview        ]vtkSMDeserializerXML.cx:57     ERR| vtkSMCompoundProxyDefinitionLoader (0x558f3abfaff0): Could not create a proxy of group: filters type: ScalarFieldNormalizer
(   1.107s) [paraview        ]vtkSIProxyDefinitionMan:525    ERR| vtkSIProxyDefinitionManager (0x558f38b9f4f0): No proxy that matches: group=filters and proxy=ScalarFieldNormalizer were found.
(   1.107s) [paraview        ]vtkSMDeserializerXML.cx:57     ERR| vtkSMCompoundProxyDefinitionLoader (0x558f3abfaff0): Could not create a proxy of group: filters type: ScalarFieldNormalizer
(   1.107s) [paraview        ]vtkSIProxyDefinitionMan:525    ERR| vtkSIProxyDefinitionManager (0x558f38b9f4f0): No proxy that matches: group=filters and proxy=ScalarFieldNormalizer were found.
(   1.107s) [paraview        ]vtkSMDeserializerXML.cx:57     ERR| vtkSMCompoundProxyDefinitionLoader (0x558f3abfaff0): Could not create a proxy of group: filters type: ScalarFieldNormalizer
(   1.108s) [paraview        ]vtkSIProxyDefinitionMan:525    ERR| vtkSIProxyDefinitionManager (0x558f38b9f4f0): No proxy that matches: group=filters and proxy=SphereFromPoint were found.
(   1.108s) [paraview        ]vtkSMDeserializerXML.cx:57     ERR| vtkSMCompoundProxyDefinitionLoader (0x558f3b5711d0): Could not create a proxy of group: filters type: SphereFromPoint
(   1.110s) [paraview        ]vtkSIProxyDefinitionMan:525    ERR| vtkSIProxyDefinitionManager (0x558f38b9f4f0): No proxy that matches: group=filters and proxy=ScalarFieldNormalizer were found.
(   1.111s) [paraview        ]vtkSMDeserializerXML.cx:57     ERR| vtkSMCompoundProxyDefinitionLoader (0x558f3b4d6eb0): Could not create a proxy of group: filters type: ScalarFieldNormalizer
(   1.111s) [paraview        ]vtkSIProxyDefinitionMan:525    ERR| vtkSIProxyDefinitionManager (0x558f38b9f4f0): No proxy that matches: group=filters and proxy=ScalarFieldNormalizer were found.
(   1.111s) [paraview        ]vtkSMDeserializerXML.cx:57     ERR| vtkSMCompoundProxyDefinitionLoader (0x558f3b4d6eb0): Could not create a proxy of group: filters type: ScalarFieldNormalizer
(   1.111s) [paraview        ]vtkSIProxyDefinitionMan:525    ERR| vtkSIProxyDefinitionManager (0x558f38b9f4f0): No proxy that matches: group=filters and proxy=ScalarFieldNormalizer were found.
(   1.111s) [paraview        ]vtkSMDeserializerXML.cx:57     ERR| vtkSMCompoundProxyDefinitionLoader (0x558f3b4d6eb0): Could not create a proxy of group: filters type: ScalarFieldNormalizer
(   1.111s) [paraview        ]vtkSIProxyDefinitionMan:525    ERR| vtkSIProxyDefinitionManager (0x558f38b9f4f0): No proxy that matches: group=filters and proxy=ScalarFieldNormalizer were found.
(   1.111s) [paraview        ]vtkSMDeserializerXML.cx:57     ERR| vtkSMCompoundProxyDefinitionLoader (0x558f3b4d6eb0): Could not create a proxy of group: filters type: ScalarFieldNormalizer
(   8.422s) [paraview        ]         vtkSMProxy.cxx:268   WARN| vtkSMCompoundSourceProxy (0x558f3b5acb60): Subproxy required for the exposed property is missing.No subproxy with name : TTKSphereFromPoint1

what can i do to solve this issue?
thank you for any suggestions!