BioSystemsUM / troppo

Reconstruction algorithms for Python
GNU General Public License v3.0
22 stars 5 forks source link

ModuleNotFoundError: No module named 'cobamp.utilities.context' #11

Closed lokanandk closed 3 years ago

lokanandk commented 4 years ago

Hi Skapur,

I'm new to using the Troppo pipeline. Also, I've never used Cobamp before. I wanted to reconstruct context-specific models using the troppo pipeline and installed the same using pip. After installation of all dependencies, when I tried to run (just to check if the installation is ok):

$python imat.py

I get the following error: Traceback (most recent call last): File "imat.py", line 8, in from troppo.methods.base import ContextSpecificModelReconstructionAlgorithm, PropertiesReconstruction File "/home/kodurul/anaconda3/envs/carveme_me/lib/python3.6/site-packages/troppo-0.0.5-py3.6.egg/troppo/init.py", line 1, in from . import tINIT, corda, fastcore, gimme, imat, mba File "/home/kodurul/anaconda3/envs/carveme_me/lib/python3.6/site-packages/troppo-0.0.5-py3.6.egg/troppo/methods/init.py", line 1, in from . import tINIT, corda, fastcore, gimme, imat, mba File "/home/kodurul/anaconda3/envs/carveme_me/lib/python3.6/site-packages/troppo-0.0.5-py3.6.egg/troppo/methods/gapfill/init.py", line 1, in from . import tINIT, corda, fastcore, gimme, imat, mba File "/home/kodurul/anaconda3/envs/carveme_me/lib/python3.6/site-packages/troppo-0.0.5-py3.6.egg/troppo/methods/gapfill/consensus.py", line 2, in File "/home/kodurul/anaconda3/envs/carveme_me/lib/python3.6/site-packages/troppo-0.0.5-py3.6.egg/troppo/tasks/init.py", line 1, in from . import tINIT, corda, fastcore, gimme, imat, mba File "/home/kodurul/anaconda3/envs/carveme_me/lib/python3.6/site-packages/troppo-0.0.5-py3.6.egg/troppo/tasks/core.py", line 7, in ModuleNotFoundError: No module named 'cobamp.utilities.context'

Looks like the module "context" is missing? Please correct me if I'm wrong.

Could you please help me resolve this?

Thank you

Regards, Loka

vvvieira commented 4 years ago

Hello Loka,

Thanks for pointing this issue! This is an issue on our side: troppo 0.0.5 depends on some new modules introduced in cobamp which are to be released on version 0.2, but this version isn't released yet. I will try to release the new version of cobamp which should fix the issue once you update it with pip.

In the mean time, if you want to use troppo with the latest features, you can download the sources from GitHub (for both cobamp and troppo) and configure your editor accordingly to include the src folders in each project as source folders.

Once again, thank you for pointing this out as it also helps us keep these packages updated and working for everyone! I will keep this issue updated.

vvvieira commented 4 years ago

I have released a new version of cobamp and tested the pip version of troppo on a fresh environment and everything should now be working once you run pip install cobamp --upgrade

I recommend that you check this script for a real-world example using FASTCORE and tINIT, but feel free to ask if you run into any more issues

lokanandk commented 4 years ago

Thank you so much for your prompt response. I'll run the upgrade and get back to you if any more issues arise.