-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot import sccoda.util.comp_ana #39
Comments
Hi! First, it seems that there is a typo in your import statement. It should be From the list of installed packages, I can also see that you did not install all the dependencies of |
Thanks! I managed to get it going on the linux server using a fresh environment with python 3.8 as recommended. I am not sure if this was the reason as it may be working well with later installations as well. Something in my environment was causing a problem (the typo was only on github). It still does not run on my macbook, but I believe this is some sort of a Tensorflow - M1 issue unrelated to scCODA. |
Hi @neurOnur there is a Mac-optimized Tensorflow version for the Apple M1 chip. I found the following tutorial to install tensorflow for Mac using However, the installation of For now, until there is full support of tensorflow and tensorflow-probability for the M1 chip from Apple, I suggest that you resort to a different computer (or Google Colabs). |
Hi @mbuttner, |
I installed scCODA (pip install sccoda) without any problem/warning and performed the basic analysis following the getting started tutorial, until the model setup and inference. Unfortunately I cannot import sccoda.util.comp_ana function into python. Following the tutorial:
doesn't work for my python installation (conda, python 3.9), thus I used
successfully. When I try to import comp_ana using:
import sccoda.util.comp_ana as mod
The kernel crushes. If I import sccoda separately;
import sccoda
And look for the possible functions, but I only can see cell_composition_data and data_visualization, but not comp_ana
comp_ana.py is under the sccoda/util folder where it is supposed to be. I am not sure what exactly the problem is, but somehow comp_ana is 'invisible'.
I have a Macbook pro M1 with 8-core, my environment details are:
I have tried this on a linux server as well with identical results.
Thanks for the time
The text was updated successfully, but these errors were encountered: