Duplicate of:
http://stackoverflow.com/questions/11660002/install-ry2-on-windows-7/11662620#11662620
May I suggest to avoid cross-posting (without apparently reading answers) ?
L.
On 2012-07-26 20:38, Avishek Dutta wrote:
Hello everyone,
I just joined the list. I am at my wits end trying to solve the
problem of installing Rpy2 on windows 7.
This is again a repetition of the same problem, but please bear with
me as nothing is working.
I am new to R and Rpy2. My problem is similar. I am using python 2.6,
R 2.15.1, rpy2 2.2.6, and Windows 7.
*R_HOME: C:\Program Files\R\R-2.15.1*
Typing "R" in the command prompt does not work.
*PATH: has these two--C:\Program Files\R\R-2.15.1\bin;C:\Program
Files\R\R-2.15.1*
*PYTHONPATH:
C:\Python26\ArcGIS10.0\Lib;C:\Python26\ArcGIS10.0\DLLs;C:\Python26\ArcGIS10.0\Lib\lib-tk*
When I run the setup.py I get "*error: no commands supplied*"!
I tried putting all files from bin/i386 to directly under bin.
In my rinterface/_init_.py this is what I did:
|# MSWindows-specific code
_win_ok = False
if sys.platform in _win_bindirs.keys():
import win32api
if os.path.exists(os.path.join(R_HOME, 'lib')): ## ADDED ##
os.environ['PATH'] += ';' + os.path.join(R_HOME, 'bin')
os.environ['PATH'] += ';' + os.path.join(R_HOME, 'modules')
os.environ['PATH'] += ';' + os.path.join(R_HOME, 'lib')
R_DLL_DIRS = ('bin', 'lib')||## ADDED ##||
else: ## ADDED ##
os.environ['PATH'] += ';' + os.path.join(R_HOME, 'bin', 'i386') ##
ADDED ##
os.environ['PATH'] += ';' + os.path.join(R_HOME, 'modules', 'i386') ##
ADDED ##
os.environ['PATH'] += ';' + os.path.join(R_HOME, 'library') ##
ADDED ##
R_DLL_DIRS = ('bin', 'library')||## ADDED ##||
# Load the R dll using the explicit path
# Try dirs in R_DLL_DIRS
for r_dir in R_DLL_DIRS:
Rlib = os.path.join(R_HOME, r_dir, _win_bindirs[sys.platform], 'R.dll')
if not os.path.exists(Rlib):
continue
win32api.LoadLibrary(Rlib)
_win_ok = True
break
# Otherwise fail out!
if not _win_ok:
raise RuntimeError("Unable to locate R.dll within %s" % R_HOME)
# cleanup the namespace
del(os)
|
Nothing changes the setup.py error message. Please help!!
Avishek
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list