[Qgis-user] ManageR under Windows.

Giovanni Manghi giovanni.manghi at gmail.com
Tue Nov 15 10:15:19 PST 2011


Hi, you have to add the path of the /bin folder in your R installation
in the "path" environment variable of Windows. Due to the afct that the
rpy2 library (the "bridge" between python and R) for Windows is not
updated you must use R <= 2.11

In the QGIS wiki you can find detailed instructions.

Cheers

-- Giovanni --

On Tue, 2011-11-15 at 13:03 -0500, Guillaume Larocque wrote:
> Hi, I am trying to run ManageR under Windows 7. I have installed QGIS
> with the Standalone installer and I also tried the OSGeo4W installer.
> I get the error message found below. I have tried to set the R_HOME
> environmental variable in Windows to different values
> (/bin,/i386,/x64, etc) and I always get this message. 
> 
> 
> Any help is appreciated, 
> 
> 
> Thank you, 
> 
> 
> Guillaume 
> 
> 
> An error has occured while executing Python code:
> 
> Traceback (most recent call last):
>   File "C:/Users/Guillaume/.qgis/python/plugins\manageR\plugin.py",
> line 58, in run
>     from manageR import MainWindow, loadConfig, saveConfig
>   File "C:/OSGeo4W/apps/qgis/./python\qgis\utils.py", line 283, in
> _import
>     mod = _builtin_import(name, globals, locals, fromlist, level)
>   File "C:/Users/Guillaume/.qgis/python/plugins\manageR\manageR.py",
> line 68, in 
>     import rpy2.robjects as robjects
>   File "C:/OSGeo4W/apps/qgis/./python\qgis\utils.py", line 283, in
> _import
>     mod = _builtin_import(name, globals, locals, fromlist, level)
>   File "C:\OSGeo4W\apps\Python25\lib\site-packages\rpy2\robjects
> \__init__.py", line 12, in 
>     import rpy2.rinterface as rinterface
>   File "C:/OSGeo4W/apps/qgis/./python\qgis\utils.py", line 283, in
> _import
>     mod = _builtin_import(name, globals, locals, fromlist, level)
>   File "C:\OSGeo4W\apps\Python25\lib\site-packages\rpy2\rinterface
> \__init__.py", line 52, in 
>     raise RuntimeError("Unable to locate R.dll within %s" % R_HOME)
> RuntimeError: Unable to locate R.dll within C:\Progra~1\R\R-2.12.1\bin
> \i386
> 
> Python version:
> 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)]
> 
> 
> QGIS version:
> 1.7.1-Wroclaw Wroclaw, e6718b6
> 
> Python path: ['C:/OSGeo4W/apps/qgis/./python',
> 'C:/Users/Guillaume/.qgis/python',
> 'C:/Users/Guillaume/.qgis/python/plugins',
> 'C:/OSGeo4W/apps/qgis/./python/plugins', 'C:\\Windows\\system32\
> \python25.zip', 'C:\\OSGeo4W\\apps\\Python25\\DLLs', 'C:\\OSGeo4W\
> \apps\\Python25\\lib', 'C:\\OSGeo4W\\apps\\Python25\\lib\\plat-win',
> 'C:\\OSGeo4W\\apps\\Python25\\lib\\lib-tk', 'C:\\OSGeo4W\\apps\\qgis\
> \bin', 'C:\\OSGeo4W\\apps\\Python25', 'C:\\OSGeo4W\\apps\\Python25\
> \lib\\site-packages', 'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages
> \\win32', 'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\win32\
> \lib', 'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\Pythonwin',
> 'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\wx-2.8-msw-unicode',
> '/usr/share/qgis/python', 'C:\\OSGeo4W\\apps\\qgis\\python\\plugins\
> \fTools\\tools']
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user





More information about the Qgis-user mailing list