Error when running RemoteView example with Paraview pv_server.py

Hi there I tried to run the default RemoteView live example but it fails when launching the server script (using Paraview as a backend 2nd script on this example page) -
Running ParaView 5.9.0-RC1-MPI-Windows-Python3.8-msvc2017-64bit on Windows 10 32GB Ram & NVIDIA GeForce GTX 670.
any clue ? I couldnt find any reference to this error type anywhere
Thanks a lot
Charlie
Here is the error thrown on server side :
D:\Work\VTKViewer>pvpython pv_server.py --port 1234
( 1.507s) [paraview ] VisRTXBackend.cxx:42 WARN| VisRTX Error: Unsupported device
( 1.507s) [paraview ] VisRTXBackend.cxx:42 WARN| VisRTX Error: Unsupported device
( 1.518s) [paraview ] VisRTXBackend.cxx:42 WARN| VisRTX Error: Unsupported device
[…]
wslink: Starting factory
Temporarily disabling observer LegacyLogObserverWrapper(<bound method PythonLoggingObserver.emit of <twisted.python.log.PythonLoggingObserver object at 0x0000029F88568400>>) due to exception: [Failure instance: Traceback: <class ‘TypeError’>: findCaller() takes from 1 to 2 positional arguments but 3 were given
C:\Program Files\ParaView 5.9.0-RC1-MPI-Windows-Python3.8-msvc2017-64bit\bin\Lib\site-packages\wslink\server.py:30:print_ready
C:\Program Files\ParaView 5.9.0-RC1-MPI-Windows-Python3.8-msvc2017-64bit\bin\Lib\site-packages\twisted\python\threadable.py:53:sync
C:\Program Files\ParaView 5.9.0-RC1-MPI-Windows-Python3.8-msvc2017-64bit\bin\Lib\site-packages\twisted\python\log.py:286:msg
C:\Program Files\ParaView 5.9.0-RC1-MPI-Windows-Python3.8-msvc2017-64bit\bin\Lib\site-packages\twisted\logger_legacy.py:154:publishToNewObserver
— —
C:\Program Files\ParaView 5.9.0-RC1-MPI-Windows-Python3.8-msvc2017-64bit\bin\Lib\site-packages\twisted\logger_observer.py:131:call
C:\Program Files\ParaView 5.9.0-RC1-MPI-Windows-Python3.8-msvc2017-64bit\bin\Lib\site-packages\twisted\logger_legacy.py:93:call
C:\Program Files\ParaView 5.9.0-RC1-MPI-Windows-Python3.8-msvc2017-64bit\bin\Lib\site-packages\twisted\python\log.py:595:emit
C:\Program Files\ParaView 5.9.0-RC1-MPI-Windows-Python3.8-msvc2017-64bit\bin\Lib\site-packages\twisted\logger_legacy.py:154:publishToNewObserver
C:\Program Files\ParaView 5.9.0-RC1-MPI-Windows-Python3.8-msvc2017-64bit\bin\Lib\site-packages\twisted\logger_stdlib.py:115:call
C:\Program Files\ParaView 5.9.0-RC1-MPI-Windows-Python3.8-msvc2017-64bit\bin\lib\logging_init
.py:1500:log
C:\Program Files\ParaView 5.9.0-RC1-MPI-Windows-Python3.8-msvc2017-64bit\bin\lib\logging_init_.py:1565:_log
]
Traceback (most recent call last):
File “C:\Program Files\ParaView 5.9.0-RC1-MPI-Windows-Python3.8-msvc2017-64bit\bin\Lib\site-packages\wslink\server.py”, line 30, in print_ready
log.msg(“wslink: Starting factory”, logLevel=logging.CRITICAL)
File “C:\Program Files\ParaView 5.9.0-RC1-MPI-Windows-Python3.8-msvc2017-64bit\bin\Lib\site-packages\twisted\python\threadable.py”, line 53, in sync
return function(self, *args, **kwargs)
File “C:\Program Files\ParaView 5.9.0-RC1-MPI-Windows-Python3.8-msvc2017-64bit\bin\Lib\site-packages\twisted\python\log.py”, line 286, in msg
_publishNew(self._publishPublisher, actualEventDict, textFromEventDict)
File “C:\Program Files\ParaView 5.9.0-RC1-MPI-Windows-Python3.8-msvc2017-64bit\bin\Lib\site-packages\twisted\logger_legacy.py”, line 154, in publishToNewObserver
observer(eventDict)
— —
File “C:\Program Files\ParaView 5.9.0-RC1-MPI-Windows-Python3.8-msvc2017-64bit\bin\Lib\site-packages\twisted\logger_observer.py”, line 131, in call
observer(event)
File “C:\Program Files\ParaView 5.9.0-RC1-MPI-Windows-Python3.8-msvc2017-64bit\bin\Lib\site-packages\twisted\logger_legacy.py”, line 93, in call
self.legacyObserver(event)
File “C:\Program Files\ParaView 5.9.0-RC1-MPI-Windows-Python3.8-msvc2017-64bit\bin\Lib\site-packages\twisted\python\log.py”, line 595, in emit
_publishNew(self.newObserver, eventDict, textFromEventDict)
File “C:\Program Files\ParaView 5.9.0-RC1-MPI-Windows-Python3.8-msvc2017-64bit\bin\Lib\site-packages\twisted\logger_legacy.py”, line 154, in publishToNewObserver
observer(eventDict)
File “C:\Program Files\ParaView 5.9.0-RC1-MPI-Windows-Python3.8-msvc2017-64bit\bin\Lib\site-packages\twisted\logger_stdlib.py”, line 115, in call
self.logger.log(
File "C:\Program Files\ParaView 5.9.0-RC1-MPI-Windows-Python3.8-msvc2017-64bit\bin\lib\logging_init
.py", line 1500, in log
self.log(level, msg, args, **kwargs)
File "C:\Program Files\ParaView 5.9.0-RC1-MPI-Windows-Python3.8-msvc2017-64bit\bin\lib\logging_init
.py", line 1565, in _log
fn, lno, func, sinfo = self.findCaller(stack_info, stacklevel)
builtins.TypeError: _findCaller() takes from 1 to 2 positional arguments but 3 were given

Does Visualizer fail the same way with your ParaView bundle?

It looks like the latest twisted logger has a different API. Since the error seems to come from that line

You should try with ParaView 5.8

Hi, same story with Visualizer, please below:

c:\Program Files\ParaView 5.9.0-RC1-MPI-Windows-Python3.8-msvc2017-64bit>.\bin\pvpython.exe share\paraview-5.9\web\visualizer\server\pvw-visualizer.py --content share\paraview-5.9\web\visualizer\www\ --data "D:\xx\VTKViewer\data" --port 8080                                                    "
(   1.584s) [paraview        ]      VisRTXBackend.cxx:42    WARN| VisRTX Error: Unsupported device
(   1.585s) [paraview        ]      VisRTXBackend.cxx:42    WARN| VisRTX Error: Unsupported device
...
   2.123s) [paraview        ]      VisRTXBackend.cxx:42    WARN| VisRTX Error: Unsupported device
