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

load_optimum_pipe cannot load meta information #97

Open
SereDef opened this issue Dec 10, 2024 · 0 comments
Open

load_optimum_pipe cannot load meta information #97

SereDef opened this issue Dec 10, 2024 · 0 comments

Comments

@SereDef
Copy link

SereDef commented Dec 10, 2024

I am running into this error with photonai version 2.5.0

>>> fmodel = Hyperpipe.load_optimum_pipe(best_model_file)
Could not load meta information for optimum pipe
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/brain_age_venv3/lib/python3.9/site-packages/photonai/base/hyperpipe.py", line 1482, in load_optimum_pipe
    return PhotonModelPersistor.load_optimum_pipe(file, password)
  File "/home/brain_age_venv3/lib/python3.9/site-packages/photonai/base/hyperpipe.py", line 1714, in load_optimum_pipe
    element_list = PhotonModelPersistor.load_elements(folder=load_folder)
  File "/home/brain_age_venv3/lib/python3.9/site-packages/photonai/base/hyperpipe.py", line 1634, in load_elements
    with open(os.path.join(folder, BLUEPRINT_FILE), 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/ENIGMAmodels/ENIGMA_MDD_females/_optimum_pipe_blueprint.pkl'

The file does exist however

>>> from pathlib import Path
>>> Path(best_model_file).exists()
True

Pyhton version = 3.9.2. Here is a snapshot of my environment:

Package             Version
------------------- -----------
click               8.1.7
cloudpickle         3.1.0
contourpy           1.3.0
cycler              0.12.1
dask                2024.8.0
distributed         2024.8.0
fonttools           4.55.2
fsspec              2024.10.0
imbalanced-learn    0.12.4
importlib_metadata  8.5.0
importlib_resources 6.4.5
Jinja2              3.1.4
joblib              1.4.2
kiwisolver          1.4.7
locket              1.0.0
MarkupSafe          3.0.2
matplotlib          3.9.3
msgpack             1.1.0
numpy               2.0.2
packaging           24.2
pandas              2.2.3
partd               1.4.2
patsy               1.0.1
pbr                 6.1.0
photonai            2.5.0
pillow              11.0.0
pip                 24.3.1
plotly              5.24.1
prettytable         3.12.0
psutil              6.1.0
pyaml               24.9.0
pymodm              0.4.3
pymongo             3.13.0
pyparsing           3.2.0
python-dateutil     2.9.0.post0
pytz                2024.2
PyYAML              6.0.2
scikit-learn        1.5.2
scikit-optimize     0.10.2
scipy               1.13.1
seaborn             0.13.2
setuptools          49.2.1
six                 1.17.0
sortedcontainers    2.4.0
statsmodels         0.14.4
tblib               3.0.0
tenacity            9.0.0
threadpoolctl       3.5.0
toolz               1.0.0
tornado             6.4.2
tzdata              2024.2
urllib3             2.2.3
wcwidth             0.2.13
xlrd                2.0.1
zict                3.0.0
zipp                3.21.0

Also, I am using a Linux 8.6 (Ootpa) if that helps :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant