KitwareMedical / KitwareMedical/SlicerTrame

macOS M1 - Slicer 5.10: trame-rca crash when trying to find libvtkParallel

Open
#4 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
7
Forks
1
PR merge metrics
No merged PRs in 30d

Description

# Description
The server start crash when trying to run the minimal hello world example from trame-slicer.
Stacktrace:
```
Traceback (most recent call last):

File "", line 5, in
File "", line 10, in
File "/Applications/Slicer.app/Contents/lib/Python/lib/python3.12/site-packages/trame_slicer/rca_view/__init__.py", line 3, in
from .rca_view_factory import (
File "/Applications/Slicer.app/Contents/lib/Python/lib/python3.12/site-packages/trame_slicer/rca_view/rca_view_factory.py", line 10, in
from trame_rca.utils import RcaEncoder, RcaRenderScheduler, RcaViewAdapter, VtkWindow
File "/Applications/Slicer.app/Contents/lib/Python/lib/python3.12/site-packages/trame_rca/utils.py", line 24, in
from trame_rca.vtk_utils import VtkWindow
File "/Applications/Slicer.app/Contents/lib/Python/lib/python3.12/site-packages/trame_rca/vtk_utils.py", line 7, in
from vtkmodules.vtkWebCore import vtkRemoteInteractionAdapter
ImportError: dlopen(/Applications/Slicer.app/Contents/bin/Python/vtkmodules/vtkWebCore.cpython-312-darwin.so, 0x0002): Library not loaded: /Users/svc-dashboard/D/S/A/VTK-build/lib/libvtkParallel-9.5.1.dylib
Referenced from: <12CA5C77-2FF4-3DBF-B24A-24FF733A970F> /Applications/Slicer.app/Contents/Extensions-34045/SlicerTrame/lib/Slicer-5.10/libvtkWebCore.1.dylib
Reason: tried: '/Users/svc-dashboard/D/S/A/VTK-build/lib/libvtkParallel-9.5.1.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/svc-dashboard/D/S/A/VTK-build/lib/libvtkParallel-9.5.1.dylib' (no such file), '/Users/svc-dashboard/D/S/A/VTK-build/lib/libvtkParallel-9.5.1.dylib' (no such file)
```

# System spec
Chip: Apple M1
Memory: 16G
os: macOS sonoma 14.4

# Steps to reproduce
- Grab slicer stable version - 5.10 from https://download.slicer.org/ - revision 34045 - built ~2026-02-13~ EDIT: 2025-11-10
- install SlicerTrame extension - version 729154a (2025-12-12)
- Run the trame slicer minimal example : [example link](https://github.com/KitwareMedical/trame-slicer/blob/b2a3a2ba56b51698ab2d90fd43861351200a1b37/examples/minimal/_01_hello_world.py)
Then you get backtrace described above.

# More debug info
## libs are available in vtkmodules:
```
jules@macm1 vtkmodules % pwd
/Applications/Slicer.app/Contents/bin/Python/vtkmodules
jules@macm1 vtkmodules % ls | grep -i parallel
vtkFiltersParallel.cpython-312-darwin.so
vtkFiltersParallelImaging.cpython-312-darwin.so
vtkIOParallel.cpython-312-darwin.so
vtkIOParallelXML.cpython-312-darwin.so
vtkParallelCore.cpython-312-darwin.so
```

## Slicer python console
```
>>> import vtk
>>> vtk.__file__
'/Applications/Slicer.app/Contents/bin/Python/vtk.py'
>>> vtk.__version__
'9.5.2'
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with examples/minimal/_01_hello_world.py and the import path through trame_rca/vtk_utils.py shown in the traceback. Reproduce on the specified Slicer 5.10 macOS M1 setup and inspect why libvtkWebCore.1.dylib requests the missing libvtkParallel-9.5.1.dylib despite the available vtkmodules libraries. Done means the minimal example starts without the ImportError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.