Xgboost throws an error when trying to import











up vote
0
down vote

favorite












I have a project that is using xgboost. We now transfer the project to containers.
But after installing it using pip, it throws the following error:



Traceback (most recent call last):
File "restart_db.py", line 5, in <module>
from autoai.core.providers import GlobalEnrichmentProvider
File "/volumes/code/autoai/core/providers/__init__.py", line 1, in <module>
from .files_providers import CsvProvider, TsvProvider, ExcelProvider, FileProvider
File "/volumes/code/autoai/core/providers/files_providers.py", line 10, in <module>
from .base import BaseProvider, BaseInMemoryProvider
File "/volumes/code/autoai/core/providers/base.py", line 1, in <module>
from autoai.models.dataset_connection import JoinTypes
File "/volumes/code/autoai/models/__init__.py", line 5, in <module>
from .classifier import Classifier
File "/volumes/code/autoai/models/classifier.py", line 8, in <module>
from eli5 import explain_prediction
File "/volumes/dependencies/lib/python3.6/site-packages/eli5/__init__.py", line 53, in <module>
from .xgboost import (
File "/volumes/dependencies/lib/python3.6/site-packages/eli5/xgboost.py", line 9, in <module>
from xgboost import ( # type: ignore
File "/volumes/dependencies/lib/python3.6/site-packages/xgboost/__init__.py", line 11, in <module>
from .core import DMatrix, Booster
File "/volumes/dependencies/lib/python3.6/site-packages/xgboost/core.py", line 150, in <module>
_LIB = _load_lib()
File "/volumes/dependencies/lib/python3.6/site-packages/xgboost/core.py", line 141, in _load_lib
'Error message(s): {}n'.format(os_error_list))
xgboost.core.XGBoostError: XGBoost Library (libxgboost.so) could not be loaded.
Likely causes:
* OpenMP runtime is not installed (vcomp140.dll or libgomp-1.dll for Windows, libgomp.so for UNIX-like OSes)
* You are running 32-bit Python on a 64-bit OS
Error message(s): ['libgomp.so.1: cannot open shared object file: No such file or directory']


I checked that both my python and my ubuntu are 64-bit, and ran:
apt-get update && apt-get install -y libaio1



To make sure that package is there (I read it somewhere that this might be the problem) - but it still throws the same error.



I've been stuck on this for a while now and will appreciate any help.










share|improve this question


























    up vote
    0
    down vote

    favorite












    I have a project that is using xgboost. We now transfer the project to containers.
    But after installing it using pip, it throws the following error:



    Traceback (most recent call last):
    File "restart_db.py", line 5, in <module>
    from autoai.core.providers import GlobalEnrichmentProvider
    File "/volumes/code/autoai/core/providers/__init__.py", line 1, in <module>
    from .files_providers import CsvProvider, TsvProvider, ExcelProvider, FileProvider
    File "/volumes/code/autoai/core/providers/files_providers.py", line 10, in <module>
    from .base import BaseProvider, BaseInMemoryProvider
    File "/volumes/code/autoai/core/providers/base.py", line 1, in <module>
    from autoai.models.dataset_connection import JoinTypes
    File "/volumes/code/autoai/models/__init__.py", line 5, in <module>
    from .classifier import Classifier
    File "/volumes/code/autoai/models/classifier.py", line 8, in <module>
    from eli5 import explain_prediction
    File "/volumes/dependencies/lib/python3.6/site-packages/eli5/__init__.py", line 53, in <module>
    from .xgboost import (
    File "/volumes/dependencies/lib/python3.6/site-packages/eli5/xgboost.py", line 9, in <module>
    from xgboost import ( # type: ignore
    File "/volumes/dependencies/lib/python3.6/site-packages/xgboost/__init__.py", line 11, in <module>
    from .core import DMatrix, Booster
    File "/volumes/dependencies/lib/python3.6/site-packages/xgboost/core.py", line 150, in <module>
    _LIB = _load_lib()
    File "/volumes/dependencies/lib/python3.6/site-packages/xgboost/core.py", line 141, in _load_lib
    'Error message(s): {}n'.format(os_error_list))
    xgboost.core.XGBoostError: XGBoost Library (libxgboost.so) could not be loaded.
    Likely causes:
    * OpenMP runtime is not installed (vcomp140.dll or libgomp-1.dll for Windows, libgomp.so for UNIX-like OSes)
    * You are running 32-bit Python on a 64-bit OS
    Error message(s): ['libgomp.so.1: cannot open shared object file: No such file or directory']


    I checked that both my python and my ubuntu are 64-bit, and ran:
    apt-get update && apt-get install -y libaio1



    To make sure that package is there (I read it somewhere that this might be the problem) - but it still throws the same error.



    I've been stuck on this for a while now and will appreciate any help.










    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I have a project that is using xgboost. We now transfer the project to containers.
      But after installing it using pip, it throws the following error:



      Traceback (most recent call last):
      File "restart_db.py", line 5, in <module>
      from autoai.core.providers import GlobalEnrichmentProvider
      File "/volumes/code/autoai/core/providers/__init__.py", line 1, in <module>
      from .files_providers import CsvProvider, TsvProvider, ExcelProvider, FileProvider
      File "/volumes/code/autoai/core/providers/files_providers.py", line 10, in <module>
      from .base import BaseProvider, BaseInMemoryProvider
      File "/volumes/code/autoai/core/providers/base.py", line 1, in <module>
      from autoai.models.dataset_connection import JoinTypes
      File "/volumes/code/autoai/models/__init__.py", line 5, in <module>
      from .classifier import Classifier
      File "/volumes/code/autoai/models/classifier.py", line 8, in <module>
      from eli5 import explain_prediction
      File "/volumes/dependencies/lib/python3.6/site-packages/eli5/__init__.py", line 53, in <module>
      from .xgboost import (
      File "/volumes/dependencies/lib/python3.6/site-packages/eli5/xgboost.py", line 9, in <module>
      from xgboost import ( # type: ignore
      File "/volumes/dependencies/lib/python3.6/site-packages/xgboost/__init__.py", line 11, in <module>
      from .core import DMatrix, Booster
      File "/volumes/dependencies/lib/python3.6/site-packages/xgboost/core.py", line 150, in <module>
      _LIB = _load_lib()
      File "/volumes/dependencies/lib/python3.6/site-packages/xgboost/core.py", line 141, in _load_lib
      'Error message(s): {}n'.format(os_error_list))
      xgboost.core.XGBoostError: XGBoost Library (libxgboost.so) could not be loaded.
      Likely causes:
      * OpenMP runtime is not installed (vcomp140.dll or libgomp-1.dll for Windows, libgomp.so for UNIX-like OSes)
      * You are running 32-bit Python on a 64-bit OS
      Error message(s): ['libgomp.so.1: cannot open shared object file: No such file or directory']


      I checked that both my python and my ubuntu are 64-bit, and ran:
      apt-get update && apt-get install -y libaio1



      To make sure that package is there (I read it somewhere that this might be the problem) - but it still throws the same error.



      I've been stuck on this for a while now and will appreciate any help.










      share|improve this question













      I have a project that is using xgboost. We now transfer the project to containers.
      But after installing it using pip, it throws the following error:



      Traceback (most recent call last):
      File "restart_db.py", line 5, in <module>
      from autoai.core.providers import GlobalEnrichmentProvider
      File "/volumes/code/autoai/core/providers/__init__.py", line 1, in <module>
      from .files_providers import CsvProvider, TsvProvider, ExcelProvider, FileProvider
      File "/volumes/code/autoai/core/providers/files_providers.py", line 10, in <module>
      from .base import BaseProvider, BaseInMemoryProvider
      File "/volumes/code/autoai/core/providers/base.py", line 1, in <module>
      from autoai.models.dataset_connection import JoinTypes
      File "/volumes/code/autoai/models/__init__.py", line 5, in <module>
      from .classifier import Classifier
      File "/volumes/code/autoai/models/classifier.py", line 8, in <module>
      from eli5 import explain_prediction
      File "/volumes/dependencies/lib/python3.6/site-packages/eli5/__init__.py", line 53, in <module>
      from .xgboost import (
      File "/volumes/dependencies/lib/python3.6/site-packages/eli5/xgboost.py", line 9, in <module>
      from xgboost import ( # type: ignore
      File "/volumes/dependencies/lib/python3.6/site-packages/xgboost/__init__.py", line 11, in <module>
      from .core import DMatrix, Booster
      File "/volumes/dependencies/lib/python3.6/site-packages/xgboost/core.py", line 150, in <module>
      _LIB = _load_lib()
      File "/volumes/dependencies/lib/python3.6/site-packages/xgboost/core.py", line 141, in _load_lib
      'Error message(s): {}n'.format(os_error_list))
      xgboost.core.XGBoostError: XGBoost Library (libxgboost.so) could not be loaded.
      Likely causes:
      * OpenMP runtime is not installed (vcomp140.dll or libgomp-1.dll for Windows, libgomp.so for UNIX-like OSes)
      * You are running 32-bit Python on a 64-bit OS
      Error message(s): ['libgomp.so.1: cannot open shared object file: No such file or directory']


      I checked that both my python and my ubuntu are 64-bit, and ran:
      apt-get update && apt-get install -y libaio1



      To make sure that package is there (I read it somewhere that this might be the problem) - but it still throws the same error.



      I've been stuck on this for a while now and will appreciate any help.







      python openmp xgboost libgomp






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 1 hour ago









      NotSoShabby

      16612




      16612





























          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














           

          draft saved


          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53407701%2fxgboost-throws-an-error-when-trying-to-import%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53407701%2fxgboost-throws-an-error-when-trying-to-import%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Contact image not getting when fetch all contact list from iPhone by CNContact

          count number of partitions of a set with n elements into k subsets

          A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks