[QGIS-trac] [Quantum GIS] #2803: manageR don't works on OSX

Quantum GIS qgis at qgis.org
Sat Jun 12 10:18:28 EDT 2010


#2803: manageR don't works on OSX
------------------------------------------------+---------------------------
   Reporter:  epifanio                          |              Owner:  borysiasty   
       Type:  bug                               |             Status:  new          
   Priority:  major: does not work as expected  |          Milestone:  Version 1.5.0
  Component:  Python plugins and bindings       |            Version:  HEAD         
   Keywords:  R , rpy2, manageR                 |   Platform_version:  osx          
   Platform:  OS X                              |           Must_fix:  No           
Status_info:  0                                 |  
------------------------------------------------+---------------------------
 Tring to run ManageR, it fails to detect R and Rpy installation :


 Unable to load manageR: Unable to load required package rpy2.
 Please ensure that both R, and the corresponding version of Rpy2 are
 correctly installed.

 R is installed, from bash :

 MacBook-Pro-15-di-Massimo-Di-Stefano:build6 sasha$ R64R version 2.11.1
 (2010-05-31)Copyright (C) 2010 The R Foundation for Statistical
 ComputingISBN 3-900051-07-0R è un software libero ed è rilasciato SENZA
 ALCUNA GARANZIA....
 ...
 ...
 Scrivi 'demo()' per una dimostrazione, 'help()' per la guida in linea, o
 'help.start()' per l'help navigabile con browser HTML.
 Scrivi 'q()' per uscire da R.

 >


 Also rpy2 is already installed :


 Python 2.6.1 (r261:67515, Feb 11 2010, 00:51:29)
 [GCC 4.2.1 (Apple Inc. build 5646)] on darwin
 Type "help", "copyright", "credits" or "license" for more information.
 >>> import rpy2
 >>> dir(rpy2)
 ['__builtins__', '__doc__', '__file__', '__loader__', '__name__',
 '__package__', '__path__', '__version__']
 >>>

 this the plug-in log :

 An error has occured while executing Python code:

 Traceback (most recent call last):
   File "/Users/sasha/.qgis/python/plugins/manageR/plugin.py", line 61, in
 run
     MainWindow(self.iface, self.version,isConsole=True,
 isStandalone=False).show()
   File "/Users/sasha/.qgis/python/plugins/manageR/manageR.py", line 3608,
 in __init__
     self.editor.append(welcomeString(self.version, isStandalone))
   File "/Users/sasha/.qgis/python/plugins/manageR/manageR.py", line 122,
 in welcomeString
     string.append("Currently running %s\n" % robjects.r.version[12][0])
 NameError: global name 'robjects' is not defined

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/2803>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list