cnapy-org / CNApy

An integrated visual environment for metabolic modeling with common methods such as FBA, FVA and Elementary Flux Modes, and advanced features such as thermodynamic methods, extended Minimal Cut Sets, OptKnock, RobustKnock, OptCouple and more!
https://cnapy-org.github.io/CNApy-guide/
Apache License 2.0
46 stars 7 forks source link

CPLEX Error with CNAPy Install #509

Closed Rohak72 closed 5 months ago

Rohak72 commented 5 months ago

Hello,

I've been trying to install CNAPy via the Anaconda instructions provided in the README, and run into the 'cplex does not exist error,' likely because I'm on a Mac OSX system. From reading prior issues, I see that I'd need to download the Intel processor version of Anaconda to continue. However, if I already have an academic license for Gurobi, thus eliminating the need for an additional solver like cplex, could I still move forward? Please let me know if this is feasible, no worries if not!

Thanks for creating this amazing tool!

Best, Rohak

axelvonkamp commented 5 months ago

Hello Rohak,

at present CPLEX is a fixed dependency which was unproblematic because of the availability of its community edition. With Mac it becomes more complicated since the switch to the ARM architecture as described here. So you need to install the x86 version just to fulfill the dependency, but then can use Gurobi for calculations. This is indeed annoying but since there is quite a bit CPLEX-specific code in CNApy (because not all its features are wrapped in optlang) I currently do not see an elegant solution how to make the CPLEX dependency conditional.

Best, Axel

Rohak72 commented 5 months ago

Hi Axel,

Thanks for your response, I completely understand! Will proceed with next steps.

Best, Rohak