error in demo file

10 views
Skip to first unread message

Ramesh Kathariya Save_Wild

unread,
Apr 18, 2025, 1:09:51 AMApr 18
to linkage...@googlegroups.com
Hello Community, I am new to the Linkage Mapper Tool and the ArcGIS Pro interface. I'm habituated to ArcGIS Desktop. This might be a very newbie issue to most of you.

I am running the demo file in the Linkage Mapper tool for Linkage Pathways [BuildNetwork & MapLinkages]. Here is the pop-up message on my laptop.



Build Network and Map Linkages
=====================
Tool Path

C:\Users\rkathariya\Documents\ToolboxPro\linkage_mapper_3_0_0\toolbox\Linkage Mapper.tbx\MapLinkages
=====================
Parameters

Project Directory     C:\demo\output\lm
Core Area Feature Class     lm_cores
Core Area Field Name     core_id
Resistance Raster     lm_resistances.tif
Step 1 - Identify Adjacent Core Areas     true
Step 2 - Construct a Network of Core Areas     true
Network Adjacency Method     Cost-Weighted & Euclidean
Core Area Distances File     C:\demo\data\distances_lm_cores.txt
Step 3 - Calculate Cost-Weighted Distances and Least Cost Paths     true
Drop Corridors that Intersect Core Areas     true
Step 4 - Prune Network Using Options Below     true
Option A - Maxium Number of Connected Nearest Neighbors     1
Option B - Nearest Neighbor Measurement Unit     Euclidean
Option C - Connect Neighboring Constellations     true
Step 5 - Calculate, Normalize and Mosaic Corridors     true
Truncate Corridors     true
Truncate Cost-Weighted Distance Threshold     200000
Bounding Circles Buffer Distance     10000
Maximum Cost-Weighted Corridor Distance     100000
Maximum Euclidean Corridor Distance     40000
Output for ModelBuilder Precondition    
Custom Settings File    
=====================
Messages

Start Time: Friday, April 18, 2025 10:42:15 AM
A record of run settings and messages can be found in your log directory:
C:\demo\output\lm\run_history\log

********************************************************
NOTE: Linkage Mapper tools often work best when run from ArcCatalog instead of ArcMap.

Setting data frame spatial reference to that of core area feature class.

---------------------------------
Starting at step 1.

Making temporary copy of resistance raster for this run.

Making temporary raster of core file for this run.

---------------------------------
Running script s1_getAdjacencies.py
Adjacency files will be written to C:\demo\output\lm\datapass\adj
Reducing processing area using bounding circle plus buffer of 10000.0 map units

Calculating cost-weighted distance adjacency

---------------------------------
****Failed in step 1. Details follow.****
---------------------------------
Python error on **line 119** of s1_getAdjacencies.py in Linkage Mapper Version 3.0.0:
AttributeError: module 'time' has no attribute 'clock'

---------------------------------
A record of run settings and messages can be found in your log directory:
C:\demo\output\lm\run_history\log
---------------------------------

Failed script Build Network and Map Linkages...
Failed to execute (MapLinkages).
Failed at Friday, April 18, 2025 10:42:19 AM (Elapsed Time: 3.69 seconds);


margin-bottom:0pt">



e-height:1.38;margin-top:0pt;margin-bottom:0pt">



John Gallo

unread,
Apr 18, 2025, 12:02:24 PMApr 18
to linkage...@googlegroups.com
Hi Ramesh,

This was a bug of v 3.0 for some people.  Please use Linkage Mapper v3.1  https://linkagemapper.org/Downloads/

Good luck!

John

--
You received this message because you are subscribed to the Google Groups "Linkage Mapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linkage-mappe...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/linkage-mapper/CAPCFuR09T1mEHh8_3J4ADUM1sEpaBjFUXRU4Xt5BE9_BMRfbhA%40mail.gmail.com.


--
John A. Gallo, Ph.D.
Project Director
LinkageMapper.org

and

Senior Conservation Scientist
Conservation Biology Institute

Ramesh Kathariya Save_Wild

unread,
Apr 19, 2025, 11:19:17 AMApr 19
to Linkage Mapper
Hi Dr. John, Thank you very much for your response. Yes, you are right; now its working with version 3.1
Reply all
Reply to author
Forward
0 new messages