{"action":"created","issue":{"url":"https://api.github.com/repos/dmlc/xgboost/issues/588","repository_url":"https://api.github.com/repos/dmlc/xgboost","labels_url":"https://api.github.com/repos/dmlc/xgboost/issues/588/labels{/name}","comments_url":"https://api.github.com/repos/dmlc/xgboost/issues/588/comments","events_url":"https://api.github.com/repos/dmlc/xgboost/issues/588/events","html_url":"https://github.com/dmlc/xgboost/issues/588","id":114676979,"number":588,"title":"can no longer import xgboost","user":{"login":"adjgiulio","id":5798439,"avatar_url":"https://avatars.githubusercontent.com/u/5798439?v=3","gravatar_id":"","url":"https://api.github.com/users/adjgiulio","html_url":"https://github.com/adjgiulio","followers_url":"https://api.github.com/users/adjgiulio/followers","following_url":"https://api.github.com/users/adjgiulio/following{/other_user}","gists_url":"https://api.github.com/users/adjgiulio/gists{/gist_id}","starred_url":"https://api.github.com/users/adjgiulio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adjgiulio/subscriptions","organizations_url":"https://api.github.com/users/adjgiulio/orgs","repos_url":"https://api.github.com/users/adjgiulio/repos","events_url":"https://api.github.com/users/adjgiulio/events{/privacy}","received_events_url":"https://api.github.com/users/adjgiulio/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2015-11-02T20:25:50Z","updated_at":"2016-08-06T10:50:33Z","closed_at":"2016-01-15T05:28:50Z","body":"I used to be able to use xgboost no problem under previous versions just doing:\r\nsys.path.append('/.../xgboost-master/wrapper')\r\nimport xgboost as xgb\r\n\r\nI tried installing the latest version on a RedHat machine:\r\n\r\nbash build.sh\r\n\r\nthen from the python-package folder:\r\npython setup.py install\r\n\r\nBoth seem to complete successfully.\r\n\r\nBut when I try to import from Spyder:\r\nimport xgboost as xgb\r\n\r\nI get:\r\n\r\nTraceback (most recent call last):\r\n\r\n  File \"<ipython-input-6-745aa3a2d734>\", line 1, in <module>\r\n    import xgboost as xgb\r\n\r\n  File \"/home/g/anaconda/lib/python2.7/site-packages/xgboost-0.4-py2.7.egg/xgboost/__init__.py\", line 11, in <module>\r\n    from .core import DMatrix, Booster\r\n\r\n  File \"/home/g/anaconda/lib/python2.7/site-packages/xgboost-0.4-py2.7.egg/xgboost/core.py\", line 92, in <module>\r\n    _LIB = _load_lib()\r\n\r\n  File \"/home/g/anaconda/lib/python2.7/site-packages/xgboost-0.4-py2.7.egg/xgboost/core.py\", line 83, in _load_lib\r\n    lib_path = find_lib_path()\r\n\r\n  File \"/home/g/anaconda/lib/python2.7/site-packages/xgboost-0.4-py2.7.egg/xgboost/libpath.py\", line 43, in find_lib_path\r\n    'List of candidates:\\n' + ('\\n'.join(dll_path)))\r\n\r\nXGBoostLibraryNotFound: Cannot find XGBoost Libarary in the candicate path, did you run build.sh in root path?\r\nList of candidates:\r\n/home/g/anaconda/lib/python2.7/site-packages/xgboost-0.4-py2.7.egg/xgboost/libxgboostwrapper.so\r\n/home/g/anaconda/lib/python2.7/site-packages/xgboost-0.4-py2.7.egg/xgboost/../../wrapper/libxgboostwrapper.so\r\n/home/g/anaconda/lib/python2.7/site-packages/xgboost-0.4-py2.7.egg/xgboost/./wrapper/libxgboostwrapper.so\r\n\r\n\r\nIn [7]: sys.path.append('/home/cloudera/Documents/ds/xgboost-master/wrapper')\r\n   ...: import xgboost as xgb"},"comment":{"url":"https://api.github.com/repos/dmlc/xgboost/issues/comments/238017738","html_url":"https://github.com/dmlc/xgboost/issues/588#issuecomment-238017738","issue_url":"https://api.github.com/repos/dmlc/xgboost/issues/588","id":238017738,"user":{"login":"aidsj","id":7467359,"avatar_url":"https://avatars.githubusercontent.com/u/7467359?v=3","gravatar_id":"","url":"https://api.github.com/users/aidsj","html_url":"https://github.com/aidsj","followers_url":"https://api.github.com/users/aidsj/followers","following_url":"https://api.github.com/users/aidsj/following{/other_user}","gists_url":"https://api.github.com/users/aidsj/gists{/gist_id}","starred_url":"https://api.github.com/users/aidsj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aidsj/subscriptions","organizations_url":"https://api.github.com/users/aidsj/orgs","repos_url":"https://api.github.com/users/aidsj/repos","events_url":"https://api.github.com/users/aidsj/events{/privacy}","received_events_url":"https://api.github.com/users/aidsj/received_events","type":"User","site_admin":false},"created_at":"2016-08-06T10:50:33Z","updated_at":"2016-08-06T10:50:33Z","body":"I have same issue with nitesh458.\r\nI used to use the version in pypi and it works fine.\r\nI need to use newer version so i use pip uninstall xgboost to uninstall the old package.\r\nThen i followed the https://github.com/dmlc/xgboost/blob/master/doc/build.md#building-on-ubuntudebian to install.\r\nEverything seems to be all right, however, i can't import xgboost. it give error message:\r\nSegmentation fault (core dumped).\r\nThen i tried delete this and reinstall use pip. Guess what, it gives the same error message.\r\nAny idea how to solve it?"}}
{"actor":{"display_login":"aidsj"}}