PlanesLab / gMCSpy

Efficient calculation of gMCS in python.
https://planeslab.github.io/gMCSpy/
MIT License
6 stars 1 forks source link

CPLEX Dependency #1

Closed Rohak72 closed 5 months ago

Rohak72 commented 5 months ago

Hello,

Thanks for creating this tool, I imagine it'll be a useful asset to my metabolic modeling work. When trying to install, unfortunately, I run into an error with the cplex dependency. I currently use Gurobi as my solver of choice, so is there any way to circumvent this requirement and proceed with the package installation? Please let me know your thoughts, much appreciated!

Cheers, Rohak

cjrodriguez98 commented 5 months ago

Hello Rohak!

Thank you for the feedback, could you send us what error araises when you try to install cplex?

best regards, Carlos

Rohak72 commented 5 months ago

Hi Carlos,

Sure thing -- here's a traceback of the error message:

ERROR: Cannot install gmcspy==0.2, gmcspy==0.21, gmcspy==1.0 and gmcspy==1.0.1 because these package versions have conflicting dependencies.

The conflict is caused by:
    gmcspy 1.0.1 depends on cplex
    gmcspy 1.0 depends on cplex
    gmcspy 0.21 depends on cplex
    gmcspy 0.2 depends on cplex

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

Hope this helps!

Best, Rohak

cjrodriguez98 commented 5 months ago

Hey again!

Thanks for the trace back.

I have some questions to try to support you in the best possible way.

What version of python are you using?

Thanks!

Rohak72 commented 5 months ago

Hi Carlos,

I'm currently using Python 3.8.9. Should I consider an upgrade/downgrade?

Best, Rohak

cjrodriguez98 commented 5 months ago

Hello again Rohak!

I have been trying to replicate the error to find where the conflict is. From here I have not been able to replicate the issue.

I would suggest creating a new conda enviroment with python 3.10,

conda create -nameOfEnviroment python=3.10

And then try to install gmcspy.

Please contact me again if you have any issue.

Carlos

Rohak72 commented 5 months ago

Hi Carlos,

Thanks so much for the advice, it has fixed the error! I really appreciate your help.

Best, Rohak