(   2.126s) [paraview        ]      VisRTXBackend.cxx:42    WARN| VisRTX Error: Unsupported device
(   2.126s) [paraview        ]      VisRTXBackend.cxx:42    WARN| VisRTX Error: Unsupported device
wslink: Starting factory
Temporarily disabling observer LegacyLogObserverWrapper(<bound method PythonLoggingObserver.emit of <twisted.python.log.PythonLoggingObserver object at 0x00000239B4ECE280>>) due to exception: [Failure instance: Traceback: <class 'TypeError'>: _findCaller() takes from 1 to 2 positional arguments but 3 were given
C:\Program Files\ParaView 5.9.0-RC1-MPI-Windows-Python3.8-msvc2017-64bit\bin\Lib\site-packages\wslink\server.py:30:print_ready
C:\Program Files\ParaView 5.9.0-RC1-MPI-Windows-Python3.8-msvc2017-64bit\bin\Lib\site-packages\twisted\python\threadable.py:53:sync
C:\Program Files\ParaView 5.9.0-RC1-MPI-Windows-Python3.8-msvc2017-64bit\bin\Lib\site-packages\twisted\python\log.py:286:msg
C:\Program Files\ParaView 5.9.0-RC1-MPI-Windows-Python3.8-msvc2017-64bit\bin\Lib\site-packages\twisted\logger\_legacy.py:154:publishToNewObserver
--- <exception caught here> ---
C:\Program Files\ParaView 5.9.0-RC1-MPI-Windows-Python3.8-msvc2017-64bit\bin\Lib\site-packages\twisted\logger\_observer.py:131:__call__
C:\Program Files\ParaView 5.9.0-RC1-MPI-Windows-Python3.8-msvc2017-64bit\bin\Lib\site-packages\twisted\logger\_legacy.py:93:__call__
C:\Program Files\ParaView 5.9.0-RC1-MPI-Windows-Python3.8-msvc2017-64bit\bin\Lib\site-packages\twisted\python\log.py:595:emit
C:\Program Files\ParaView 5.9.0-RC1-MPI-Windows-Python3.8-msvc2017-64bit\bin\Lib\site-packages\twisted\logger\_legacy.py:154:publishToNewObserver
C:\Program Files\ParaView 5.9.0-RC1-MPI-Windows-Python3.8-msvc2017-64bit\bin\Lib\site-packages\twisted\logger\_stdlib.py:115:__call__
c:\Program Files\ParaView 5.9.0-RC1-MPI-Windows-Python3.8-msvc2017-64bit\bin\lib\logging\__init__.py:1500:log
c:\Program Files\ParaView 5.9.0-RC1-MPI-Windows-Python3.8-msvc2017-64bit\bin\lib\logging\__init__.py:1565:_log
]
Traceback (most recent call last):
  File "C:\Program Files\ParaView 5.9.0-RC1-MPI-Windows-Python3.8-msvc2017-64bit\bin\Lib\site-packages\wslink\server.py", line 30, in print_ready
    log.msg("wslink: Starting factory", logLevel=logging.CRITICAL)
  File "C:\Program Files\ParaView 5.9.0-RC1-MPI-Windows-Python3.8-msvc2017-64bit\bin\Lib\site-packages\twisted\python\threadable.py", line 53, in sync
    return function(self, *args, **kwargs)
  File "C:\Program Files\ParaView 5.9.0-RC1-MPI-Windows-Python3.8-msvc2017-64bit\bin\Lib\site-packages\twisted\python\log.py", line 286, in msg
    _publishNew(self._publishPublisher, actualEventDict, textFromEventDict)
  File "C:\Program Files\ParaView 5.9.0-RC1-MPI-Windows-Python3.8-msvc2017-64bit\bin\Lib\site-packages\twisted\logger\_legacy.py", line 154, in publishToNewObserver
    observer(eventDict)
