[Gfoss] Errore durante l'esecuzione di codice Python con plugin R

claudia.santese a cooperativaimpronte.it claudia.santese a cooperativaimpronte.it
Lun 4 Ott 2010 12:26:04 CEST


Ciao a tutti, 
credo di avere dei problemi con Python, perchè non è il primo plugin che
mi da problemi.
Qualcuno sa aiutarmi?
1° PROBLEMA]se provo ad aprire il plugin PYTHON BATCH PROCESSING --> si
blocca completamente qgis (errore windows: QGIS.EXE HA SMESSO DI
FUNZIONARE)

2° Problema] se provo a richiamare il plugin R (R è installato su
windows)-->


Errore durante l'esecuzione di codice Python:

Traceback (most recent call last):
  File "C:\Users\Claudia/.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 291, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:\Users\Claudia/.qgis/python/plugins\manageR\manageR.py", line
68, in 
    import rpy2.robjects as robjects
  File "C:/OSGeo4W/apps/qgis/./python\qgis\utils.py", line 291, 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 291, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File
"C:\OSGeo4W\apps\Python25\lib\site-packages\rpy2\rinterface\__init__.py",
line 22, in 
    "This might be because R.exe is nowhere in your Path.")
RuntimeError: Unable to determine R version from the registery.Calling the
command 'R RHOME' does not return anything.
This might be because R.exe is nowhere in your Path.

Versione Python:
2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]


Versione di QGIS:
1.5.0-Tethys Tethys, 13923M

Percorso Python: ['C:\\Users\\Claudia\\.qgis\\python\\plugins\\GeoCoding',
'C:\\Users\\Claudia\\.qgis\\python\\plugins\\GeoCoding',
'C:\\Users\\Claudia\\.qgis\\python\\plugins\\GeoCoding',
'C:\\Users\\Claudia\\.qgis\\python\\plugins\\GeoCoding',
'C:\\Users\\Claudia\\.qgis\\python\\plugins\\GeoCoding',
'C:\\Users\\Claudia\\.qgis\\python\\plugins\\GeoCoding',
'C:\\Users\\Claudia\\.qgis\\python\\plugins\\GeoCoding',
'C:\\Users\\Claudia\\.qgis\\python\\plugins\\GeoCoding',
'C:\\Users\\Claudia\\.qgis\\python\\plugins\\GeoCoding',
'C:\\Users\\Claudia\\.qgis\\python\\plugins\\GeoCoding',
'C:\\Users\\Claudia\\.qgis\\python\\plugins\\GeoCoding',
'C:\\Users\\Claudia\\.qgis\\python\\plugins\\GeoCoding',
'C:\\Users\\Claudia\\.qgis\\python\\plugins\\elevation',
'C:/OSGeo4W/apps/qgis/./python', 'C:\\Users\\Claudia/.qgis/python',
'C:\\Users\\Claudia/.qgis/python/plugins',
'C:/OSGeo4W/apps/qgis/./python/plugins',
'C:\\OSGeo4W\\apps\\gdal-16\\pymod', 'C:\\',
'C:\\OSGeo4W\\bin\\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',
u'C:/Users/Claudia/.qgis//python/plugins',
'C:\\OSGeo4W\\apps\\qgis\\python\\plugins\\fTools\\tools',
'C:\\Users\\Claudia\\.qgis\\python\\plugins\\cadtools\\tools',
'C:\\Users\\Claudia\\.qgis\\python\\plugins\\cataloginpecreate\\logic',
'C:\\Users\\Claudia\\.qgis\\python\\plugins\\cataloginpecreate\\gui',
'/usr/share/qgis/python/', '/usr/share/qgis/python/']


Devo settare il path della cartella di R per python?Come posso farlo dal
prompt di windows?

Grazie in anticipo.

Claudia


Maggiori informazioni sulla lista Gfoss