[ https://issues.apache.org/jira/browse/SINGA-409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16696552#comment-16696552 ]
Ngin Yun Chuan commented on SINGA-409: -------------------------------------- Hi wangwei, Thanks for the link to understanding more about shared libraries! I've read it. Just after the fix has been pushed, I went to try installing `singa-cpu=1.2.0` again, using the same Dockerfile as above. However, the _exact_ same error as _above_ occurs. Below is my `conda list`: {noformat} # packages in environment at /usr/local/envs/rafiki: # # Name Version Build Channel blas 1.0 mkl ca-certificates 2018.03.07 0 certifi 2018.10.15 py36_0 click 7.0 py36_0 flask 1.0.2 py36_1 flask-cors 3.0.7 py36_0 freetype 2.9.1 h8a8886c_1 future 0.17.1 py36_0 glog 0.3.4 0 intel-openmp 2019.1 144 itsdangerous 1.1.0 py36_0 jinja2 2.10 py36_0 jpeg 9b h024ee3a_2 libedit 3.1.20170329 h6b74fdf_2 libffi 3.2.1 hd88cf55_4 libgcc 4.8.5 2 libgcc-ng 8.2.0 hdf63c60_1 libgfortran 3.0.0 1 libgfortran-ng 7.3.0 hdf63c60_0 libpng 1.6.35 hbc83047_0 libprotobuf 3.6.1 hd408876_0 libstdcxx-ng 8.2.0 hdf63c60_1 libtiff 4.0.9 he85c1e1_2 markupsafe 1.1.0 py36h7b6447c_0 mkl 2018.0.3 1 mkl_fft 1.0.6 py36h7dd41cf_0 mkl_random 1.0.1 py36h4414c95_1 ncurses 6.1 hf484d3e_0 numpy 1.15.4 py36h1d66e8a_0 numpy-base 1.15.4 py36h81de0dd_0 olefile 0.46 py36_0 openblas 0.2.19 0 openssl 1.1.1a h7b6447c_0 pillow 5.3.0 py36h34e0f95_0 pip 18.1 py36_0 protobuf 3.6.1 py36he6710b0_0 python 3.6.7 h0371630_0 readline 7.0 h7b6447c_5 setuptools 40.6.2 py36_0 singa 1.2.0 py36_cpu nusdbsystem singa-cpu 1.2.0 0 nusdbsystem six 1.11.0 py36_1 sqlite 3.25.3 h7b6447c_0 tk 8.6.8 hbc83047_0 tqdm 4.28.1 py36h28b3542_0 werkzeug 0.14.1 py36_0 wheel 0.32.3 py36_0 xz 5.2.4 h14c3975_4 zlib 1.2.11 h7b6447c_3 {noformat} I wanted to verify that `singa-cpu=1.2.0` gives me the same error on my MacOS natively, but I failed to install it as it seems like `singa-cpu=1.2.0` for OSX is not out...? (https://conda.anaconda.org/nusdbsystem/osx-64) Let me know if there's something wrong with what I am doing. A note that for Rafiki, it is no longer a requirement to upgrade `protobuf` to 3.6.1 (ref. to [SINGA-396]). This is because we are no longer pre-installing both Tensorflow and Singa on the base worker image. However, if a model developer specifies the installation of both Tensorflow and Singa <=1.1.1, one of these might not work due to the possible version conflict in `protobuf`. > [Singa 1.2.0] Basic `singa-cpu` import throws error > --------------------------------------------------- > > Key: SINGA-409 > URL: https://issues.apache.org/jira/browse/SINGA-409 > Project: Singa > Issue Type: Bug > Environment: MacOS Mojave 10.14 > Reporter: Ngin Yun Chuan > Priority: Major > > When I run the image built from this Dockerfile in Docker: > {noformat} > FROM ubuntu:16.04 > RUN apt-get update && apt-get -y upgrade > # Install conda with pip and python 3.6 > RUN apt-get -y install curl bzip2 \ > && curl -sSL > https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -o > /tmp/miniconda.sh \ > && bash /tmp/miniconda.sh -bfp /usr/local \ > && rm -rf /tmp/miniconda.sh \ > && conda create -y --name rafiki python=3.6 \ > && conda clean --all --yes > ENV PATH /usr/local/envs/rafiki/bin:$PATH > RUN conda install --name rafiki -y -c nusdbsystem singa-cpu==1.2.0 > CMD python -c 'import singa' > {noformat} > I get an error: > {noformat} > >>> import singa > Traceback (most recent call last): > File > "/usr/local/envs/rafiki/lib/python3.6/site-packages/singa/singa_wrap.py", > line 18, in swig_import_helper > return importlib.import_module(mname) > File "/usr/local/envs/rafiki/lib/python3.6/importlib/__init__.py", line > 126, in import_module > return _bootstrap._gcd_import(name[level:], package, level) > File "<frozen importlib._bootstrap>", line 994, in _gcd_import > File "<frozen importlib._bootstrap>", line 971, in _find_and_load > File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked > File "<frozen importlib._bootstrap>", line 658, in _load_unlocked > File "<frozen importlib._bootstrap>", line 571, in module_from_spec > File "<frozen importlib._bootstrap_external>", line 922, in create_module > File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed > ImportError: > /usr/local/envs/rafiki/lib/python3.6/site-packages/singa/../../../libstdc++.so.6: > version `GLIBCXX_3.4.20' not found (required by > /usr/local/envs/rafiki/lib/python3.6/site-packages/singa/../../../libprotobuf.so.17) > During handling of the above exception, another exception occurred: > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File > "/usr/local/envs/rafiki/lib/python3.6/site-packages/singa/__init__.py", line > 18, in <module> > from . import singa_wrap > File > "/usr/local/envs/rafiki/lib/python3.6/site-packages/singa/singa_wrap.py", > line 21, in <module> > _singa_wrap = swig_import_helper() > File > "/usr/local/envs/rafiki/lib/python3.6/site-packages/singa/singa_wrap.py", > line 20, in swig_import_helper > return importlib.import_module('_singa_wrap') > File "/usr/local/envs/rafiki/lib/python3.6/importlib/__init__.py", line > 126, in import_module > return _bootstrap._gcd_import(name[level:], package, level) > ModuleNotFoundError: No module named '_singa_wrap' > {noformat} > On the other hand, when I downgrade the version from `1.2.0` to `1.1.1`, it > seem to work fine. -- This message was sent by Atlassian JIRA (v7.6.3#76005)