linkagescape / linkage-mapper

ArcGIS tools to automate mapping and prioritization of wildlife habitat corridors
https://circuitscape.org/linkagemapper/
GNU General Public License v3.0
37 stars 12 forks source link

Pinchpoint Mapper - NameError: name 'Raster' is not defined #171

Open miistakis opened 1 year ago

miistakis commented 1 year ago

Trying to run Pinchpoint Mapper in LM 3.0.0 in ArcMap 1.8.1 and tried in Pro 2.8.0 as well.

Both have the same error when I run Pinchpoint Mapper:

Python error on line 129 of s8_pinchpoints.py in Linkage Mapper Version 3.0.0: NameError: name 'Raster' is not defined

Which is: outRas = Raster(resRaster) * Raster(resRaster)

Why is it not finding the function? resRaster is successfully referenced on line 61 without error, so I assume its fine.

Thoughts?

johngallo commented 1 year ago

My first thought is for you to search for 3.0.1 in this forum and to get that version. However, my memory is that was a different issue. perhaps start there anyway? I am in route to a conference right now, so may be a little slow to respond if that does not help. Anyone else can jump in at any time, of course!

Please also include the log files Of this or future runs in any replies.

Good luck!

On Wed, Mar 22, 2023 at 12:08 PM miistakis @.***> wrote:

Trying to run Pinchpoint Mapper in LM 3.0.0 in ArcMap 1.8.1 and tried in Pro 2.8.0 as well.

Both have the same error when I run Pinchpoint Mapper:

Python error on line 129 of s8_pinchpoints.py in Linkage Mapper Version 3.0.0: NameError: name 'Raster' is not defined

Which is: outRas = Raster(resRaster) * Raster(resRaster)

Why is it not finding the function? resRaster is successfully referenced on line 61 without error, so I assume its fine.

Thoughts?

— Reply to this email directly, view it on GitHub https://github.com/linkagescape/linkage-mapper/issues/171, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD7CJ2YHDR2ICDYCOGDXPK3W5NE3RANCNFSM6AAAAAAWEHVYCE . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Sent from my phone, please excuse typos and voice dictation creations.

miistakis commented 1 year ago

Thanks for the response. The 3.1.0 beta version toolbox has gotten me past the error at s8, its chugging away now.

I assume I do not need to rerun the original corridor creation that I did with 3.0.0?

Do you still want the log file for 3.0.0 fail?

Thanks again, much appreciated.