Closed SilasK closed 3 years ago
Thats strange, this looks like a problem with CPLEX and not with the recursive mode. Are you sure it only happens in recursive mode?
No I get the same error with only one genome.
I try to install carveme on python 2.7, well see if it helps.
I think this is a bug I have fixed in the development version, but is still not integrated into the latest stable version.
Can you please try:
pip uninstall carveme
pip install https://github.com/cdanielmachado/carveme/archive/master.zip
Also, please continue with Python 3.6 or 3.7. I have now dropped support for python 2.7.
Had the same issue, installed the development version, but I am getting this error now:
Traceback (most recent call last): File "/home/ubuntu/.local/bin/carve", line 11, in <module> load_entry_point('carveme==1.3.0', 'console_scripts', 'carve')() File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 480, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2693, in load_entry_point return ep.load() File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2324, in load return self.resolve() File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2330, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/home/ubuntu/.local/lib/python3.6/site-packages/carveme/cli/carve.py", line 3, in <module> from carveme.reconstruction.carving import carve_model, build_ensemble File "/home/ubuntu/.local/lib/python3.6/site-packages/carveme/reconstruction/carving.py", line 5, in <module> from reframed.cobra.ensemble import EnsembleModel, save_ensemble ModuleNotFoundError: No module named 'reframed.cobra.ensemble'
It is obviously related to reframed because when we tried the last commit before the switch to reframed, it worked fine (except for the "not a list" issue)
Had the same issue, installed the development version, but I am getting this error now:
Same problem for me. The ensemble module doesn't seem to exist in neither the pip or github versions.
While waiting for a fix, my temporary workaround was to locally delete the build_ensemble
function and from reframed.cobra.ensemble import EnsembleModel, save_ensemble
line from carveme/reconstruction/carving.py
.
Dear all, sorry about that... since this was a development version it was not properly tested :)
I have now pushed the ensemble
module to reframed
on github.
Please do:
pip uninstall reframed
pip install https://github.com/cdanielmachado/reframed/archive/master.zip
That was quick! Works for me, thanks! :)
Thank you for the fix. However, carveme_init now fails because of this commit (updated refseq and removed support for genbank) https://github.com/cdanielmachado/carveme/commit/032bfc718fb6b3e44efcad7edfea739d158e87e9
carveme_init.py is not updated to reflect changes. I updated refseq to refseq_release_201.tsv.gz and removed genbank entry and it is working fine now.
Oops :) Sorry it is hard to account for everything during development. I'll make sure all these changes are properly tested before the next stable release.
I got this error when using recursive flag.