Skip to content

rpscore and xgboost #42

Description

@guillaume-gricourt

rpscore, from brsynth/galaxytools#249 , raises (likely due to a new version of xgboost?):

0it [00:00, ?it/s]
0it [00:00, ?it/s]
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/local/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/usr/local/lib/python3.10/site-packages/rptools/rpscore/__main__.py", line 90, in <module>
    entry_point()
  File "/usr/local/lib/python3.10/site-packages/rptools/rpscore/__main__.py", line 51, in entry_point
    score = predict_score(
  File "/usr/local/lib/python3.10/site-packages/rptools/rpscore/rpscore.py", line 429, in predict_score
    score = _predict_score(
  File "/usr/local/lib/python3.10/site-packages/rptools/rpscore/rpscore.py", line 393, in _predict_score
    encode_and_predict(
  File "/usr/local/lib/python3.10/site-packages/rptools/rpscore/rpscore.py", line 365, in encode_and_predict
    score_prediction(
  File "/usr/local/lib/python3.10/site-packages/rptools/rpscore/rpscore.py", line 296, in score_prediction
    model = pickle_load( open(modelfile, 'rb')) ############
  File "/usr/local/lib/python3.10/site-packages/xgboost/core.py", line 2099, in __setstate__
    _check_call(_LIB.XGBoosterUnserializeFromBuffer(handle, ptr, length))
  File "/usr/local/lib/python3.10/site-packages/xgboost/core.py", line 323, in _check_call
    raise XGBoostError(py_str(_LIB.XGBGetLastError()))
xgboost.core.XGBoostError: [11:09:31] /home/conda/feedstock_root/build_artifacts/xgboost-split_1762060489429/work/src/learner.cc:1027: Check failed: std::isalpha(header[1]): Invalid serialization file.
Stack trace:
  [bt] (0) /usr/local/lib/libxgboost.so(dmlc::LogMessageFatal::~LogMessageFatal()+0x6e) [0x7133d321b1fe]
  [bt] (1) /usr/local/lib/libxgboost.so(xgboost::LearnerIO::Load(dmlc::Stream*)+0x66a) [0x7133d36926da]
  [bt] (2) /usr/local/lib/libxgboost.so(XGBoosterUnserializeFromBuffer+0x4e) [0x7133d3182dfe]
  [bt] (3) /usr/local/lib/python3.10/lib-dynload/../../libffi.so.8(+0x702a) [0x713467c7f02a]
  [bt] (4) /usr/local/lib/python3.10/lib-dynload/../../libffi.so.8(+0x64a9) [0x713467c7e4a9]
  [bt] (5) /usr/local/lib/python3.10/lib-dynload/../../libffi.so.8(ffi_call+0xdd) [0x713467c7ebbd]
  [bt] (6) /usr/local/lib/python3.10/lib-dynload/_ctypes.cpython-310-x86_64-linux-gnu.so(+0x8c7b) [0x713467c8cc7b]
  [bt] (7) /usr/local/lib/python3.10/lib-dynload/_ctypes.cpython-310-x86_64-linux-gnu.so(+0x8565) [0x713467c8c565]
  [bt] (8) python(_PyObject_MakeTpCall+0x24b) [0x5c87aee740db]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions