Skip to Content.

mget-help - [mget-help] Problem running Diversity Index

Please Wait...

Subject: Marine Geospatial Ecology Tools (MGET) help

Text archives


[mget-help] Problem running Diversity Index


Chronological Thread 
  • From: "BERRY, Robert" <>
  • To: "" <>
  • Subject: [mget-help] Problem running Diversity Index
  • Date: Tue, 23 Aug 2016 16:11:10 +0000
  • Accept-language: en-GB, en-US
  • Authentication-results: spf=none (sender IP is ) ;
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

Hi All


I think I have all the tools in place to run MGET (it has installed properly) but I'm receiving the following error message when I attempt to run a diversity index. It is related to RPy:


Messages
Executing: SpeciesDiversityCalculateDiversityIndexForArcGISPolygons C:\Users\Rob\Dropbox\Data\1_RESEARCH\Resilience\Landscape_Diversity\Boundaries\Counties_NOHOLES.shp "Shannon index" HECTARES C:\Users\Rob\Dropbox\Data\1_RESEARCH\Resilience\Landscape_Diversity\LCM\2007_1k_point_clipBNG.shp Land_Type Land_Type # #
Start Time: Tue Aug 23 16:54:37 2016
Running script SpeciesDiversityCalculateDiversityIndexForArcGISPolygons...

Traceback (most recent call last):
  File "C:\Program Files\GeoEco\ArcGISToolbox\Scripts\SpeciesDiversityCalculateDiversityIndexForArcGISPolygons.py", line 5, in <module>
    ExecuteMethodFromCommandLineAsArcGISTool('GeoEco.SpatialAnalysis.Diversity', 'SpeciesDiversity', 'CalculateDiversityIndexForArcGISPolygons')
  File "C:\Python27\ArcGIS10.2\lib\site-packages\GeoEco\ArcGISScripts.py", line 210, in ExecuteMethodFromCommandLineAsArcGISTool
    exec sourceCode in globals(), locals()
  File "<string>", line 1, in <module>
  File "C:\Python27\ArcGIS10.2\lib\site-packages\GeoEco\SpatialAnalysis\Diversity.py", line 31, in CalculateDiversityIndexForArcGISPolygons
    cls.__doc__.Obj.ValidateMethodInvocation()
  File "C:\Python27\ArcGIS10.2\lib\site-packages\GeoEco\Metadata.py", line 462, in ValidateMethodInvocation
    self.InitializeDependency(d)
  File "C:\Python27\ArcGIS10.2\lib\site-packages\GeoEco\Metadata.py", line 512, in InitializeDependency
    d.Initialize()
  File "C:\Python27\ArcGIS10.2\lib\site-packages\GeoEco\R.py", line 386, in Initialize
    from GeoEco.AssimilatedModules.rpy import rpy
  File "C:\Python27\ArcGIS10.2\lib\site-packages\GeoEco\AssimilatedModules\rpy\rpy.py", line 150, in <module>
    """ % RVERSION)
RuntimeError: No module named _rpy3024

      RPy module can not be imported. Please check if your rpy
      installation supports R 3.2.4. If you have multiple R versions
      installed, you may need to set RHOME before importing rpy. For
      example:
 
      >>> from rpy_options import set_options
      >>> set_options(RHOME='c:/progra~1/r/rw2011/')
      >>> from rpy import *
      
     
Failed to execute (SpeciesDiversityCalculateDiversityIndexForArcGISPolygons).
Failed at Tue Aug 23 16:54:37 2016 (Elapsed Time: 0.11 seconds)



I'm not sure what I have to do in terms of setting RHOME

Any help much appreciated

Cheers

Rob




Dr Robert Berry
Research Fellow
Countryside and Community Research Institute (CCRI)
University of Gloucestershire
Oxstalls Campus
Gloucester, UK
GL2 9HW

T: 01242 714120
M: 07970 433587
Skype: robert_berry_uk
@rural_gis

Staff Web page

CCRI Website
CCRI Year in Review
CCRI on Twitter
CCRI on Facebook
CCRI on Slideshare




Archive powered by MHonArc 2.6.19.

Top of Page