Error when running the Test Compatibility Tool

139 views
Skip to first unread message

fridau...@gmail.com

unread,
Jul 10, 2019, 5:09:18 AM7/10/19
to Sound Mapping Tools Users Group
Hello,


I'm trying to run the tool "Test model compatibility" with the data in SoundMappingTools_v4_4\testing. It does not work and I get the following error messages. 

Running script Test model compatibility...
Failed script Test model compatibility...
 Traceback (most recent call last):
  File "C:\smt\toolbox\scripts\B_Validation.py", line 103, in <module>
    import validationhlpr as vh
  File "C:\smt\toolbox\scripts\validationhlpr.py", line 152
    print "WARNING: There is a bug in ArcGIS 10.5 that causes an error in SPreAD-GIS when using the old algorithms."
                                                                                                                   ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("WARNING: There is a bug in ArcGIS 10.5 that causes an error in SPreAD-GIS when using the old algorithms.")?
 Failed to execute (validation2).


How do I go around these issues?

I use ArcGIS Pro 2.3.2.

Thanks in advance
Frida  

Douglas Long

unread,
Jul 10, 2019, 10:14:49 AM7/10/19
to fridau...@gmail.com, Sound Mapping Tools Users Group
Many folks had issues running the test model, just run with your own data. You might be the first person to try running it with PRO. Good luck, I hope it works on PRO. Keep us posted

--
You received this message because you are subscribed to the Google Groups "Sound Mapping Tools Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to soundmappingto...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/soundmappingtools/6df45bff-9c6e-499e-8949-f85fcfdfdc04%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--

fridau...@gmail.com

unread,
Jul 11, 2019, 2:55:59 AM7/11/19
to Sound Mapping Tools Users Group
Hi Douglas, 

Thanks for the fast respond! I'll keep you posted on how it goes :) 

So, I run the tool this morning with my own test data. The script failed and gave me these messages:



error.PNG


Any ideas?

Thanks!

Cheers,
Frida
 

Douglas Long

unread,
Jul 11, 2019, 3:00:18 AM7/11/19
to fridau...@gmail.com, Sound Mapping Tools Users Group
What country are you located in? Ahhh I forgot that ArcGIS Pro is python 3 :(

I think you could run spread with Python 3. But you would probably have to do some modifications, like wrapping all the print statements with parentheses and such. Also you might have some issues with the python modules.

I would suggest installing arcgis 10.* (example 10.5). Therefore you can run as is. If your really stuck, I can run the model for you.

Cheers,
Doug

--
You received this message because you are subscribed to the Google Groups "Sound Mapping Tools Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to soundmappingto...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
--

fridau...@gmail.com

unread,
Jul 11, 2019, 3:10:17 AM7/11/19
to Sound Mapping Tools Users Group
since it seemed to be a syntax error in the script, I simply added the parantheses, then instead received these messages 


error2.PNG



Douglas Long

unread,
Jul 11, 2019, 3:23:06 AM7/11/19
to fridau...@gmail.com, Sound Mapping Tools Users Group
I guess I’m python 3 you have to specifically say while row2 is not None. Instead of <> None.

This might take awhile to work with python3 and how to validate it in python3.

I would highly suggest just installing an older version of ArcGIS. (Only takes 30 mins to install) and running spread with that.

On Thu, Jul 11, 2019 at 1:10 AM <fridau...@gmail.com> wrote:
since it seemed to be a syntax error in the script, I simply added the parantheses, then instead received these messages 


error2.PNG



--
You received this message because you are subscribed to the Google Groups "Sound Mapping Tools Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to soundmappingto...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
--

fridau...@gmail.com

unread,
Jul 11, 2019, 3:34:46 AM7/11/19
to Sound Mapping Tools Users Group
I missed your respons! Anyway, I just realized the Python versions :) So I'm trying ArcMap now (which has the Python version 2.7, instead of ArcGIS Pro's 3), if it does not work, I'll see if I can get an earlier version of ArcMap.... it is a bit annoying where  I work, because we are not admins and cannot install anything without permission and stuff. 


I will follow your advices and see if it works better! 
I'm in Sweden. I also realized that all data should be in UTM! So will change that too. 

Frida 

Lillviking

unread,
Jul 11, 2019, 5:41:10 AM7/11/19
to Sound Mapping Tools Users Group
Okay, so I run it in ArcMap 10.7... and I guess the version of ArcMap is really a problem. I get error messages there too. 

Namnlös bild.png

If you would have time to run the model for me that would be great :) (my study area is really small, since it is just a test before using larger amount of data). 
meanwhile I will see if it is possible to get the ArcMap 10.5 version at work somehow... 

thanks,
Frida




--
You received this message because you are subscribed to a topic in the Google Groups "Sound Mapping Tools Users Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/soundmappingtools/lMVFveW2fh0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to soundmappingto...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/soundmappingtools/90322404-56c5-4088-af01-43cfe697f578%40googlegroups.com.
source_data.zip

Lillviking

unread,
Jul 11, 2019, 9:05:21 AM7/11/19
to Sound Mapping Tools Users Group
Hi again,

found an old computer at work with ArcMap 10.5 (!). I tried running it, and again errors. 

help2.PNG
 :( I'm now using ArcMap 10.5 and it should have Python 2.7. Seems to be some issue related to numpy? 
Would be nice with a successful run. 

Cheers,
Frida 

Douglas Long

unread,
Jul 11, 2019, 9:24:17 AM7/11/19
to fridau...@gmail.com, Sound Mapping Tools Users Group
No worries. That last error you got is just saying your are not licensed for spatial analyst. You need to enable that in arcmap. 

--
You received this message because you are subscribed to the Google Groups "Sound Mapping Tools Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to soundmappingto...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
--

Laura Molles

unread,
Apr 5, 2021, 10:57:45 PM4/5/21
to Sound Mapping Tools Users Group
Hi, Everyone-

I am interested in using Sound Mapping Tools but only have access to ArcGIS Pro with Spatial Analyst. I also have 10.2 available but without the Spatial Analyst toolbox so am stuck on that front as well.

I found this thread relating to the testing error that comes up in ArcGIS Pro, but with the thread being 2 years old I wanted to see if anyone has developed a Python3 version since then?

Thanks in advance for any advice!

Cheers,
Laura
Reply all
Reply to author
Forward
0 new messages