kdpsingh / clinspacy

Clinical Natural Language Processing using spaCy, scispacy, and medspacy
Other
96 stars 19 forks source link

Package installation error, package trying to install into a random temp folder #1

Closed xiaosongz closed 4 years ago

xiaosongz commented 4 years ago

Package seems trying to install into a temp folder instead of default R library folder.

remotes::install_github("ML4LHS/clinspacy", INSTALL_opts = "--no-multiarch")
#> Downloading GitHub repo ML4LHS/clinspacy@HEAD
#> 
#>      checking for file ‘/private/var/folders/mm/mp761p1j21g5bc9qk3ztdb_00000gn/T/Rtmp8Cd0XR/remotes2f2429440c78/ML4LHS-clinspacy-626949d/DESCRIPTION’ ...  ✓  checking for file ‘/private/var/folders/mm/mp761p1j21g5bc9qk3ztdb_00000gn/T/Rtmp8Cd0XR/remotes2f2429440c78/ML4LHS-clinspacy-626949d/DESCRIPTION’
#>   ─  preparing ‘clinspacy’:
#>      checking DESCRIPTION meta-information ...  ✓  checking DESCRIPTION meta-information
#>   ─  checking for LF line-endings in source and make files and shell scripts
#>   ─  checking for empty or unneeded directories
#>   ─  building ‘clinspacy_0.1.0.9001.tar.gz’
#>      
#> 
#> Error: Failed to install 'clinspacy' from GitHub:
#>   (converted from warning) installation of package '/var/folders/mm/mp761p1j21g5bc9qk3ztdb_00000gn/T//Rtmp8Cd0XR/file2f24328eaf72/clinspacy_0.1.0.9001.tar.gz' had non-zero exit status
Created on 2020-08-18 by the reprex package (v0.3.0)
xiaosongz commented 4 years ago

Okay, this might not be a problem of your package, for some reason R cannot locate my Python.

kdpsingh commented 4 years ago

Which Python version do you have? If 2.7, then suggest:

reticulate::install_miniconda() and then retry installing it.

Otherwise, would do suggest use_python() or use_conda() to help reticulate find Python.

kdpsingh commented 4 years ago

install_miniconda() auto installs Python 3.6 I believe.

xiaosongz commented 4 years ago

install_miniconda() auto installs Python 3.6 I believe.

I have both python2 and 3 installed, problem solved after manually chose Python3

reticulate::use_python(python = "/bin/python3")

then installation is successful.

kdpsingh commented 4 years ago

Great, glad you were able to get it to install!