aalto-ics-kepaco / retention_order_prediction

Code, Data and Results of the publication: "Liquid-Chromatography Retention Order Prediction for Metabolite Identification" by Bach et al. 2018
Other
3 stars 1 forks source link

OSError: [Errno 45] Operation not supported: '/home/bach' #1

Closed Danissss closed 4 years ago

Danissss commented 4 years ago

Hi,

I encountered following error while executing python src/evaluation_scenarios_main.py ranksvm baseline_single 10 -1 results/raw/PredRet/v2/config.json 2 False

/Users/xuan/miniconda3/envs/retentionCal/lib/python3.7/site-packages/sklearn/externals/joblib/__init__.py:15: FutureWarning: sklearn.externals.joblib is deprecated in 0.21 and will be removed in 0.23. Please import this functionality directly from joblib, which can be installed with: pip install joblib. If this warning is raised when loading pickled models, you may need to re-serialize those models with scikit-learn 0.21+.
  warnings.warn(msg, category=FutureWarning)
Traceback (most recent call last):
  File "src/evaluation_scenarios_main.py", line 502, in <module>
    os.makedirs (output_dir)
  File "/Users/xuan/miniconda3/envs/retentionCal/lib/python3.7/os.py", line 211, in makedirs
    makedirs(head, exist_ok=exist_ok)
  File "/Users/xuan/miniconda3/envs/retentionCal/lib/python3.7/os.py", line 211, in makedirs
    makedirs(head, exist_ok=exist_ok)
  File "/Users/xuan/miniconda3/envs/retentionCal/lib/python3.7/os.py", line 211, in makedirs
    makedirs(head, exist_ok=exist_ok)
  [Previous line repeated 14 more times]
  File "/Users/xuan/miniconda3/envs/retentionCal/lib/python3.7/os.py", line 221, in makedirs
    mkdir(name, mode)
OSError: [Errno 45] Operation not supported: '/home/bach'
bachi55 commented 4 years ago

Hi Danissss,

you need to change the config.json: The "base_dir" needs to be changed to a file-path you have read / write access to. Hard coding it in that example was probably not the best idea.

Best regards, Eric

Danissss commented 4 years ago

Thank you!