Irrationone / cellassign

Automated, probabilistic assignment of cell types in scRNA-seq data
Other
191 stars 79 forks source link

AttributeError: 'module' object has no attribute 'Num' #53

Closed DadongZ closed 4 years ago

DadongZ commented 4 years ago

I got en error when I run the tutorial data:

fit <- cellassign(exprs_obj = sce[rownames(example_marker_mat),], 
+                   marker_gene_info = example_marker_mat, 
+                   s = s, 
+                   learning_rate = 1e-2, 
+                   shrinkage = TRUE,
+                   verbose = FALSE)
Error in py_module_import(module, convert = convert) : 
  AttributeError: 'module' object has no attribute 'Num'

Detailed traceback: 
  File "/home.local/dz33/.local/lib/python2.7/site-packages/tensorflow_probability/__init__.py", line 75, in <module>
    from tensorflow_probability.python import *  # pylint: disable=wildcard-import
  File "/home.local/dz33/.local/lib/python2.7/site-packages/tensorflow_probability/python/__init__.py", line 24, in <module>
    from tensorflow_probability.python import experimental
  File "/home.local/dz33/.local/lib/python2.7/site-packages/tensorflow_probability/python/experimental/__init__.py", line 34, in <module>
    from tensorflow_probability.python.experimental import auto_batching
  File "/home.local/dz33/.local/lib/python2.7/site-packages/tensorflow_probability/python/experimental/auto_batching/__init__.py", line 24, in <module>
    from tensorflow_probability.python.experimental.auto_batching import frontend
  File "/home.local/dz33/.local/lib/python2.7/site-packages/tensorflow_probability/

Any suggestions? Thanks

DadongZ commented 4 years ago

Solved by using python3