opencobra / memote

memote – the genome-scale metabolic model test suite
https://memote.readthedocs.io/
Apache License 2.0
126 stars 26 forks source link

Which version of depinfo is required? #754

Open MGSS7 opened 11 months ago

MGSS7 commented 11 months ago

After installing memote 0.14.0 and required packages, I get the error message: ImportError: cannot import name 'get_pkg_info' from 'depinfo' and then the specific path to results.py.

When looking in the depinfo documentation, I can see that the function 'get_pkg_info', was only used in version 1.0.3. When installing this packages other packages like cobra and Escher crashes.

I have come around the problem by manually altering in the results.py file (found in ~/anaconda3/envs/cobra_escher/lib/python3.7/site-packages/memote/suite/results).

However there must be another way to solve this problem?


Package Information

memote 0.14.0

Dependency Information

black 23.3.0 click 8.1.7 click-configfile 0.2.3 click-log 0.4.0 cobra 0.22.0 cookiecutter 2.4.0 depinfo 2.2.0 future 0.18.3 gitpython 3.1.40 goodtables 2.5.4 importlib-resources 5.12.0 isort 5.11.5 jinja2 3.1.2 numpydoc 1.5.0 pandas 1.3.5 pylru 1.2.1 pytest 4.6.11 requests 2.31.0 ruamel.yaml 0.17.40 six 1.16.0 sqlalchemy 2.0.22 sympy 1.10.1 tox 4.8.0 travis-encrypt 1.1.2

Build Tools Information

pip 22.3.1 setuptools 65.6.3 wheel 0.38.4

Platform Information

Darwin 22.6.0-x86_64 CPython 3.7.16

Midnighter commented 11 months ago

I have an open pull request at cobrapy to update depinfo (https://github.com/opencobra/cobrapy/pull/1361). After that, I can update memote.

For now, if you install depinfo<2, it should work for you.

sulheim commented 11 months ago

Did this work for you @MGSS7 ? I now get this error:

in <module>...
     from cobra.util.util import *
from depinfo.application import DisplayApplication
ModuleNotFoundError: No module named 'depinfo.application'
MGSS7 commented 11 months ago

@sulheim yes, it did work! I installed the 1.7.0 version

Midnighter commented 11 months ago

@sulheim I just released a new version of cobrapy last night which includes depinfo>2. Next is a new memote version.

So for this to work right now, you need cobra<=0.27, depinfo<2, memote==0.14. I'll see about a new memote version tonight or in the next days.