cdanielmachado / carveme

CarveMe: genome-scale metabolic model reconstruction
Other
147 stars 50 forks source link

InitCarveme error #74

Closed juz4karen closed 4 years ago

juz4karen commented 4 years ago

Hi there, while I tried to run run initialization script: $ carveme_init . It showed error as below:

Successfully installed carveme-1.2.2 cycler-0.10.0 framed-0.5.1 kiwisolver-1.2.0 matplotlib-3.2.1 mpmath-1.1.0 numpy-1.18.3 pandas-1.0.3 pyparsing-2.4.7 python-dateutil-2.8.1 python-libsbml-5.18.0 pytz-2020.1 scipy-1.4.1 sympy-1.5.1

$ carveme_init Traceback (most recent call last): File "/Users/miniconda3/bin/carveme_init", line 4, in from future import standard_library ModuleNotFoundError: No module named 'future'

Please help me with this issue.

cdanielmachado commented 4 years ago

Have you already tried pip install future ?

juz4karen commented 4 years ago

Hi, after I pip install future, it worked. However, I tried carveme_initi again, it showed cplex not found. I have already installed IBM ILOG Cplex Optimization Studio V12.9.0.

carveme_init Traceback (most recent call last): File "/Users/karenchung/miniconda3/bin/carveme_init", line 11, in from carveme import project_dir File "/Users/karenchung/miniconda3/lib/python3.7/site-packages/carveme/init.py", line 14, in set_default_solver(config.get('solver', 'default_solver')) File "/Users/karenchung/miniconda3/lib/python3.7/site-packages/framed/solvers/init.py", line 61, in set_default_solver raise EnvironmentError("Solver '{}' not available.".format(solvername)) OSError: Solver 'cplex' not available

cdanielmachado commented 4 years ago

Did you install the cplex python bindings ?

On Thu, Apr 30, 2020, 11:43 juz4karen notifications@github.com wrote:

Hi, after I pip install future, it worked. However, I tried carveme_initi again, it showed cplex not found. I have already installed IBM ILOG Cplex Optimization Studio V12.9.0.

carveme_init Traceback (most recent call last): File "/Users/karenchung/miniconda3/bin/carveme_init", line 11, in from carveme import project_dir File "/Users/karenchung/miniconda3/lib/python3.7/site-packages/carveme/ init.py", line 14, in set_default_solver(config.get('solver', 'default_solver')) File "/Users/karenchung/miniconda3/lib/python3.7/site-packages/framed/solvers/ init.py", line 61, in set_default_solver raise EnvironmentError("Solver '{}' not available.".format(solvername)) OSError: Solver 'cplex' not available

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cdanielmachado/carveme/issues/74#issuecomment-621727930, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATX4VIPLFKZQGCU6EEBTULRPFB3VANCNFSM4MVGIVXA .

juz4karen commented 4 years ago

I'm not sure if I had installed that. I do find cplex, python, opl ...etc folders in my macbook (refer to attached). Could you guide please?

Screenshot 2020-04-30 at 7 32 56 PM
cdanielmachado commented 4 years ago

You can find instructions here:

https://www.ibm.com/support/knowledgecenter/SSSA5P_12.7.1/ilog.odms.cplex.help/CPLEX/GettingStarted/topics/set_up/Python_setup.html

juz4karen commented 4 years ago

When I inserted command 'python setup.py install' , it showed no such file

python setup.py install python: can't open file 'setup.py': [Errno 2] No such file or directory

I guess I have to tell the system the path to the setup.py? Not sure on that....

Screenshot 2020-05-08 at 2 16 58 PM
cdanielmachado commented 4 years ago

The file is there, we can see it in the screenshot. Just test with pwd to make sure you are in the right directory when you execute the script.

juz4karen commented 4 years ago

I'm sorry, but what is pwd? how do I do that?

juz4karen commented 4 years ago

Hi Daniel, is there any possible that you could help me with the problem if I grant you remote access to my laptop? As I really stuck with this issue here hence my project is affected. Please let me know if this will work.

cdanielmachado commented 4 years ago

I'm sorry, but I cannot personally fix problems for every user. Maybe you can ask a friend with experience in command-line usage? You just need to cd into the directory and run the script.

juz4karen commented 4 years ago

Noted, thank you for that. I'll try figure it out myself