Open alexanderwhatley opened 7 years ago
@Carreau Any thoughts?
The solution that they had, which was to set LD_LIBRARY_PATH, did not work for me.
How did you set this ? If you did it before running the notebook it might not have any effect, try using things like a2km to set environment variable in the kernelspec.
I had similar issues with RPy2, and that solved it for me.
I have the same problem, I checked my environment variables by printing out %env in the cell and it did print out the correct path assigned to it via .bashrc. However, the error is still of the form -
ImportError: /home/sharbat/anaconda3/lib/python3.5/sitepackages/zmq/backend/cython/../../../../.././libstdc++.so.6: version 'CXXABI_1.3.8' not found (required by /usr/local/MATLAB/R2016b/extern/engines/python/dist/matlab/engine/glnxa64/../../../../../../../bin/glnxa64/libmx.so)
which is the same as the one above. Anyone else got a solution?
EDIT : I checked and found that there is no such thing as a sitepackages and it is in fact at the following directory that I actually do have CXXABI_1.3.8
/home/sharbat/anaconda3/lib/python3.5/sitepackages/zmq/backend/cython/../../../../.././libstdc++.so.6
So I guess have to get jupyter notebook to not look where it is looking... does changing LD_LIBRARY_PATH do that?
EDIT : So, I changed the LD_LIBRARY_PATH to make it point to where I got the CXXABI_1.3.8 via scanelf -l -s CXXABI_1.3.8 | grep CXXABI_1.3.8
which returned
ET_DYN CXXABI_1.3.8 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.23
It worked.
if you have code: import sys import matlab.engine
The code "import matlab.engine" must be put at the first line, or you'll get the following error EnvironmentError: Please reinstall MATLAB Engine for Python or contact MathWorks Technical Support for assistance: /opt/MATLAB/R2016b/extern/engines/python/dist/matlab/engine/glnxa64/../../../../../../../bin/glnxa64/libssl.so.1.0.0: undefined symbol: EVP_idea_cbc
Platform: Ubuntu 16.10
I am trying to use the matlab-python interface in the jupyter notebook (https://www.mathworks.com/help/matlab/matlab-engine-for-python.html). The interface works fine in the terminal, but not in the notebook. It seems like the notebook does not have the same access to C++ compilers that the command line python does. See here where someone else also had this problem: http://stackoverflow.com/questions/36076395/import-of-matlab-engine-works-in-ipython-but-not-in-jupyter The solution that they had, which was to set LD_LIBRARY_PATH, did not work for me.
When I try to run
import matlab.engine
in the notebook, I get the following error message, which indicates that it was unable to find the necessary C++ compiler: