@ptrblck thanks! @krshrimali, what an amazing repository you have there!. I noticed that you are using Mac OSX, so there imports are very different, by inspecting the imports, I couldn’t find any reason why I have that error in my Jupyter notebook. Did you take a look at my code?
Can you please tell if you’re using a conda virtual environment for Xeus-Cling? If not, can you please try and install xeus-cling in a new virtual environment and double-check? I suspect the error might be because of the conflicts with existing libraries.
Also, if the above solution doesn’t work, I suggest changing set(TORCH_CXX_FLAGS "-D_GLIBCXX_USE_CXX11_ABI=") to set(TORCH_CXX_FLAGS "-D_GLIBCXX_USE_CXX11_ABI=1") and reload the libraries and header files. This, I suspect, might solve C++ ABI compatibility issue, if any.
I checked the Dockerfile and I suggest creating a conda environment and then installing the required libraries in it. I had the same problem, and installing it in a virtualenv worked.
I have verified this on the Dockerfile as well. I think there’s already a Dockerfile created, which I’ll release in a couple of days after some testing.
Please let me know if using a conda environment doesn’t work. I have also tested it on the Linux systems, and it works well. The last solution could be to compile from scratch and see if that works. (as also mentioned in some of the GitHub issues).
I just had a quick look and was able to reproduce the problem. I could solve it by building PyTorch from the source. Also, I had to set the flag D_GLIBCXX_USE_CXX11_ABI to 0 from 1.
Hi @krshrimali Sorry for coming late to this discussion. I haven’t been able to solve this problem. Just to clarify, I have to do something like (I use Ubuntu 18.04):
export D_GLIBCXX_USE_CXX11_ABI=1
before compiling the Pytorch source code, right?
Many thanks!
Same exact issue… using xeus-cling in conda environment, manually built pytorch. Seems to mostly work except for the “from_blob” function which has the same exact:
IncrementalExecutor::executeFunction: symbol '__emutls_v._ZSt11__once_call' unresolved while linking [cling interface function]!