Hello,
Goal: I’m trying to implement websockets in trame application using paraview as a rendering engine. To implement websockets in trame app, i’m using asyncio to create tasks and execute parallelly. Trame app should act like a listener for websockets connections.
Error:
when I try to execute the application with the following command:
pvpython SimpleCone.py --server
it gives me the error that ModuleNotFoundError: No module named ‘_ssl’ .
Detailed Error:
(pvenv) C:\Users\Ans.Shakeel\trame-app\trame-tutorial\05_paraview> pvpython SimpleCone.py --server
ParaView is using venv: C:\Users\Ans.Shakeel\visualizer-new version\vis_3\paraview-visualizer\pvenv
Traceback (most recent call last):
File “C:\Users\Ans.Shakeel\trame-app\trame-tutorial\05_paraview\SimpleCone.py”, line 4, in
import _ssl
ModuleNotFoundError: No module named ‘_ssl’
Note: It is working perfectly fine with VTK as rendering engine. According to my understanding, it’s issue in pvpython interpreter. I also tried to import ssl in python shell, the error is following:
(venv) C:\Users\Ans.Shakeel\trame-app\trame-tutorial\05_paraview>pvpython
Python 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:36:42) [MSC v.1929 64 bit (AMD64)] on win32
Type “help”, “copyright”, “credits” or “license” for more information.
import _ssl
Traceback (most recent call last):
File “”, line 1, in
ModuleNotFoundError: No module named ‘_ssl’
import ssl
Traceback (most recent call last):
File “”, line 1, in
File “C:\Program Files\ParaView 5.11.0\bin\lib\ssl.py”, line 99, in
import _ssl # if we can’t import it, let the error propagate
ModuleNotFoundError: No module named ‘_ssl’
import sys
print(sys.path)
[‘’, ‘C:\Program Files\ParaView 5.11.0\bin\Lib\site-packages’, ‘C:\Program Files\ParaView 5.11.0\bin\python39.zip’, ‘C:\Program Files\ParaView 5.11.0\bin\DLLs’, ‘C:\Program Files\ParaView 5.11.0\bin\lib’, ‘C:\Program Files\ParaView 5.11.0\bin’, ‘C:\Program Files\ParaView 5.11.0\bin\lib\site-packages’, ‘C:\Program Files\ParaView 5.11.0\bin\lib\site-packages\win32’, ‘C:\Program Files\ParaView 5.11.0\bin\lib\site-packages\win32\lib’, ‘C:\Program Files\ParaView 5.11.0\bin\lib\site-packages\Pythonwin’]
Regards,
Ans