{"action":"opened","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/21818","repository_url":"https://api.github.com/repos/tensorflow/tensorflow","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/21818/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/21818/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/21818/events","html_url":"https://github.com/tensorflow/tensorflow/issues/21818","id":353207689,"node_id":"MDU6SXNzdWUzNTMyMDc2ODk=","number":21818,"title":"Unable to import tensorrt on macOS","user":{"login":"nehaljwani","id":1779189,"node_id":"MDQ6VXNlcjE3NzkxODk=","avatar_url":"https://avatars0.githubusercontent.com/u/1779189?v=4","gravatar_id":"","url":"https://api.github.com/users/nehaljwani","html_url":"https://github.com/nehaljwani","followers_url":"https://api.github.com/users/nehaljwani/followers","following_url":"https://api.github.com/users/nehaljwani/following{/other_user}","gists_url":"https://api.github.com/users/nehaljwani/gists{/gist_id}","starred_url":"https://api.github.com/users/nehaljwani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nehaljwani/subscriptions","organizations_url":"https://api.github.com/users/nehaljwani/orgs","repos_url":"https://api.github.com/users/nehaljwani/repos","events_url":"https://api.github.com/users/nehaljwani/events{/privacy}","received_events_url":"https://api.github.com/users/nehaljwani/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-23T03:25:30Z","updated_at":"2018-08-23T03:25:30Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"### System information\r\n- **Have I written custom code (as opposed to using a stock example script provided in TensorFlow)**: No\r\n- **OS Platform and Distribution (e.g., Linux Ubuntu 16.04)**: macOS, 10.13.6\r\n- **Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device**: N/A\r\n- **TensorFlow installed from (source or binary)**: binary\r\n- **TensorFlow version (use command below)**: 1.10.0\r\n- **Python version**: 2.7.15\r\n- **Bazel version (if compiling from source)**: N/A\r\n- **GCC/Compiler version (if compiling from source)**: N/A\r\n- **CUDA/cuDNN version**: N/A\r\n- **GPU model and memory**: N/A\r\n- **Exact command to reproduce**:  `python -c 'from tensorflow.contrib import tensorrt as trt'`\r\n\r\n\r\n### Describe the problem\r\nUnable to import tensorrt\r\n\r\n### Source code / logs\r\n```\r\n(/private/tmp/scratch.nwani/1534993632/dev) ➜  1534993632 python\r\nPython 2.7.15 |Anaconda, Inc.| (default, May  1 2018, 18:37:05)\r\n[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n>>> from tensorflow.contrib import tensorrt as trt\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/private/tmp/scratch.nwani/1534993632/dev/lib/python2.7/site-packages/tensorflow/contrib/tensorrt/__init__.py\", line 25, in <module>\r\n    from tensorflow.contrib.tensorrt.python import *\r\n  File \"/private/tmp/scratch.nwani/1534993632/dev/lib/python2.7/site-packages/tensorflow/contrib/tensorrt/python/__init__.py\", line 23, in <module>\r\n    from tensorflow.contrib.tensorrt.python.trt_convert import calib_graph_to_infer_graph\r\n  File \"/private/tmp/scratch.nwani/1534993632/dev/lib/python2.7/site-packages/tensorflow/contrib/tensorrt/python/trt_convert.py\", line 23, in <module>\r\n    from tensorflow.contrib.tensorrt.wrap_conversion import calib_convert\r\n  File \"/private/tmp/scratch.nwani/1534993632/dev/lib/python2.7/site-packages/tensorflow/contrib/tensorrt/wrap_conversion.py\", line 28, in <module>\r\n    _wrap_conversion = swig_import_helper()\r\n  File \"/private/tmp/scratch.nwani/1534993632/dev/lib/python2.7/site-packages/tensorflow/contrib/tensorrt/wrap_conversion.py\", line 24, in swig_import_helper\r\n    _mod = imp.load_module('_wrap_conversion', fp, pathname, description)\r\nImportError: dynamic module does not define init function (init_wrap_conversion)\r\n>>>\r\n```\r\n"}}
{"actor":{"display_login":"nehaljwani"}}