BIMSBbioinfo / maui

Multi-omics Autoencoder Integration: Deep learning-based heterogenous data analysis toolkit
GNU General Public License v3.0
48 stars 20 forks source link

installation #10

Closed BioDebojyoti closed 3 years ago

BioDebojyoti commented 3 years ago

Hi @jonathanronen ,

Tried to install maui with pip, it didn't produce any errors. However, when I try importing maui and maui.tools it fails. Any help is appreciated.

(py3.6) pcddas@beagle:~/SOFTWARES$ python Python 3.6.0 | packaged by conda-forge | (default, Feb 9 2017, 14:36:55) [GCC 4.8.2 20140120 (Red Hat 4.8.2-15)] on linux Type "help", "copyright", "credits" or "license" for more information.

import maui Traceback (most recent call last): File "", line 1, in File "/home/pcddas/miniconda2/envs/py3.6/lib/python3.6/site-packages/maui/init.py", line 1, in from .model import Maui File "/home/pcddas/miniconda2/envs/py3.6/lib/python3.6/site-packages/maui/model.py", line 8, in from .autoencoders_architectures import stacked_vae, deep_vae, train_model File "/home/pcddas/miniconda2/envs/py3.6/lib/python3.6/site-packages/maui/autoencoders_architectures.py", line 7, in from keras.models import Model File "/home/pcddas/miniconda2/envs/py3.6/lib/python3.6/site-packages/keras/init.py", line 25, in from keras import models File "/home/pcddas/miniconda2/envs/py3.6/lib/python3.6/site-packages/keras/models.py", line 19, in from keras import backend File "/home/pcddas/miniconda2/envs/py3.6/lib/python3.6/site-packages/keras/backend.py", line 36, in from tensorflow.python.eager.context import get_config ImportError: cannot import name 'get_config'

jonathanronen commented 3 years ago

Hi there. The current version of maui is a bit picky about versions of the dependencies. You'll need to use Python 3.6 and TensorFlow 1 (not 2). E.g. !pip install maui-tools matplotlib lifelines seaborn Keras==2.2.4 scikit-learn==0.20.0 should work.

An update so that maui will work with newer versions of these dependencies is coming as soon as I find the time :-)

Let me know if you're still running into trouble!