{
  "id": 18405,
  "title": "mxnet installation on fedora 23",
  "url": "/competitions/second-annual-data-science-bowl/discussion/18405",
  "author_name": "",
  "post_date": "2016-01-16T04:31:13.553Z",
  "votes": null,
  "comment_count": 5,
  "views": 1526,
  "content": "<p><strong>python package installation:</strong>\n<a href=\"https://mxnet.readthedocs.org/en/latest/build.html#python-package-installation\">https://mxnet.readthedocs.org/en/latest/build.html#python-package-installation</a>\ni installed successfully. when i test the package i am getting error,</p>\n\n<pre><code>$python example/image-classification/train_mnist.py\n\n[niranjan@localhost mxnet]$ python example/image-classification/train_mnist.py\nTraceback (most recent call last):\n  File &quot;example/image-classification/train_mnist.py&quot;, line 1, in &lt;module&gt;\n    import find_mxnet\n  File &quot;/home/niranjan/mxnet/example/image-classification/find_mxnet.py&quot;, line 2, in &lt;module&gt;\n    import mxnet as mx\n  File &quot;/home/niranjan/mxnet/python/mxnet/__init__.py&quot;, line 7, in &lt;module&gt;\n    from .base import MXNetError\n  File &quot;/home/niranjan/mxnet/python/mxnet/base.py&quot;, line 43, in &lt;module&gt;\n    _LIB = _load_lib()\n  File &quot;/home/niranjan/mxnet/python/mxnet/base.py&quot;, line 35, in _load_lib\n    lib = ctypes.cdll.LoadLibrary(lib_path[0])\n  File &quot;/home/niranjan/anaconda3/lib/python3.5/ctypes/__init__.py&quot;, line 425, in LoadLibrary\n    return self._dlltype(name)\n  File &quot;/home/niranjan/anaconda3/lib/python3.5/ctypes/__init__.py&quot;, line 347, in __init__\n    self._handle = _dlopen(self._name, mode)\nOSError: /home/niranjan/anaconda3/bin/../lib/libgomp.so.1: version `GOMP_4.0' not found (required by /home/niranjan/mxnet/python/mxnet/../../lib/libmxnet.so)\n</code></pre>\n\n<p>can anyone tell me how to fix this error. thanks in advance.</p>",
  "messages": [
    {
      "id": "104741",
      "postDate": "01/16/2016 04:31:13",
      "content": "<p><strong>python package installation:</strong>\n<a href=\"https://mxnet.readthedocs.org/en/latest/build.html#python-package-installation\">https://mxnet.readthedocs.org/en/latest/build.html#python-package-installation</a>\ni installed successfully. when i test the package i am getting error,</p>\n\n<pre><code>$python example/image-classification/train_mnist.py\n\n[niranjan@localhost mxnet]$ python example/image-classification/train_mnist.py\nTraceback (most recent call last):\n  File &quot;example/image-classification/train_mnist.py&quot;, line 1, in &lt;module&gt;\n    import find_mxnet\n  File &quot;/home/niranjan/mxnet/example/image-classification/find_mxnet.py&quot;, line 2, in &lt;module&gt;\n    import mxnet as mx\n  File &quot;/home/niranjan/mxnet/python/mxnet/__init__.py&quot;, line 7, in &lt;module&gt;\n    from .base import MXNetError\n  File &quot;/home/niranjan/mxnet/python/mxnet/base.py&quot;, line 43, in &lt;module&gt;\n    _LIB = _load_lib()\n  File &quot;/home/niranjan/mxnet/python/mxnet/base.py&quot;, line 35, in _load_lib\n    lib = ctypes.cdll.LoadLibrary(lib_path[0])\n  File &quot;/home/niranjan/anaconda3/lib/python3.5/ctypes/__init__.py&quot;, line 425, in LoadLibrary\n    return self._dlltype(name)\n  File &quot;/home/niranjan/anaconda3/lib/python3.5/ctypes/__init__.py&quot;, line 347, in __init__\n    self._handle = _dlopen(self._name, mode)\nOSError: /home/niranjan/anaconda3/bin/../lib/libgomp.so.1: version `GOMP_4.0' not found (required by /home/niranjan/mxnet/python/mxnet/../../lib/libmxnet.so)\n</code></pre>\n\n<p>can anyone tell me how to fix this error. thanks in advance.</p>",
      "rawMarkdown": "**python package installation:**\r\nhttps://mxnet.readthedocs.org/en/latest/build.html#python-package-installation\r\ni installed successfully. when i test the package i am getting error,\r\n\r\n    $python example/image-classification/train_mnist.py\r\n\r\n    [niranjan@localhost mxnet]$ python example/image-classification/train_mnist.py\r\n    Traceback (most recent call last):\r\n      File \"example/image-classification/train_mnist.py\", line 1, in <module>\r\n        import find_mxnet\r\n      File \"/home/niranjan/mxnet/example/image-classification/find_mxnet.py\", line 2, in <module>\r\n        import mxnet as mx\r\n      File \"/home/niranjan/mxnet/python/mxnet/__init__.py\", line 7, in <module>\r\n        from .base import MXNetError\r\n      File \"/home/niranjan/mxnet/python/mxnet/base.py\", line 43, in <module>\r\n        _LIB = _load_lib()\r\n      File \"/home/niranjan/mxnet/python/mxnet/base.py\", line 35, in _load_lib\r\n        lib = ctypes.cdll.LoadLibrary(lib_path[0])\r\n      File \"/home/niranjan/anaconda3/lib/python3.5/ctypes/__init__.py\", line 425, in LoadLibrary\r\n        return self._dlltype(name)\r\n      File \"/home/niranjan/anaconda3/lib/python3.5/ctypes/__init__.py\", line 347, in __init__\r\n        self._handle = _dlopen(self._name, mode)\r\n    OSError: /home/niranjan/anaconda3/bin/../lib/libgomp.so.1: version `GOMP_4.0' not found (required by /home/niranjan/mxnet/python/mxnet/../../lib/libmxnet.so)\r\n\r\ncan anyone tell me how to fix this error. thanks in advance.",
      "votes": null
    },
    {
      "id": "104747",
      "postDate": "01/16/2016 07:17:16",
      "content": "<p>I use it on fedora 23 without any issue and used phunter's guide which may give you a hint\n<a href=\"https://no2147483647.wordpress.com/2015/12/07/deep-learning-for-hackers-with-mxnet-1/\">https://no2147483647.wordpress.com/2015/12/07/deep-learning-for-hackers-with-mxnet-1/</a>\nMaybe you need libgomp.so looking at the above errors.\nI don't use anaconda, but installed under virtualenv using plain python 3.4.3.</p>",
      "rawMarkdown": "I use it on fedora 23 without any issue and used phunter's guide which may give you a hint\r\nhttps://no2147483647.wordpress.com/2015/12/07/deep-learning-for-hackers-with-mxnet-1/\r\nMaybe you need libgomp.so looking at the above errors.\r\nI don't use anaconda, but installed under virtualenv using plain python 3.4.3.",
      "votes": null
    },
    {
      "id": "104748",
      "postDate": "01/16/2016 07:32:54",
      "content": "<p>do you have OpenMP with your build-essential? sounds like either you don't have openMP or the lib is not in the path.</p>",
      "rawMarkdown": "do you have OpenMP with your build-essential? sounds like either you don't have openMP or the lib is not in the path.",
      "votes": null
    },
    {
      "id": "104777",
      "postDate": "01/16/2016 14:26:30",
      "content": "<p>i am installing on CPU, i have openMP version <code>gcc-5.3.1-2.fc23.x86_64</code>, does this version create any problem?can you tell me any working solution for this problem.</p>",
      "rawMarkdown": "i am installing on CPU, i have openMP version `gcc-5.3.1-2.fc23.x86_64`, does this version create any problem?can you tell me any working solution for this problem.",
      "votes": null
    },
    {
      "id": "104815",
      "postDate": "01/17/2016 00:24:50",
      "content": "<p>I am using the same version of gcc:\ngcc.x86_64                                  5.3.1-2.fc23\nI have installed with CUDA and when I use it I see it is utilizing all cores if it runs on CPU. I have also\nlibgomp.x86_64                                5.3.1-2.fc23</p>",
      "rawMarkdown": "I am using the same version of gcc:\r\ngcc.x86_64                                  5.3.1-2.fc23\r\nI have installed with CUDA and when I use it I see it is utilizing all cores if it runs on CPU. I have also\r\nlibgomp.x86_64                                5.3.1-2.fc23",
      "votes": null
    },
    {
      "id": "104817",
      "postDate": "01/17/2016 00:33:40",
      "content": "<p>You need to figure out why it is looking at\n/home/niranjan/anaconda3/bin/../lib/libgomp.so.1 for libgomp.so.1 as much as i can see libgomp is in /lib64 so something is not right in your setup/\nAlso not sure what is GOMP_4.0, something else maybe setting that one.</p>",
      "rawMarkdown": "You need to figure out why it is looking at\r\n/home/niranjan/anaconda3/bin/../lib/libgomp.so.1 for libgomp.so.1 as much as i can see libgomp is in /lib64 so something is not right in your setup/\r\nAlso not sure what is GOMP_4.0, something else maybe setting that one.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 104747,
      "author_name": "esorar",
      "author_url": "",
      "post_date": "01/16/2016 07:17:16",
      "content": "<p>I use it on fedora 23 without any issue and used phunter's guide which may give you a hint\n<a href=\"https://no2147483647.wordpress.com/2015/12/07/deep-learning-for-hackers-with-mxnet-1/\">https://no2147483647.wordpress.com/2015/12/07/deep-learning-for-hackers-with-mxnet-1/</a>\nMaybe you need libgomp.so looking at the above errors.\nI don't use anaconda, but installed under virtualenv using plain python 3.4.3.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 104748,
      "author_name": "phunter",
      "author_url": "",
      "post_date": "01/16/2016 07:32:54",
      "content": "<p>do you have OpenMP with your build-essential? sounds like either you don't have openMP or the lib is not in the path.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 104777,
      "author_name": "niranjanmudhiraj",
      "author_url": "",
      "post_date": "01/16/2016 14:26:30",
      "content": "<p>i am installing on CPU, i have openMP version <code>gcc-5.3.1-2.fc23.x86_64</code>, does this version create any problem?can you tell me any working solution for this problem.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 104815,
      "author_name": "esorar",
      "author_url": "",
      "post_date": "01/17/2016 00:24:50",
      "content": "<p>I am using the same version of gcc:\ngcc.x86_64                                  5.3.1-2.fc23\nI have installed with CUDA and when I use it I see it is utilizing all cores if it runs on CPU. I have also\nlibgomp.x86_64                                5.3.1-2.fc23</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 104817,
      "author_name": "esorar",
      "author_url": "",
      "post_date": "01/17/2016 00:33:40",
      "content": "<p>You need to figure out why it is looking at\n/home/niranjan/anaconda3/bin/../lib/libgomp.so.1 for libgomp.so.1 as much as i can see libgomp is in /lib64 so something is not right in your setup/\nAlso not sure what is GOMP_4.0, something else maybe setting that one.</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "104741": "**python package installation:**\r\nhttps://mxnet.readthedocs.org/en/latest/build.html#python-package-installation\r\ni installed successfully. when i test the package i am getting error,\r\n\r\n    $python example/image-classification/train_mnist.py\r\n\r\n    [niranjan@localhost mxnet]$ python example/image-classification/train_mnist.py\r\n    Traceback (most recent call last):\r\n      File \"example/image-classification/train_mnist.py\", line 1, in <module>\r\n        import find_mxnet\r\n      File \"/home/niranjan/mxnet/example/image-classification/find_mxnet.py\", line 2, in <module>\r\n        import mxnet as mx\r\n      File \"/home/niranjan/mxnet/python/mxnet/__init__.py\", line 7, in <module>\r\n        from .base import MXNetError\r\n      File \"/home/niranjan/mxnet/python/mxnet/base.py\", line 43, in <module>\r\n        _LIB = _load_lib()\r\n      File \"/home/niranjan/mxnet/python/mxnet/base.py\", line 35, in _load_lib\r\n        lib = ctypes.cdll.LoadLibrary(lib_path[0])\r\n      File \"/home/niranjan/anaconda3/lib/python3.5/ctypes/__init__.py\", line 425, in LoadLibrary\r\n        return self._dlltype(name)\r\n      File \"/home/niranjan/anaconda3/lib/python3.5/ctypes/__init__.py\", line 347, in __init__\r\n        self._handle = _dlopen(self._name, mode)\r\n    OSError: /home/niranjan/anaconda3/bin/../lib/libgomp.so.1: version `GOMP_4.0' not found (required by /home/niranjan/mxnet/python/mxnet/../../lib/libmxnet.so)\r\n\r\ncan anyone tell me how to fix this error. thanks in advance.",
    "104747": "I use it on fedora 23 without any issue and used phunter's guide which may give you a hint\r\nhttps://no2147483647.wordpress.com/2015/12/07/deep-learning-for-hackers-with-mxnet-1/\r\nMaybe you need libgomp.so looking at the above errors.\r\nI don't use anaconda, but installed under virtualenv using plain python 3.4.3.",
    "104748": "do you have OpenMP with your build-essential? sounds like either you don't have openMP or the lib is not in the path.",
    "104777": "i am installing on CPU, i have openMP version `gcc-5.3.1-2.fc23.x86_64`, does this version create any problem?can you tell me any working solution for this problem.",
    "104815": "I am using the same version of gcc:\r\ngcc.x86_64                                  5.3.1-2.fc23\r\nI have installed with CUDA and when I use it I see it is utilizing all cores if it runs on CPU. I have also\r\nlibgomp.x86_64                                5.3.1-2.fc23",
    "104817": "You need to figure out why it is looking at\r\n/home/niranjan/anaconda3/bin/../lib/libgomp.so.1 for libgomp.so.1 as much as i can see libgomp is in /lib64 so something is not right in your setup/\r\nAlso not sure what is GOMP_4.0, something else maybe setting that one."
  },
  "source": "meta"
}