bioFAM / MOFA

Multi-Omics Factor Analysis
GNU Lesser General Public License v3.0
231 stars 57 forks source link

Error in runMOFA function #22

Closed ashishjain1988 closed 5 years ago

ashishjain1988 commented 5 years ago

I am getting the following error while running CLL example on my system.

Error in py_get_attr_impl(x, name, silent) : AttributeError: 'module' object has no attribute 'core.entry_point'

I am using python 2.7.10 and R 3.4.3.

rargelaguet commented 5 years ago

I think the problem is that the MOFA python package is not properly installed. Can you open your python interpreter and check if you can import the mofa package? If this works, can you restart R and try to load the package (from R) via reticulate (https://rstudio.github.io/reticulate/)?

ashishjain1988 commented 5 years ago

I am able to import the "mofa" package both from the python interpreter and from R.

rargelaguet commented 5 years ago

Then I see no reason why it should not work.. Do other packages like numpy/scipy work from R reticulate? Can you perhaps try with Python 3?

ashishjain1988 commented 5 years ago

It's working on the UNIX system (RHEL) with python 2.7.5 and R 3.5. Earlier, I installed it on my MacBook having macOS Sierra. Is this package platform dependent? Have you guys tested it on Mac? And thank you for your help and quick replies!!

rargelaguet commented 5 years ago

We tested it on the three common platforms and works fine. As long as the connection between R and python via reticulate is working, MOFA should run. I noticed that under some conditions one needs to restart R after installing the mofa python package. Let me know how it goes

ashishjain1988 commented 5 years ago

I updated the OS and its working now. Thanks for all the help!!