Problem with load_model from pycaret

Question:

I need to solve this problem to deploy my python project

Error:

Traceback (most recent call last):
  File "/home/runner/AppFutBetBot/main.py", line 24, in <module>
    over05ht = load_model('over05ht-modeloet')
  File "/home/runner/AppFutBetBot/.pythonlibs/lib/python3.10/site-packages/pycaret/classification/functional.py", line 2436, in load_model
    return experiment.load_model(
  File "/home/runner/AppFutBetBot/.pythonlibs/lib/python3.10/site-packages/pycaret/classification/oop.py", line 3079, in load_model
    return super().load_model(
  File "/home/runner/AppFutBetBot/.pythonlibs/lib/python3.10/site-packages/pycaret/internal/pycaret_experiment/tabular_experiment.py", line 2433, in load_model
    model = pycaret.internal.persistence.load_model(
  File "/home/runner/AppFutBetBot/.pythonlibs/lib/python3.10/site-packages/pycaret/internal/persistence.py", line 393, in load_model
    model = joblib.load(model_name)
  File "/home/runner/AppFutBetBot/.pythonlibs/lib/python3.10/site-packages/joblib/numpy_pickle.py", line 658, in load
    obj = _unpickle(fobj, filename, mmap_mode)
  File "/home/runner/AppFutBetBot/.pythonlibs/lib/python3.10/site-packages/joblib/numpy_pickle.py", line 577, in _unpickle
    obj = unpickler.load()
  File "/nix/store/xf54733x4chbawkh1qvy9i1i4mlscy1c-python3-3.10.11/lib/python3.10/pickle.py", line 1213, in load
    dispatch[key[0]](self)
  File "/home/runner/AppFutBetBot/.pythonlibs/lib/python3.10/site-packages/joblib/numpy_pickle.py", line 402, in load_build
    Unpickler.load_build(self)
  File "/nix/store/xf54733x4chbawkh1qvy9i1i4mlscy1c-python3-3.10.11/lib/python3.10/pickle.py", line 1718, in load_build
    setstate(state)
  File "/home/runner/AppFutBetBot/.pythonlibs/lib/python3.10/site-packages/pycaret/internal/pipeline.py", line 144, in __setstate__
    if pickle_versions.get("deps_info") != self._pycaret_versions["deps_info"]:
  File "/home/runner/AppFutBetBot/.pythonlibs/lib/python3.10/site-packages/pycaret/internal/pipeline.py", line 163, in _pycaret_versions
    "deps_info": _get_deps_info(optional=False),
  File "/home/runner/AppFutBetBot/.pythonlibs/lib/python3.10/site-packages/pycaret/utils/_show_versions.py", line 130, in _get_deps_info
    ver = get_module_version(modname)
  File "/home/runner/AppFutBetBot/.pythonlibs/lib/python3.10/site-packages/pycaret/utils/_dependencies.py", line 81, in get_module_version
    version = _get_module_version(modname)
  File "/home/runner/AppFutBetBot/.pythonlibs/lib/python3.10/site-packages/pycaret/utils/_dependencies.py", line 75, in _get_module_version
    installed_modules[modname] = _try_import_and_get_module_version(modname)
  File "/home/runner/AppFutBetBot/.pythonlibs/lib/python3.10/site-packages/pycaret/utils/_dependencies.py", line 28, in _try_import_and_get_module_version
    mod = import_module(modname)
  File "/nix/store/xf54733x4chbawkh1qvy9i1i4mlscy1c-python3-3.10.11/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/runner/AppFutBetBot/.pythonlibs/lib/python3.10/site-packages/lightgbm/__init__.py", line 8, in <module>
    from .basic import Booster, Dataset, Sequence, register_logger
  File "/home/runner/AppFutBetBot/.pythonlibs/lib/python3.10/site-packages/lightgbm/basic.py", line 226, in <module>
    _LIB = _load_lib()
  File "/home/runner/AppFutBetBot/.pythonlibs/lib/python3.10/site-packages/lightgbm/basic.py", line 211, in _load_lib
    lib = ctypes.cdll.LoadLibrary(lib_path[0])
  File "/nix/store/xf54733x4chbawkh1qvy9i1i4mlscy1c-python3-3.10.11/lib/python3.10/ctypes/__init__.py", line 452, in LoadLibrary
    return self._dlltype(name)
  File "/nix/store/xf54733x4chbawkh1qvy9i1i4mlscy1c-python3-3.10.11/lib/python3.10/ctypes/__init__.py", line 374, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: libgomp.so.1: cannot open shared object file: No such file or directory

Replit Profile: https://replit.com/@Luiz-RicardoRi7

a similar issue:

1 Like

Open the Packages tool and install pycaret from there. If it is already installed, uninstall it and reinstall it. Use the Packages tool instead of shell commands in this case.