Skip to content

No such file or directory: 'phageboost_mode_v_1.01.pkl.z' #34

Description

@42464813

System:centos7

Install:
I directly pulled PhageBoost-master from GitHub
Then use the following installation method:
conda create -y -n PhageBoost-env python=3.11
conda activate PhageBoost-env
cd ~/PhageBoost-master/PhageBoost/
python setup.py bdist_wheel
pip install --user .
PhageBoost -h

① Err1: Module NotFoundError: No module named 'CodonUsage' issue
I used the method( #33 ) to solve this problem.

but got a new error
② error2:FileNotFoundError:No such file or directory:models/phageboost_mode_v_1.01.pkl.z

Traceback (most recent call last):
File "/local/bin/PhageBoost", line 8, in
sys.exit(main())
^^^^^^
File "/.local/lib/python3.11/site-packages/PhageBoost/main.py", line 223, in main
model, feats, feats_ = read_model_from_file(model_file)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/.local/lib/python3.11/site-packages/PhageBoost/main.py", line 63, in read_model_from_file
model = get_predictions.load_model(model_file, n_jobs=1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/.local/lib/python3.11/site-packages/PhageBoost/get_predictions.py", line 113, in load_model
model = joblib.load(model_file)
^^^^^^^^^^^^^^^^^^^^^^^
File "/.local/lib/python3.11/site-packages/joblib/numpy_pickle.py", line 735, in load
with open(filename, "rb") as f:
^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '~/.local/lib/python3.11/site-packages/PhageBoost/models/phageboost_mode_v_1.01.pkl.z'

I tried to check the "/. local/lib/python3.11/site packages/ShageBoost/models files".
Indeed one model is missing.
I used cp to copy "/PhageBoost-master/PhageBoost/models/phageboost_mode-v_1.01. pkl. z" to "/. local/lib/python3.11/site packages/PhageBoost/models" .

This can solve the problem, although I haven't checked where the source code is causing it

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions