{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/5141","repository_url":"https://api.github.com/repos/tensorflow/tensorflow","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/5141/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/5141/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/5141/events","html_url":"https://github.com/tensorflow/tensorflow/issues/5141","id":184655425,"number":5141,"title":"ipython ImportError: Library not loaded: @rpath/libcudart.8.0.dylib","user":{"login":"ohadle","id":2196196,"avatar_url":"https://avatars.githubusercontent.com/u/2196196?v=3","gravatar_id":"","url":"https://api.github.com/users/ohadle","html_url":"https://github.com/ohadle","followers_url":"https://api.github.com/users/ohadle/followers","following_url":"https://api.github.com/users/ohadle/following{/other_user}","gists_url":"https://api.github.com/users/ohadle/gists{/gist_id}","starred_url":"https://api.github.com/users/ohadle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ohadle/subscriptions","organizations_url":"https://api.github.com/users/ohadle/orgs","repos_url":"https://api.github.com/users/ohadle/repos","events_url":"https://api.github.com/users/ohadle/events{/privacy}","received_events_url":"https://api.github.com/users/ohadle/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":18,"created_at":"2016-10-22T21:34:38Z","updated_at":"2016-11-01T18:37:59Z","closed_at":"2016-10-25T19:29:12Z","body":"I just installed 0.11rc1 from pip (`TF_BINARY_URL=https://storage.googleapis.com/tensorflow/mac/gpu/tensorflow-0.11.0rc1-py2-none-any.whl`), with a brand-new CUDA 8.0 installation, and got this error:\n\n```\nIn [1]: import tensorflow as tf\n---------------------------------------------------------------------------\nImportError                               Traceback (most recent call last)\n<ipython-input-1-41389fad42b5> in <module>()\n----> 1 import tensorflow as tf\n\n/Users/me/anaconda/lib/python2.7/site-packages/tensorflow/__init__.py in <module>()\n     21 from __future__ import print_function\n     22\n---> 23 from tensorflow.python import *\n     24\n     25\n\n/Users/me/anaconda/lib/python2.7/site-packages/tensorflow/python/__init__.py in <module>()\n     47 _default_dlopen_flags = sys.getdlopenflags()\n     48 sys.setdlopenflags(_default_dlopen_flags | ctypes.RTLD_GLOBAL)\n---> 49 from tensorflow.python import pywrap_tensorflow\n     50 sys.setdlopenflags(_default_dlopen_flags)\n     51\n\n/Users/me/anaconda/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py in <module>()\n     26                 fp.close()\n     27             return _mod\n---> 28     _pywrap_tensorflow = swig_import_helper()\n     29     del swig_import_helper\n     30 else:\n\n/Users/me/anaconda/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py in swig_import_helper()\n     22         if fp is not None:\n     23             try:\n---> 24                 _mod = imp.load_module('_pywrap_tensorflow', fp, pathname, description)\n     25             finally:\n     26                 fp.close()\n\nImportError: dlopen(/Users/me/anaconda/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow.so, 10): Library not loaded: @rpath/libcudart.8.0.dylib\n  Referenced from: /Users/me/anaconda/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow.so\n  Reason: image not found\n```\n\n(Similar to https://github.com/tensorflow/tensorflow/issues/4187 but different error.)\nLooks like a [path issue](http://stackoverflow.com/questions/37933890/tensorflow-gpu-setup-error-with-cuda-on-pycharm) but I don't see a problem:\n\n```\n➜  ~ echo $PATH\n/Users/me/anaconda/bin:/usr/local/cuda/bin:/Developer/NVIDIA/CUDA-8.0/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin\n➜  ~ echo $DYLD_LIBRARY_PATH\n/usr/local/cuda/lib:/Developer/NVIDIA/CUDA-8.0/lib:\n➜  ~ ll /Developer/NVIDIA/CUDA-8.0/lib/libcudart*\n-rwxr-xr-x 1 root wheel 285K Sep 27 00:59 /Developer/NVIDIA/CUDA-8.0/lib/libcudart.8.0.dylib\nlrwxr-xr-x 1 root wheel   19 Sep 27 00:59 /Developer/NVIDIA/CUDA-8.0/lib/libcudart.dylib -> libcudart.8.0.dylib\n-rw-r--r-- 1 root wheel 599K Sep 27 00:59 /Developer/NVIDIA/CUDA-8.0/lib/libcudart_static.a\n```\n\nI also get a segfault when importing in python:\n\n```\n➜  ~ python -c \"import tensorflow;\"\nI tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcublas.dylib locally\n[1]    60723 segmentation fault  python -c \"import tensorflow;\"\n```\n\nTried the [suggestion from the docs](https://www.tensorflow.org/versions/r0.11/get_started/os_setup.html#mac-os-x-segmentation-fault-when-import-tensorflow), didn't work:\n\n```\nln -sf /usr/local/cuda/lib/libcuda.dylib /usr/local/cuda/lib/libcuda.1.dylib\n```\n\nOn OSX 10.11.6, CUDA 8.0.46, no CUDNN installed yet.\n\nIs this a SIP issue? Should the install procedure be updated?\nI don't know if I can turn off SIP, this is a work computer.\n"},"comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments/257655004","html_url":"https://github.com/tensorflow/tensorflow/issues/5141#issuecomment-257655004","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/5141","id":257655004,"user":{"login":"bhomass","id":1161170,"avatar_url":"https://avatars.githubusercontent.com/u/1161170?v=3","gravatar_id":"","url":"https://api.github.com/users/bhomass","html_url":"https://github.com/bhomass","followers_url":"https://api.github.com/users/bhomass/followers","following_url":"https://api.github.com/users/bhomass/following{/other_user}","gists_url":"https://api.github.com/users/bhomass/gists{/gist_id}","starred_url":"https://api.github.com/users/bhomass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhomass/subscriptions","organizations_url":"https://api.github.com/users/bhomass/orgs","repos_url":"https://api.github.com/users/bhomass/repos","events_url":"https://api.github.com/users/bhomass/events{/privacy}","received_events_url":"https://api.github.com/users/bhomass/received_events","type":"User","site_admin":false},"created_at":"2016-11-01T18:37:59Z","updated_at":"2016-11-01T18:37:59Z","body":"/libcudart.8.0.dylib definitely is there. not sure how to check cuDNN. but I passed the CUDA installation check. "}}
{"actor":{"display_login":"bhomass"}}