Closed vd4mmind closed 4 years ago
Here is my solution after working out a few trial and error.
I was able to install mofapy
, MOFAv1
and MOFAv2
in my R Studio session server. However, there are multiple python binaries in the server and I also have installed quite a few.
Hence, I had to get back to a few people for solutions. @rargelaguet and dfermin inputs were very beneficial. However, our local our server manager who remotely monitors asked me to use the correct path of pip
under my miniconda and install mofapy. Voila, this did the trick.
Leaving a detailed description below for others if they meet the same issue.
Command used: /home/vvda/.local/share/r-miniconda/envs/mofa_env/bin/pip install mofapy --user
Installed the mofapy in correct conda environment: /home/vvda/.local/share/r-miniconda/envs/mofa_env/lib/python3.8/site-packages/mofapy
Restarted the R Studio Session
in the server
library(reticulate)
use_python("/home/vvda/.local/share/r-miniconda/envs/mofa_env/bin/python3", required = TRUE)
py_config()
library(MOFA)
library(MOFAdata)
py_config()
python: /home/vvda/.local/share/r-miniconda/envs/mofa_env/bin/python3
libpython: /home/vvda/.local/share/r-miniconda/envs/mofa_env/lib/libpython3.8.so
pythonhome: /home/vvda/.local/share/r-miniconda/envs/mofa_env:/home/vvda/.local/share/r-miniconda/envs/mofa_env
version: 3.8.2 (default, Mar 26 2020, 15:53:00) [GCC 7.3.0]
numpy: /home/vvda/.local/share/r-miniconda/envs/mofa_env/lib/python3.8/site-packages/numpy
numpy_version: 1.18.2
NOTE: Python version was forced by use_python function
Thanks, everyone for helping me diagnose these past 2 days.
Kind regards, VD
Hi,
I am having a similar issue as reported in https://github.com/bioFAM/MOFA/issues/50
However, I am running it via the R Studio server. Error"
Error in value[[3L]](cond) :
mofapy package not found. Make sure that Reticulate is pointing to the right Python binary.
Please read the instructions here: https://github.com/bioFAM/MOFA#installation
Mypyconfig()
shows version aspython3.6
numpy_version: 1.18.1
Below is my
sessioninfo()
Any idea how to get a workaround? I tried to source the
runMOFA9()
separately as well but it did not work.Kind regards,
VD