# Open3d worked within slicer until revision 29392

**URL:** https://discourse.slicer.org/t/open3d-worked-within-slicer-until-revision-29392/13870
**Category:** Support
**Created:** [October 5, 2020, 6:29pm UTC](https://discourse.slicer.org/t/open3d-worked-within-slicer-until-revision-29392/13870 "2020-10-05T18:29:37Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![agporto](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/agporto/32/8319_2.png) [@agporto](https://discourse.slicer.org/u/agporto)
#### Post date: [October 5, 2020, 6:29pm UTC](https://discourse.slicer.org/t/open3d-worked-within-slicer-until-revision-29392/13870/1 "2020-10-05T18:29:37Z")

</div>

SlicerMorph has the open3d==0.9.0 dependency, which was working well within Slicer (Linux) until revision 29392 came along. The last revision in which it worked was 29389.  
Now, it throws out the following error:

Traceback (most recent call last):  
File “/home/maga/.config/NA-MIC/Extensions-29402/SlicerMorph/lib/Slicer-4.11/qt-scripted-modules/ALPACA.py”, line 51, in **init**  
import open3d as o3d  
ModuleNotFoundError: No module named ‘open3d’  
During handling of the above exception, another exception occurred:  
Traceback (most recent call last):  
File “/home/maga/.config/NA-MIC/Extensions-29402/SlicerMorph/lib/Slicer-4.11/qt-scripted-modules/ALPACA.py”, line 57, in **init**  
import open3d as o3d  
File “/home/maga/Downloads/Slicer-4.11.20200930-linux-amd64/lib/Python/lib/python3.6/site-packages/open3d/ **init**.py”, line 35, in   
from .open3d import \* # py2 py3 compatible  
ImportError: /lib64/libstdc++.so.6: version `CXXABI\_1.3.8’ not found (required by /home/maga/Downloads/Slicer-4.11.20200930-linux-amd64/lib/Python/lib/python3.6/site-packages/open3d/open3d.cpython-36m-x86\_64-linux-gnu.so)  
qSlicerPythonCppAPI::instantiateClass - [“ALPACAWidget”] - Failed to instantiate scripted pythonqt class “ALPACAWidget” 0x25e32f8  
Warning, the module “ALPACA” has no widget representation  
Warning, there is no UI for the module “ALPACA”

The key problem seems to be associated with this line:  
ImportError: /lib64/libstdc++.so.6: version `CXXABI\_1.3.8’ not found

I looked at the commits around that time and couldn’t see anything that would justify this error. Any ideas?

---

<div class="post-metadata">

### Author: ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)
#### Post date: [October 5, 2020, 6:33pm UTC](https://discourse.slicer.org/t/open3d-worked-within-slicer-until-revision-29392/13870/2 "2020-10-05T18:33:16Z")

</div>

Sounds like that’s related to a change in the open3d binary version itself. Did you try pip\_installing it on an earlier version of Slicer?

---

<div class="post-metadata">

### Author: ![agporto](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/agporto/32/8319_2.png) [@agporto](https://discourse.slicer.org/u/agporto)
#### Post date: [October 5, 2020, 6:35pm UTC](https://discourse.slicer.org/t/open3d-worked-within-slicer-until-revision-29392/13870/3 "2020-10-05T18:35:04Z")

</div>

Yeah…it works fine on Slicer revision 29389

---

<div class="post-metadata">

### Author: ![agporto](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/agporto/32/8319_2.png) [@agporto](https://discourse.slicer.org/u/agporto)
#### Post date: [October 5, 2020, 6:43pm UTC](https://discourse.slicer.org/t/open3d-worked-within-slicer-until-revision-29392/13870/4 "2020-10-05T18:43:00Z")

</div>

Since I am using pip archived versions (from late 2019), shouldn’t the source of the issue be change within Slicer itself ? If I can pip install the same open3d version on Slicer revision 29389, but not on Slicer revision 29392, wouldn’t that suggest that some change within Slicer caused the break?

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [October 5, 2020, 7:37pm UTC](https://discourse.slicer.org/t/open3d-worked-within-slicer-until-revision-29392/13870/5 "2020-10-05T19:37:46Z")

</div>

There does not seem to be any commits that could cause the ABI incompatibility issue. It is more likely to be caused by build toolset or configuration update on the Linux factory machine.

@Sam_Horvath was there any update or configuration change on the Linux factory machine around September 28?

Updating to a more recent version of open3d or building open3d locally might solve the problem.

---

<div class="post-metadata">

### Author: ![Sam\_Horvath](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sam_horvath/32/3092_2.png) [@Sam\_Horvath](https://discourse.slicer.org/u/Sam_Horvath)
#### Post date: [October 5, 2020, 7:59pm UTC](https://discourse.slicer.org/t/open3d-worked-within-slicer-until-revision-29392/13870/6 "2020-10-05T19:59:32Z")

</div>

The factory image was updated to support Qt. 5.15.1 This is all that changed in our Dockerfile, but would have pulled the latest upstream images:

> <https://github.com/Slicer/SlicerBuildEnvironment/commit/806cba73d276fe9f4bc1ceb4f287d1b53bac3214>

Notable changes in upstream:

> <https://github.com/dockbuild/dockbuild/commit/8858cab34da5076e4fcc7870a8666cbc1f9c8bad#diff-9ad1c378c7531a28355e167d166e0271>

Nothing should have changed about the toolset however, just the package source.

---

<div class="post-metadata">

### Author: ![agporto](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/agporto/32/8319_2.png) [@agporto](https://discourse.slicer.org/u/agporto)
#### Post date: [October 5, 2020, 9:06pm UTC](https://discourse.slicer.org/t/open3d-worked-within-slicer-until-revision-29392/13870/7 "2020-10-05T21:06:33Z")

</div>

Dear Sam and Andras,  
Thanks for checking it out. We haven’t figure out yet what is the source of the problem, but these links will give us a good starting point.  
Thanks again,  
Arthur

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [October 6, 2020, 7:45pm UTC](https://discourse.slicer.org/t/open3d-worked-within-slicer-until-revision-29392/13870/8 "2020-10-06T19:45:08Z")

</div>

It seems that Open3D developers deliberately choose an old C++ ABI. This page may contain useful information: [http://www.open3d.org/docs/release/compilation.html#jupyter-visualization-widgets-support-experimental](http://www.open3d.org/docs/release/compilation.html#jupyter-visualization-widgets-support-experimental)

---

<div class="post-metadata">

### Author: ![agporto](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/agporto/32/8319_2.png) [@agporto](https://discourse.slicer.org/u/agporto)
#### Post date: [October 6, 2020, 7:54pm UTC](https://discourse.slicer.org/t/open3d-worked-within-slicer-until-revision-29392/13870/9 "2020-10-06T19:54:34Z")

</div>

Yeah, that is where I am as well. I was trying to build a manylinux wheel with a different ABI that would work across a broad range of linux flavors, but it still doesn’t seem to solve the problem (or I messed up somewhere). The error I shared yesterday was captured by Murat on a CentOs machine. But on my ubuntu laptop I don’t actually get any error in the error log. Slicer simply crashes and the last entry in the error log is the ‘Welcome’ screen entry. Interestingly, if I open SlicerPython (ie., without a GUI), I can import open3d with no problems. It seems that the source of the problem only occurs when loading the UI. Which again might indicate that something about the Qt upgrade was really the source of the issue.

---

<div class="post-metadata">

### Author: ![agporto](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/agporto/32/8319_2.png) [@agporto](https://discourse.slicer.org/u/agporto)
#### Post date: [October 6, 2020, 7:57pm UTC](https://discourse.slicer.org/t/open3d-worked-within-slicer-until-revision-29392/13870/10 "2020-10-06T19:57:25Z")

</div>

The “good” news is that it doesn’t seem to impact Mac OSX and Windows. It is a linux-specifc problem.

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [October 6, 2020, 8:06pm UTC](https://discourse.slicer.org/t/open3d-worked-within-slicer-until-revision-29392/13870/11 "2020-10-06T20:06:55Z")

</div>

Yes, Windows is using Universal C Runtime since 2015, which preserves ABI compatibility across all versions. One less thing that can break.
