cdanielmachado / carveme

CarveMe: genome-scale metabolic model reconstruction
Other
152 stars 52 forks source link

RuntimeError: Solver cplex not available. #142

Closed iuliachiciudean closed 3 years ago

iuliachiciudean commented 3 years ago

Hi Daniel, I need a little guidance in installing CarveMe.

I am a bit new to Linux, so probably I am doing something wrong when installing all that I need for CarveMe to work. As a result, I am getting this error message:

Traceback (most recent call last): File "/home/iulia/miniconda3/envs/py36/bin/carve", line 5, in from carveme.cli.carve import main File "/home/iulia/miniconda3/envs/py36/lib/python3.6/site-packages/carveme/init.py", line 14, in set_default_solver(config.get('solver', 'default_solver')) File "/home/iulia/miniconda3/envs/py36/lib/python3.6/site-packages/reframed/solvers/init.py", line 60, in set_default_solver raise RuntimeError(f"Solver {solvername} not available.") RuntimeError: Solver cplex not available.

What I did is- I created a new environment (named "py36") in which I installed

[Install CPLEX: $ _bash ILOG_COS_20.10_LINUX_X8664.bin Path to install it: $ _/home/iulia/miniconda3/envs/py36/CPLEXStudio201 During installation, I got this message "If you want to use the CPLEX or CP Optimizer engines through their Python APIs, you need to tell Python where to find them. To do so, enter the following command into a terminal ..." So I did: $ _python /home/iulia/miniconda3/envs/py36/CPLEXStudio201/python/setup.py install" And, to install the CPLEX-Python modules on my system, I use the script setup.py: $ python setup.py install --home /home/iulia/miniconda3/lib/python3.7/cplex

Do you have any suggestions on what should be wrong here? I am thinking to start over again with the installation process.

Best regards, Iulia

iuliachiciudean commented 3 years ago

Hi Daniel,

I manage to fix it using issue #87 suggestions.

Thx! iulia