Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation failed by "No module named site" message #19

Open
jeffwji opened this issue Jan 5, 2018 · 0 comments
Open

Installation failed by "No module named site" message #19

jeffwji opened this issue Jan 5, 2018 · 0 comments

Comments

@jeffwji
Copy link

jeffwji commented Jan 5, 2018

I'm trying to install rPython on Windows 7, failed by "No module named site". My environment configuration is:

Python 3.6.3 is installed under "C:\Program Files\Python\Python36" which is default location.

Rtools is installed under C:\Rtools, with mingw_64 (and 32 bit version) underneath.

PATH is set as "%PATH%;C:\Rtools\bin;C:\Rtools\mingw_64\bin"

configure.win file content is:

#!/bin/sh

echo 'PKG_LIBS=-LC:/Program Files/Python/Python36/libs -lpython36'  > src/makevars.win
echo 'PKG_CFLAGS=-I"C:/Program Files/Python/Python36/include"'     >> src/makevars.win

R version is 3.4.1

Install command:

install.packages("devtools")
library(devtools)
install("C:/DevApps/R/rPython")

Detail error message:

Installing rPython
"C:/PROGRA~1/R/R-34~1.0/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL "C:/DevApps/R/rPython"  \
  --library="C:/Users/326487162/Documents/R/win-library/3.4" --install-tests 

* installing *source* package 'rPython' ...
** libs
Warning: this package has a non-empty 'configure.win' file,
so building only the main architecture

make: Nothing to be done for `all'.
installing to C:/Users/326487162/Documents/R/win-library/3.4/rPython/libs/x64
** R
** inst
** preparing package for lazy loading
Warning: package 'RJSONIO' was built under R version 3.4.1
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
Warning: package 'RJSONIO' was built under R version 3.4.1
ImportError: No module named site
ERROR: loading failed
* removing 'C:/Users/326487162/Documents/R/win-library/3.4/rPython'
Error: Command failed (1)

The output information is not very clear what it was trying to import? and why it was failed. How can I fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant