Subject: Marine Geospatial Ecology Tools (MGET) help
Text archives
From: | joanvp <> |
---|---|
To: | Jason Roberts <> |
Cc: | |
Subject: | Re: [mget-help] error using Calculate Species Diversity Index for Polygons |
Date: | Thu, 17 Feb 2011 04:59:18 -0800 (PST) |
Hi!
Thanks for responding so quick!
This is the new error message. Way more clear.
Executing: SpeciesDiversityCalculateDiversityIndexForArcGISPolygons
C:\joan\test_indexos\Quadricula_1_1_Poly.shp "Shannon index" SHANNON
C:\joan\test_indexos\puntsd.shp Especie DATO1 # #
Start Time: Thu Feb 17 13:55:08 2011
Running script SpeciesDiversityCalculateDiversityIndexForArcGISPolygons...
Intersecting the points with the polygons.
Summing species counts per polygon.
Reading species counts into memory.
ValueError: Cannot import field DATO1 of table
C:\Temp\GeoEcoTemp_adm\tmpe_9zc_\Temp.mdb\Counts into memory because the
field
does not exist in the table.
<type 'exceptions.ValueError'>: Cannot import field DATO1 of table
C:\Temp\GeoEcoTemp_adm\tmpe_9zc_\Temp.mdb\Counts into memory because the
field
does not exist in the table.
Failed to execute (SpeciesDiversityCalculateDiversityIndexForArcGISPolygons).
Failed at Thu Feb 17 13:55:22 2011 (Elapsed Time: 14,00 seconds)
BUT, The point is... Of course, I've checked the field DATO1 exists. :(
Do you want me to send you an extract of the files?
Joan
----- Mensaje original ----
De: Jason Roberts
<>
Para:
CC:
Enviado: jue,17 febrero, 2011 13:27
Asunto: RE: [mget-help] error using Calculate Species Diversity Index for
Polygons
Hi,
Thanks for your interest in MGET and for contacting us about this. I'm sorry
you're seeing this problem and should be able to help you fix it.
I could not reproduce the error, but I believe I know where it is coming
from.
There is some code that checks that the input points
(C:\test\test_indexos\Artesanals.shp, in this case) and species field
(Especie)
both exist. I believe that code determined that one or the other does not
exist
and tried to report the problem. But there is a bug in the code that reports
the
message, so "global name 'table' is not defined” is reported instead, which
is
not particularly useful.
So we have two problems to investigate:
1. What is the real error message.
2. Why is that error happening?
To address the first problem, I fixed the bug in the reporting code. You can
patch your MGET installation like this:
1. Shut down all ArcGIS programs.
2. Save the attached file to
C:\Python25\Lib\site-packages\GeoEco\DatabaseAccess\InMemory.py (for Arc
9.3.1)
or C:\Python26\ArcGIS10.0\Lib\site-packages\GeoEco\DatabaseAccess\InMemory.py
(for Arc 10).
3. Restart Arc and try the tool again.
Hopefully you will get a more helpful message. If it says that a table or
field
does not exist, please check on that. If that is not the problem, let me know
and we'll investigate further.
Best regards,
Jason
-----Original Message-----
From:
[mailto:]
Sent: Thursday, February 17, 2011 5:58 AM
To:
Subject: [mget-help] error using Calculate Species Diversity Index for
Polygons
Hi,
I'm new to the list. First of all, thanks for this toolset. It´s amazingly
useful.
We are trying to use Calculate Species Diversity Index for Polygons. We
succeeded using it when we didn't use Species Count Field (which is optional).
But when we populates it, it shows up the error bellow.
For + info, we tried it in ArcGis 9.3.1 and arcgis 10. Same error.
Any idea or hint? Thank you
Executing: SpeciesDiversityCalculateDiversityIndexForArcGISPolygons
C:\test\test_indexos\Quadricula_1_1_Poly.shp "Shannon index" SHANNON
C:\test\test_indexos\Artesanals.shp Especie DATO1 # #
Start Time: Thu Feb 17 11:35:23 2011
Running script SpeciesDiversityCalculateDiversityIndexForArcGISPolygons...
The R vegan package is not installed. Downloading and installing the latest
version...
Warning: package 'vegan' was built under R version 2.6.2
Intersecting the points with the polygons.
Summing species counts per polygon.
Reading species counts into memory.
NameError: global name 'table' is not defined
<type 'exceptions.NameError'>: global name 'table' is not defined
Failed to execute (SpeciesDiversityCalculateDiversityIndexForArcGISPolygons).
Failed at Thu Feb 17 11:36:06 2011 (Elapsed Time: 43,00 seconds)
Thanks for responding so quick!
This is the new error message. Way more clear.
Executing: SpeciesDiversityCalculateDiversityIndexForArcGISPolygons
C:\joan\test_indexos\Quadricula_1_1_Poly.shp "Shannon index" SHANNON
C:\joan\test_indexos\puntsd.shp Especie DATO1 # #
Start Time: Thu Feb 17 13:55:08 2011
Running script SpeciesDiversityCalculateDiversityIndexForArcGISPolygons...
Intersecting the points with the polygons.
Summing species counts per polygon.
Reading species counts into memory.
ValueError: Cannot import field DATO1 of table
C:\Temp\GeoEcoTemp_adm\tmpe_9zc_\Temp.mdb\Counts into memory because the
field
does not exist in the table.
<type 'exceptions.ValueError'>: Cannot import field DATO1 of table
C:\Temp\GeoEcoTemp_adm\tmpe_9zc_\Temp.mdb\Counts into memory because the
field
does not exist in the table.
Failed to execute (SpeciesDiversityCalculateDiversityIndexForArcGISPolygons).
Failed at Thu Feb 17 13:55:22 2011 (Elapsed Time: 14,00 seconds)
BUT, The point is... Of course, I've checked the field DATO1 exists. :(
Do you want me to send you an extract of the files?
Joan
----- Mensaje original ----
De: Jason Roberts
<>
Para:
CC:
Enviado: jue,17 febrero, 2011 13:27
Asunto: RE: [mget-help] error using Calculate Species Diversity Index for
Polygons
Hi,
Thanks for your interest in MGET and for contacting us about this. I'm sorry
you're seeing this problem and should be able to help you fix it.
I could not reproduce the error, but I believe I know where it is coming
from.
There is some code that checks that the input points
(C:\test\test_indexos\Artesanals.shp, in this case) and species field
(Especie)
both exist. I believe that code determined that one or the other does not
exist
and tried to report the problem. But there is a bug in the code that reports
the
message, so "global name 'table' is not defined” is reported instead, which
is
not particularly useful.
So we have two problems to investigate:
1. What is the real error message.
2. Why is that error happening?
To address the first problem, I fixed the bug in the reporting code. You can
patch your MGET installation like this:
1. Shut down all ArcGIS programs.
2. Save the attached file to
C:\Python25\Lib\site-packages\GeoEco\DatabaseAccess\InMemory.py (for Arc
9.3.1)
or C:\Python26\ArcGIS10.0\Lib\site-packages\GeoEco\DatabaseAccess\InMemory.py
(for Arc 10).
3. Restart Arc and try the tool again.
Hopefully you will get a more helpful message. If it says that a table or
field
does not exist, please check on that. If that is not the problem, let me know
and we'll investigate further.
Best regards,
Jason
-----Original Message-----
From:
[mailto:]
Sent: Thursday, February 17, 2011 5:58 AM
To:
Subject: [mget-help] error using Calculate Species Diversity Index for
Polygons
Hi,
I'm new to the list. First of all, thanks for this toolset. It´s amazingly
useful.
We are trying to use Calculate Species Diversity Index for Polygons. We
succeeded using it when we didn't use Species Count Field (which is optional).
But when we populates it, it shows up the error bellow.
For + info, we tried it in ArcGis 9.3.1 and arcgis 10. Same error.
Any idea or hint? Thank you
Executing: SpeciesDiversityCalculateDiversityIndexForArcGISPolygons
C:\test\test_indexos\Quadricula_1_1_Poly.shp "Shannon index" SHANNON
C:\test\test_indexos\Artesanals.shp Especie DATO1 # #
Start Time: Thu Feb 17 11:35:23 2011
Running script SpeciesDiversityCalculateDiversityIndexForArcGISPolygons...
The R vegan package is not installed. Downloading and installing the latest
version...
Warning: package 'vegan' was built under R version 2.6.2
Intersecting the points with the polygons.
Summing species counts per polygon.
Reading species counts into memory.
NameError: global name 'table' is not defined
<type 'exceptions.NameError'>: global name 'table' is not defined
Failed to execute (SpeciesDiversityCalculateDiversityIndexForArcGISPolygons).
Failed at Thu Feb 17 11:36:06 2011 (Elapsed Time: 43,00 seconds)
Archives powered by MHonArc.