Bioconductor / basilisk

Clone of the Bioconductor repository for the basilisk package.
https://bioconductor.org/packages/devel/bioc/html/basilisk.html
GNU General Public License v3.0
27 stars 14 forks source link

python version forced using radian #15

Closed alanocallaghan closed 2 years ago

alanocallaghan commented 2 years ago

Haven't had a chance to look in detail; just wanting to log the info somewhere https://stackoverflow.com/questions/50145643/unable-to-change-python-path-in-reticulate#51547674

LTLA commented 2 years ago

I'm pretty sure I made basilisk force the issue:

https://github.com/LTLA/basilisk/blob/d4d0d2601e979781e961156f4dfc85158a1fb579/R/useBasiliskEnv.R#L53-L55

alanocallaghan commented 2 years ago

Sorry not a very descriptive issue title. radian seems to force its own python process on the R session, so you get ModuleNotFoundErrors with traceback. This is with current basilisk master

Detailed traceback:
  File "/home/alan/R/x86_64-pc-linux-gnu-library/4.1/reticulate/python/rpytools/loader.py", line 39, in _import_hook
    module = _import(
In addition: Warning message:
Python '/home/alan/.cache/R/basilisk/1.5.0/snifter/1.4.0/fitsne/bin/python' was requested but '/usr/bin/python3' was loaded instead (see reticulate::py_config() for more information) 
alanocallaghan commented 2 years ago

Bit of a stupid moment but I meant radian (python-based R interpreter) rather than reticulate. It forces the python version for the current R process per the FAQ on their readme so it seems like basilisk is never gonna work there