--- <exception caught here> ---
  File "C:\Program Files\ParaView 5.9.0-RC1-MPI-Windows-Python3.8-msvc2017-64bit\bin\Lib\site-packages\twisted\logger\_observer.py", line 131, in __call__
    observer(event)
  File "C:\Program Files\ParaView 5.9.0-RC1-MPI-Windows-Python3.8-msvc2017-64bit\bin\Lib\site-packages\twisted\logger\_legacy.py", line 93, in __call__
    self.legacyObserver(event)
  File "C:\Program Files\ParaView 5.9.0-RC1-MPI-Windows-Python3.8-msvc2017-64bit\bin\Lib\site-packages\twisted\python\log.py", line 595, in emit
    _publishNew(self._newObserver, eventDict, textFromEventDict)
  File "C:\Program Files\ParaView 5.9.0-RC1-MPI-Windows-Python3.8-msvc2017-64bit\bin\Lib\site-packages\twisted\logger\_legacy.py", line 154, in publishToNewObserver
    observer(eventDict)
  File "C:\Program Files\ParaView 5.9.0-RC1-MPI-Windows-Python3.8-msvc2017-64bit\bin\Lib\site-packages\twisted\logger\_stdlib.py", line 115, in __call__
    self.logger.log(
  File "c:\Program Files\ParaView 5.9.0-RC1-MPI-Windows-Python3.8-msvc2017-64bit\bin\lib\logging\__init__.py", line 1500, in log
    self._log(level, msg, args, **kwargs)
  File "c:\Program Files\ParaView 5.9.0-RC1-MPI-Windows-Python3.8-msvc2017-64bit\bin\lib\logging\__init__.py", line 1565, in _log
    fn, lno, func, sinfo = self.findCaller(stack_info, stacklevel)
builtins.TypeError: _findCaller() takes from 1 to 2 positional arguments but 3 were given

Try to edit the python code by passing disableLogging=True to the start_server call.

1 Like

Hi Sébastien,

yes the disableLogging=True workaround did the trick with PV 5.9.0 RC1 (at least no more errors in window at server launch) - Though I have not tested functionally yet, thanks for the tip! Charlie

We’re following up in an issue: https://gitlab.kitware.com/paraview/paraview/-/issues/20419
Looks like there are some additional problems, too.