cdanielmachado / carveme

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

Do not work with scipy 1.12.0 #196

Closed GediminasA closed 7 months ago

GediminasA commented 7 months ago

To reproduce:

mamba install -c conda-forge  scipy=1.12 python=3.11 pip
pip install carveme

Just running carveme gives:

Traceback (most recent call last):
  File "<path>/bin/carve", line 5, in <module>
    from carveme.cli.carve import main
  File "<path>/lib/python3.11/site-packages/carveme/__init__.py", line 5, in <module>
    from reframed.solvers.solver import default_parameters, Parameter
  File "<path>/lib/python3.11/site-packages/reframed/__init__.py", line 13, in <module>
    from .core.transformation import make_irreversible, simplify, gpr_transform
  File "<path>/lib/python3.11/site-packages/reframed/core/transformation.py", line 5, in <module>
    from ..cobra.variability import blocked_reactions
  File "<path>/lib/python3.11/site-packages/reframed/cobra/variability.py", line 4, in <module>
    from .thermodynamics import llFBA
  File "<path>/lib/python3.11/site-packages/reframed/cobra/thermodynamics.py", line 7, in <module>
    from scipy import compress
ImportError: cannot import name 'compress' from 'scipy' (<path>/lib/python3.11/site-packages/scipy/__init__.py)

If we use scipy v1.11, everything is OK

AzizBenA commented 7 months ago

Thank you so much !

cdanielmachado commented 7 months ago

Should be fixed now :)