opencobra / memote

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

Issue installing memote #747

Closed adjurhuus closed 11 months ago

adjurhuus commented 11 months ago

I've been trying to install memote in a conda environment, using both pip install and git. It installs without giving any errors in both cases, but when I try to run memote it gives me the following error;

Traceback (most recent call last): File "/home/ad/.local/bin/memote", line 5, in from memote.suite.cli.runner import cli File "/home/ad/.local/lib/python3.10/site-packages/memote/init.py", line 36, in from memote.suite.api import * File "/home/ad/.local/lib/python3.10/site-packages/memote/suite/api.py", line 30, in from memote.suite.collect import ResultCollectionPlugin File "/home/ad/.local/lib/python3.10/site-packages/memote/suite/collect.py", line 28, in from memote.support.helpers import find_biomass_reaction File "/home/ad/.local/lib/python3.10/site-packages/memote/support/helpers.py", line 32, in from importlib_resources import open_text ImportError: cannot import name 'open_text' from 'importlib_resources' (/home/ad/.local/lib/python3.10/site-packages/importlib_resources/init.py)

I've tried updating importlib_resources, which says it's up to date, and I've tried using different versions of python, both 3.10 and 3.7, but it gives the same error.

Midnighter commented 11 months ago

Please `pip install 'importlib_resources <1.0' for now.

adjurhuus commented 11 months ago

That fixed the problem, thank you!