Build Network and Map Linkages

125 views
Skip to first unread message

高成

unread,
Apr 18, 2023, 9:27:15 PM4/18/23
to Linkage Mapper
 Python error on **line 266** of s2_buildNetwork.py in Linkage Mapper Version 3.0.0: ValueError: could not broadcast input array from shape (0,) into shape (1,3). 

高成

unread,
Apr 18, 2023, 9:39:24 PM4/18/23
to Linkage Mapper
 I check the property of the core.shp,  they were all right.And they count from 1,not 0.So i have no idea about the shape(0,) above.
Could you give me some advice ,thank you so much.

高成

unread,
Apr 18, 2023, 9:46:01 PM4/18/23
to Linkage Mapper
在2023年4月19日星期三 UTC+8 09:27:15<高成> 写道:
2023_04_19_0044_Linkage Mapper.txt

John Gallo

unread,
Apr 18, 2023, 10:50:14 PM4/18/23
to linkage...@googlegroups.com
Hello Cheng Gao, Thanks for including the .txt file.  We have a new version of Linkage Mapper, Version 3.0.1 Beta1. It will fix the errors regarding ArcPro changes in the syntax of time.  Hopefully that fixes the other error too. Please let us know if it does not. Thank you, John



On Tue, Apr 18, 2023 at 6:46 PM 高成 <chuanshig...@gmail.com> wrote:
在2023年4月19日星期三 UTC+8 09:27:15<高成> 写道:
 Python error on **line 266** of s2_buildNetwork.py in Linkage Mapper Version 3.0.0: ValueError: could not broadcast input array from shape (0,) into shape (1,3). 

--
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 on the web visit https://groups.google.com/d/msgid/linkage-mapper/1020f0d6-e75a-4bb9-a7ed-3741d3632b25n%40googlegroups.com.


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

and

Senior Conservation Scientist
Conservation Biology Institute

高成

unread,
Apr 18, 2023, 11:13:57 PM4/18/23
to Linkage Mapper
Hello Jhon, The erro above is actually reported after i ran the new version3.0.1 Beta 1. Sorry i didn't mark the key erro , Here it is---- File "D:\REoutput\toolbox\scripts\s2_buildNetwork.py", line 266, in get_adj_list outAdjList[:, 0:3] = inAdjList[0:3] ValueError: could not broadcast input array from shape (0,) into shape (1,3)
 Thank you so much if you could help me !

daniel orgaz

unread,
Jun 12, 2023, 4:40:34 PM6/12/23
to Linkage Mapper
Good afternoon, 

I have the same problem as you. Could you tell me what you did to correct the error? 

thank you so much. 

a cordial greeting.

John Gallo

unread,
Jun 12, 2023, 6:01:42 PM6/12/23
to Linkage Mapper
Hello Both,

Please include the .txt log file.

Thank you,

John

daniel orgaz

unread,
Jun 12, 2023, 7:51:42 PM6/12/23
to linkage...@googlegroups.com
error arcgis pro.txt

John Gallo

unread,
Jun 13, 2023, 1:48:20 AM6/13/23
to linkage...@googlegroups.com
Hello Daniel,

Estrano. Usually the log file shows how many pixels and how many cores you have.  Did you send just a portion?  Also, I notice you are using 3.1-Beta.  I'm pretty sure that is the same as v 3.1 for this issue, but not positive.  Can you get 3.1 from the website and try that with teh sample data, and then with your data? And if that does not work send the whole log file? Or at least just delete only the lines that you don't want to share?

Gracias,

John

daniel orgaz

unread,
Jun 14, 2023, 7:29:34 AM6/14/23
to linkage...@googlegroups.com
I'm using 3.0.0 but I don't know why the 3.1 error appears. beta

2.txt

John Gallo

unread,
Jun 14, 2023, 2:54:23 PM6/14/23
to linkage...@googlegroups.com
Hi Daniel,

It looks to me like your scripts directory has some v3.0.0 scripts and some 3.1-Beta scripts.

Also, the related bug in this original thread was solved after v 3.0.0.

For both reasons, I suggest you delete the old version of the software from your computer (or at least move it to a "temp" folder) , and you download and use v 3.1 , from here: https://linkagemapper.org/Downloads/ 

Thank you,

John

Reply all
Reply to author
Forward
0 new messages