Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to import Flows due to incorrect lightgbm installation (macOS) #28

Closed
atselikov opened this issue Oct 29, 2019 · 0 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@atselikov
Copy link
Contributor

atselikov commented Oct 29, 2019

Incorrect lightgbm installation

To Reproduce

  1. Create venv
  2. Install packages from requirements.txt
  3. install ML navigator
  4. import Flows

Proposed solution
brew install lightgbm

Desktop env

  • OS: macOS Mojave
  • "ML-Navigator", version="0.0.3",
  • python 3.7

Error message

----> 3 from flows.flows import Flows
      4 

~/work/ML-Navigator/flows/flows.py in <module>
     30 from preprocessing.utils import check_if_target_columns_are_imbalanced
     31 from preprocessing.utils import read_data
---> 32 from training.training import model_training
     33 from visualization.visualization import compare_statistics
     34 

~/work/ML-Navigator/training/training.py in <module>
      5 warnings.filterwarnings('ignore')
      6 
----> 7 import lightgbm as lgb
      8 import pandas as pd
      9 import numpy as np

~/work/ML-Navigator/mlnav/lib/python3.7/site-packages/lightgbm/__init__.py in <module>
      6 from __future__ import absolute_import
      7 
----> 8 from .basic import Booster, Dataset
      9 from .callback import (early_stopping, print_evaluation, record_evaluation,
     10                        reset_parameter)

~/work/ML-Navigator/mlnav/lib/python3.7/site-packages/lightgbm/basic.py in <module>
     32 
     33 
---> 34 _LIB = _load_lib()
     35 
     36 

~/work/ML-Navigator/mlnav/lib/python3.7/site-packages/lightgbm/basic.py in _load_lib()
     27     if len(lib_path) == 0:
     28         return None
---> 29     lib = ctypes.cdll.LoadLibrary(lib_path[0])
     30     lib.LGBM_GetLastError.restype = ctypes.c_char_p
     31     return lib

/usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ctypes/__init__.py in LoadLibrary(self, name)
    440 
    441     def LoadLibrary(self, name):
--> 442         return self._dlltype(name)
    443 
    444 cdll = LibraryLoader(CDLL)

/usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ctypes/__init__.py in __init__(self, name, mode, handle, use_errno, use_last_error)
    362 
    363         if handle is None:
--> 364             self._handle = _dlopen(self._name, mode)
    365         else:
    366             self._handle = handle

OSError: dlopen(/Users/alex/work/ML-Navigator/mlnav/lib/python3.7/site-packages/lightgbm/lib_lightgbm.so, 6): Library not loaded: /usr/local/opt/libomp/lib/libomp.dylib
  Referenced from: /Users/alex/work/ML-Navigator/mlnav/lib/python3.7/site-packages/lightgbm/lib_lightgbm.so
  Reason: image not found

@atselikov atselikov added the bug Something isn't working label Oct 29, 2019
@mahedeeb mahedeeb self-assigned this Oct 29, 2019
mahedeeb added a commit that referenced this issue Oct 31, 2019
1. create the outliers detector class and function. Show the number of the outliers when loading the data

2. add method outliers extractor to the flow package.

3. update the readme file to consider the issue #28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants