bioFAM / MOFA

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

error message: mofapy package not found. #58

Closed squirrelB closed 4 years ago

squirrelB commented 4 years ago

Hi. I'm on a Mac. Not a python user, so this has me stuck. I've installed Python 3, and mofapy. Below is the printout from my terminal showing the PATH to Python 3.8 and also verifies that mofapy is indeed installed (screen shot below). However, when I run R, I still get an error (screenshot at the end). I'm not sure what I'm doing wrong. Wondering if this is a Mac issue or I'm just pointing use_python to the wrong path.

Screen Shot 2020-09-08 at 8 59 19 PM Screen Shot 2020-09-08 at 9 05 20 PM
rargelaguet commented 4 years ago

Hi @squirrelB, in use_python you need to point to the actual python binary, not just the directory. Also, use the required=TRUE argument. Let me know if this works.

P.S. note that this repository is no longer mantained, please move to MOFA2

squirrelB commented 4 years ago

Solved the issue. Thanks! My directory path was incorrect. First, in the Unix terminal: sb@sbmacbook ~ % which python3 /usr/local/bin/python3

In R: use_python("/usr/local/bin/python3", required = TRUE) Now it's running. Thanks! And thanks for the heads up about MOFA2.