mirror of
https://github.com/elastic/eland.git
synced 2025-07-11 00:02:14 +08:00
Handle OSError for missing LightGBM dependency
Co-authored-by: Seth Michael Larson <seth.larson@elastic.co>
This commit is contained in:
parent
82e34dbddb
commit
211cc2c83f
@ -93,5 +93,9 @@ try:
|
||||
"LGBMClassifierTransformer",
|
||||
]
|
||||
_MODEL_TRANSFORMERS.update(_LIGHTGBM_MODEL_TRANSFORMERS)
|
||||
except ImportError:
|
||||
# LightGBM may be installed but missing a required library
|
||||
# (e.g. libomp) in which case an OSError is thrown. Allow
|
||||
# the error to happen here so that code using other features
|
||||
# is not blocked by the missing dependency
|
||||
except (ImportError, OSError):
|
||||
pass
|
||||
|
Loading…
x
Reference in New Issue
Block a user