Can't load open3d

Hi,

I’m just starting to get Slicer on my mac (os 10.13) ready for the SlicerMorph workshop. When I load ALPACA it prompts me to install open3d. After it is done Slicer crashes and quit. I tried to uninstall and reinstalling open3d, and didn’t receive any error message. But when I import open3d or load ALPACA, Slicer still crashes and quit.

Thanks

Can you:

  1. type pip_install("open3d") into your python console and paste log.
  2. After the pip install, type import open3d into your console, and paste the error message (if there is one).

Below is the log. Import open3d still crashes and quit Slicer, do you want the system crash report?

pip_install(“open3d”)

Requirement already satisfied: open3d in ./Slicer.app/Contents/lib/Python/lib/python3.6/site-packages (0.9.0.0)

Requirement already satisfied: ipywidgets in ./Slicer.app/Contents/lib/Python/lib/python3.6/site-packages (from open3d) (7.5.1)

Requirement already satisfied: numpy in ./Slicer.app/Contents/lib/Python/lib/python3.6/site-packages (from open3d) (1.19.1)

Requirement already satisfied: notebook in ./Slicer.app/Contents/lib/Python/lib/python3.6/site-packages (from open3d) (6.0.3)

Requirement already satisfied: widgetsnbextension in ./Slicer.app/Contents/lib/Python/lib/python3.6/site-packages (from open3d) (3.5.1)

Requirement already satisfied: nbformat>=4.2.0 in ./Slicer.app/Contents/lib/Python/lib/python3.6/site-packages (from ipywidgets->open3d) (5.0.7)

Requirement already satisfied: ipykernel>=4.5.1 in ./Slicer.app/Contents/lib/Python/lib/python3.6/site-packages (from ipywidgets->open3d) (5.3.4)

Requirement already satisfied: ipython>=4.0.0; python_version >= “3.3” in ./Slicer.app/Contents/lib/Python/lib/python3.6/site-packages (from ipywidgets->open3d) (7.16.1)

Requirement already satisfied: traitlets>=4.3.1 in ./Slicer.app/Contents/lib/Python/lib/python3.6/site-packages (from ipywidgets->open3d) (4.3.3)

Requirement already satisfied: Send2Trash in ./Slicer.app/Contents/lib/Python/lib/python3.6/site-packages (from notebook->open3d) (1.5.0)

Requirement already satisfied: tornado>=5.0 in ./Slicer.app/Contents/lib/Python/lib/python3.6/site-packages (from notebook->open3d) (6.0.4)

Requirement already satisfied: terminado>=0.8.1 in ./Slicer.app/Contents/lib/Python/lib/python3.6/site-packages (from notebook->open3d) (0.8.3)

Requirement already satisfied: ipython-genutils in ./Slicer.app/Contents/lib/Python/lib/python3.6/site-packages (from notebook->open3d) (0.2.0)

Requirement already satisfied: jupyter-core>=4.6.1 in ./Slicer.app/Contents/lib/Python/lib/python3.6/site-packages (from notebook->open3d) (4.6.3)

Requirement already satisfied: jupyter-client>=5.3.4 in ./Slicer.app/Contents/lib/Python/lib/python3.6/site-packages (from notebook->open3d) (6.1.6)

Requirement already satisfied: pyzmq>=17 in ./Slicer.app/Contents/lib/Python/lib/python3.6/site-packages (from notebook->open3d) (19.0.2)

Requirement already satisfied: nbconvert in ./Slicer.app/Contents/lib/Python/lib/python3.6/site-packages (from notebook->open3d) (5.6.1)

Requirement already satisfied: prometheus-client in ./Slicer.app/Contents/lib/Python/lib/python3.6/site-packages (from notebook->open3d) (0.8.0)

Requirement already satisfied: jinja2 in ./Slicer.app/Contents/lib/Python/lib/python3.6/site-packages (from notebook->open3d) (2.11.2)

Requirement already satisfied: jsonschema!=2.5.0,>=2.4 in ./Slicer.app/Contents/lib/Python/lib/python3.6/site-packages (from nbformat>=4.2.0->ipywidgets->open3d) (3.2.0)

Requirement already satisfied: appnope; platform_system == “Darwin” in ./Slicer.app/Contents/lib/Python/lib/python3.6/site-packages (from ipykernel>=4.5.1->ipywidgets->open3d) (0.1.0)

Requirement already satisfied: pickleshare in ./Slicer.app/Contents/lib/Python/lib/python3.6/site-packages (from ipython>=4.0.0; python_version >= “3.3”->ipywidgets->open3d) (0.7.5)

Requirement already satisfied: pygments in ./Slicer.app/Contents/lib/Python/lib/python3.6/site-packages (from ipython>=4.0.0; python_version >= “3.3”->ipywidgets->open3d) (2.6.1)

Requirement already satisfied: setuptools>=18.5 in ./Slicer.app/Contents/lib/Python/lib/python3.6/site-packages (from ipython>=4.0.0; python_version >= “3.3”->ipywidgets->open3d) (49.2.0)

Requirement already satisfied: jedi>=0.10 in ./Slicer.app/Contents/lib/Python/lib/python3.6/site-packages (from ipython>=4.0.0; python_version >= “3.3”->ipywidgets->open3d) (0.17.2)

Requirement already satisfied: prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0 in ./Slicer.app/Contents/lib/Python/lib/python3.6/site-packages (from ipython>=4.0.0; python_version >= “3.3”->ipywidgets->open3d) (3.0.6)

Requirement already satisfied: decorator in ./Slicer.app/Contents/lib/Python/lib/python3.6/site-packages (from ipython>=4.0.0; python_version >= “3.3”->ipywidgets->open3d) (4.4.2)

Requirement already satisfied: backcall in ./Slicer.app/Contents/lib/Python/lib/python3.6/site-packages (from ipython>=4.0.0; python_version >= “3.3”->ipywidgets->open3d) (0.2.0)

Requirement already satisfied: pexpect; sys_platform != “win32” in ./Slicer.app/Contents/lib/Python/lib/python3.6/site-packages (from ipython>=4.0.0; python_version >= “3.3”->ipywidgets->open3d) (4.8.0)

Requirement already satisfied: six in ./Slicer.app/Contents/lib/Python/lib/python3.6/site-packages (from traitlets>=4.3.1->ipywidgets->open3d) (1.15.0)

Requirement already satisfied: ptyprocess; os_name != “nt” in ./Slicer.app/Contents/lib/Python/lib/python3.6/site-packages (from terminado>=0.8.1->notebook->open3d) (0.6.0)

Requirement already satisfied: python-dateutil>=2.1 in ./Slicer.app/Contents/lib/Python/lib/python3.6/site-packages (from jupyter-client>=5.3.4->notebook->open3d) (2.8.1)

Requirement already satisfied: bleach in ./Slicer.app/Contents/lib/Python/lib/python3.6/site-packages (from nbconvert->notebook->open3d) (3.1.5)

Requirement already satisfied: mistune<2,>=0.8.1 in ./Slicer.app/Contents/lib/Python/lib/python3.6/site-packages (from nbconvert->notebook->open3d) (0.8.4)

Requirement already satisfied: testpath in ./Slicer.app/Contents/lib/Python/lib/python3.6/site-packages (from nbconvert->notebook->open3d) (0.4.4)

Requirement already satisfied: defusedxml in ./Slicer.app/Contents/lib/Python/lib/python3.6/site-packages (from nbconvert->notebook->open3d) (0.6.0)

Requirement already satisfied: pandocfilters>=1.4.1 in ./Slicer.app/Contents/lib/Python/lib/python3.6/site-packages (from nbconvert->notebook->open3d) (1.4.2)

Requirement already satisfied: entrypoints>=0.2.2 in ./Slicer.app/Contents/lib/Python/lib/python3.6/site-packages (from nbconvert->notebook->open3d) (0.3)

Requirement already satisfied: MarkupSafe>=0.23 in ./Slicer.app/Contents/lib/Python/lib/python3.6/site-packages (from jinja2->notebook->open3d) (1.1.1)

Requirement already satisfied: importlib-metadata; python_version < “3.8” in ./Slicer.app/Contents/lib/Python/lib/python3.6/site-packages (from jsonschema!=2.5.0,>=2.4->nbformat>=4.2.0->ipywidgets->open3d) (1.7.0)

Requirement already satisfied: attrs>=17.4.0 in ./Slicer.app/Contents/lib/Python/lib/python3.6/site-packages (from jsonschema!=2.5.0,>=2.4->nbformat>=4.2.0->ipywidgets->open3d) (19.3.0)

Requirement already satisfied: pyrsistent>=0.14.0 in ./Slicer.app/Contents/lib/Python/lib/python3.6/site-packages (from jsonschema!=2.5.0,>=2.4->nbformat>=4.2.0->ipywidgets->open3d) (0.16.0)

Requirement already satisfied: parso<0.8.0,>=0.7.0 in ./Slicer.app/Contents/lib/Python/lib/python3.6/site-packages (from jedi>=0.10->ipython>=4.0.0; python_version >= “3.3”->ipywidgets->open3d) (0.7.1)

Requirement already satisfied: wcwidth in ./Slicer.app/Contents/lib/Python/lib/python3.6/site-packages (from prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0->ipython>=4.0.0; python_version >= “3.3”->ipywidgets->open3d) (0.2.5)

Requirement already satisfied: packaging in ./Slicer.app/Contents/lib/Python/lib/python3.6/site-packages (from bleach->nbconvert->notebook->open3d) (20.4)

Requirement already satisfied: webencodings in ./Slicer.app/Contents/lib/Python/lib/python3.6/site-packages (from bleach->nbconvert->notebook->open3d) (0.5.1)

Requirement already satisfied: zipp>=0.5 in ./Slicer.app/Contents/lib/Python/lib/python3.6/site-packages (from importlib-metadata; python_version < “3.8”->jsonschema!=2.5.0,>=2.4->nbformat>=4.2.0->ipywidgets->open3d) (3.1.0)

Requirement already satisfied: pyparsing>=2.0.2 in ./Slicer.app/Contents/lib/Python/lib/python3.6/site-packages (from packaging->bleach->nbconvert->notebook->open3d) (2.4.7)

WARNING: You are using pip version 20.1.1; however, version 20.2.1 is available.

You should consider upgrading via the ‘/Applications/Slicer.app/Contents/bin/./python-real -m pip install --upgrade pip’ command.

Thanks, this all looks normal, could you post the crash report also?

In Slicer, if you go to Help -> Report a bug you can see the current Slicer log file. If you change the “Recent log files” selector to the previous log report you may see more information about what caused the crash.

There is this message in the system crash report:
Termination Reason: DYLD, [0x4] Symbol missing

Dyld Error Message:
Symbol not found: ____chkstk_darwin
Referenced from: /Applications/Slicer.app/Contents/lib/Python/lib/python3.6/site-packages/open3d/open3d.cpython-36m-darwin.so (which was built for Mac OS X 10.15)
Expected in: /usr/lib/libSystem.B.dylib

Below is the log from the previous crash session after import open3d:

[DEBUG][Qt] 11.08.2020 16:36:43 [] (unknown:0) - Session start time …: 2020-08-11 16:36:43
[DEBUG][Qt] 11.08.2020 16:36:43 [] (unknown:0) - Slicer version …: 4.11.0-2020-08-10 (revision 29263 / 6afabbc) macosx-amd64 - installed release
[DEBUG][Qt] 11.08.2020 16:36:43 [] (unknown:0) - Operating system …: Mac OS X / 10.13.6 / 17G66 - 64-bit
[DEBUG][Qt] 11.08.2020 16:36:43 [] (unknown:0) - Memory …: 8192 MB physical, 2048 MB virtual
[DEBUG][Qt] 11.08.2020 16:36:43 [] (unknown:0) - CPU …: GenuineIntel Intel® Core™ i7-2820QM CPU @ 2.30GHz, 4 cores, 8 logical processors
[DEBUG][Qt] 11.08.2020 16:36:43 [] (unknown:0) - VTK configuration …: OpenGL2 rendering, Sequential threading
[DEBUG][Qt] 11.08.2020 16:36:43 [] (unknown:0) - Qt configuration …: version 5.15.0, with SSL, requested OpenGL 3.2 (core profile)
[DEBUG][Qt] 11.08.2020 16:36:43 [] (unknown:0) - Developer mode enabled …: no
[DEBUG][Qt] 11.08.2020 16:36:43 [] (unknown:0) - Prefer executable CLI …: yes
[DEBUG][Qt] 11.08.2020 16:36:43 [] (unknown:0) - Application path …: /Applications/Slicer.app/Contents/MacOS
[DEBUG][Qt] 11.08.2020 16:36:43 [] (unknown:0) - Additional module paths …: /Applications/Slicer.app/Contents/Extensions-29263/RawImageGuess/lib/Slicer-4.11/qt-scripted-modules, /Applications/Slicer.app/Contents/Extensions-29263/SlicerIGT/lib/Slicer-4.11/qt-loadable-modules, /Applications/Slicer.app/Contents/Extensions-29263/SlicerIGT/lib/Slicer-4.11/qt-scripted-modules, /Applications/Slicer.app/Contents/Extensions-29263/Auto3dgm/lib/Slicer-4.11/cli-modules, /Applications/Slicer.app/Contents/Extensions-29263/Auto3dgm/lib/Slicer-4.11/qt-scripted-modules, /Applications/Slicer.app/Contents/Extensions-29263/SegmentEditorExtraEffects/lib/Slicer-4.11/qt-scripted-modules, /Applications/Slicer.app/Contents/Extensions-29263/SlicerDcm2nii/lib/Slicer-4.11/qt-scripted-modules, /Applications/Slicer.app/Contents/Extensions-29263/Sandbox/lib/Slicer-4.11/qt-scripted-modules, /Applications/Slicer.app/Contents/Extensions-29263/MarkupsToModel/lib/Slicer-4.11/qt-loadable-modules, /Applications/Slicer.app/Contents/Extensions-29263/SlicerMorph/lib/Slicer-4.11/qt-scripted-modules, /Applications/Slicer.app/Contents/Extensions-29263/SurfaceWrapSolidify/lib/Slicer-4.11/qt-scripted-modules
[DEBUG][Python] 11.08.2020 16:36:46 [Python] (/Applications/Slicer.app/Contents/lib/Python/lib/python3.6/site-packages/pydicom/datadict.py:432) - Reversing DICOM dictionary so can look up tag from a keyword…
[WARNING][Qt] 11.08.2020 16:36:46 [] (unknown:0) - libpng warning: iCCP: profile ‘ICC Profile’: ‘CMYK’: invalid ICC profile color space
[CRITICAL][Stream] 11.08.2020 16:36:47 [] (unknown:0) - /Applications/Slicer.app/Contents/lib/Python/lib/python3.6/site-packages/pandas/compat/init.py:120: UserWarning: Could not import the lzma module. Your installed Python is incomplete. Attempting to use lzma compression will result in a RuntimeError.
[CRITICAL][Stream] 11.08.2020 16:36:47 [] (unknown:0) - warnings.warn(msg)
[WARNING][Qt] 11.08.2020 16:36:47 [] (unknown:0) - libpng warning: iCCP: known incorrect sRGB profile
[DEBUG][Python] 11.08.2020 16:36:53 [Python] (/Applications/Slicer.app/Contents/lib/Slicer-4.11/qt-scripted-modules/SubjectHierarchyPlugins/AbstractScriptedSubjectHierarchyPlugin.py:36) - Scripted subject hierarchy plugin registered: Annotations
[DEBUG][Python] 11.08.2020 16:36:56 [Python] (/Applications/Slicer.app/Contents/lib/Slicer-4.11/qt-scripted-modules/SubjectHierarchyPlugins/AbstractScriptedSubjectHierarchyPlugin.py:36) - Scripted subject hierarchy plugin registered: SegmentEditor
[DEBUG][Python] 11.08.2020 16:36:57 [Python] (/Applications/Slicer.app/Contents/lib/Slicer-4.11/qt-scripted-modules/SubjectHierarchyPlugins/AbstractScriptedSubjectHierarchyPlugin.py:36) - Scripted subject hierarchy plugin registered: SegmentStatistics
[DEBUG][Python] 11.08.2020 16:37:00 [Python] (/Applications/Slicer.app/Contents/lib/Slicer-4.11/qt-scripted-modules/SubjectHierarchyPlugins/AbstractScriptedSubjectHierarchyPlugin.py:36) - Scripted subject hierarchy plugin registered: ExportAs
[DEBUG][Qt] 11.08.2020 16:36:58 [] (unknown:0) - Switch to module: “Welcome”

Thanks. It looks like this version of open3d isn’t compatible with Mac OS before 10.15. Could you try the following:

pip_uninstall(‘open3d’)
slicer.util.pip_install(‘open3d==0.8.0’)

Installing open3d (0.8.0) works, now it doesn’t crash. Thanks!

1 Like

Thanks for following up @lokpoon, that’s great news.