diffxpy icon indicating copy to clipboard operation
diffxpy copied to clipboard

import error with tensorflow

Open z5ouyang opened this issue 5 years ago • 3 comments

I just installed diffxpy followed the installation instructions: pip install tf-nightly pip install tfp-nightly pip install tensorflow pip install tensorflow-probability git clone https://github.com/theislab/batchglm.git cd batchglm;pip install -e .;cd .. git clone https://github.com/theislab/diffxpy.git cd diffxpy;pip install -e .;cd ..

then when I "import diffxpy.api as de", error: generic_utils.populate_dict_with_module_objects( AttributeError: module 'tensorflow.python.keras.utils.generic_utils' has no attribute 'populate_dict_with_module_objects'

Env info: Python 3.8.2 (default, Mar 26 2020, 15:53:00) [GCC 7.3.0] :: Anaconda, Inc. on linux Name: tf-nightly; Version: 2.3.0.dev20200512 Name: tfp-nightly; Version: 0.11.0.dev20200512 Name: tensorflow; Version: 2.2.0 Name: tensorflow-probability; Version: 0.9.0

Thank you!

z5ouyang avatar May 13 '20 04:05 z5ouyang

$ pip install diffxpy

(test) [bzhang1@omicsoft01 app]$ pip show diffxpy Name: diffxpy Version: 0.7.4 Summary: Fast and scalable differential expression analysis on single-cell RNA-seq data Home-page: UNKNOWN Author: David S. Fischer, Florian R. Hölzlwimmer Author-email: [email protected], [email protected] License: UNKNOWN Location: /opt/anaconda3/envs/test/lib/python3.7/site-packages Requires: numpy, scipy, pandas, statsmodels, patsy, batchglm Required-by:

baohongz avatar May 13 '20 10:05 baohongz

After uninstalling everything, and reinstall the following it works now: pip install tensorflow pip install diffxpy

Please update the documentation. Thanks

z5ouyang avatar May 13 '20 17:05 z5ouyang

Thanks @z5ouyang, will do that!

davidsebfischer avatar May 18 '20 08:05 davidsebfischer