Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Which version of depinfo is required? #754

Open
MGSS7 opened this issue Oct 22, 2023 · 4 comments
Open

Which version of depinfo is required? #754

MGSS7 opened this issue Oct 22, 2023 · 4 comments

Comments

@MGSS7
Copy link

MGSS7 commented Oct 22, 2023

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
Copy link
Member

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

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

@sulheim
Copy link

sulheim commented Oct 26, 2023

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
Copy link
Author

MGSS7 commented Oct 26, 2023

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

@Midnighter
Copy link
Member

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants