今天用MOFA方法多组学聚类,在
mofa <- run_mofa(mofa)
这步疯狂报以下错误:
Connecting to the mofapy2 python package using reticulate (use_basilisk = FALSE)…
Please make sure to manually specify the right python binary when loading R with reticulate::use_python(…, force=TRUE) or the right conda environment with reticulate::use_condaenv(…, force=TRUE)
If you prefer to let us automatically install a conda environment with ‘mofapy2’ installed using the ‘basilisk’ package, please use the argument ‘use_basilisk = TRUE’
ReadError: unexpected end of data [56593] Failed to execute script entry_point concurrent.futures.process._RemoteTraceback: ‘’’ Traceback (most recent call last): File “concurrent/futures/process.py”, line 368, in _queue_management_worker File “multiprocessing/connection.py”, line 251, in recv TypeError: init() missing 1 required positional argument: ‘msg’ ‘’’ The above exception was the direct cause of the following exception: Traceback (most recent call last): File “entry_point.py”, line 69, in File “concurrent/futures/process.py”, line 484, in _chain_from_iterable_of_lists File “concurrent/futures/_base.py”, line 611, in result_iterator File “concurrent/futures/_base.py”, line 439, in result File “concurrent/futures/_base.py”, line 388, in __get_result concurrent.futures.process.BrokenProcessPool: A process in the process pool was terminated abruptly while the future was running or pending. [59185] Failed to execute script entry_point Error in installConda() : conda installation failed with status code ‘1’
我明白是我当前环境没安装mofapy2的包,我就去对应的虚拟环境中,安装了最新版本的:
pip install mofapy2==0.6.4
结果依旧报一样的错误,后来重新启动rstudio(kill -9 对应PID),问题解决,果然很多事情,重启就能解决!