SBRG / MASSpy

https://masspy.readthedocs.io
MIT License
22 stars 6 forks source link

ImportError: 'gene_to_dict' from 'cobra.io.dict' #168

Closed raven44099 closed 2 years ago

raven44099 commented 2 years ago

I run into this error in three cases (system, local env, colab):

ImportError: cannot import name 'gene_to_dict' from 'cobra.io.dict'

Could you help me resolve this? Here I attach the google colab file.

Hints so far:

``` import cobra from cobra.io.dict import gene_from_dict, gene_to_dict ``` Import cobra works. However, using the above, while this can import `gene_from_dict`, it failes with `gene_to_dict`

raven44099 commented 2 years ago

Downgrading COBRA after installing MASSpy gave me a suboptimal solution.

pip install cobra==0.18.1

But version cobra==0.19.0 is already not working.