Re: Python bug in ArcGIS - Urban Network analysis tool

2018-07-31 Thread Станимира Николова
понеделник, 30 юли 2018 г., 15:19:43 UTC+3, Andrew MacIntyre написа:
> On 30/07/2018 4:02 PM, Станимира Николова wrote:
> 
> > I run Urban network analysis but It shows similar mistake several 
> > times. The UNA tool is free plugin that i downloaded, it's not from the 
> > default intalled in ArcGIS packed. It ask for integer data.
> > I checked the type of the attributes, it's all integer. PLus it's all 
> > in geo data based file.
> >
> > Unfortunately I don't understand Python, I'm one of those who use 
> > ArcGIS as sample customer.
> >
> > This is the mistake:
> >
> > Start Time: Fri Jul 27 14:48:32 2018
> > Running script Centrality...
> > [started] Copying input buildings
> > [finished]
> > [1 started] Computing adjacency list
> > [1 failed]
> > Not successful
> > Completed script Centrality...
> > Succeeded at Fri Jul 27 14:48:36 2018 (Elapsed Time: 4,56 seconds)
> >
> > Any suggestions? How it's calling these adjaency list? What could be 
> > wrong? I even don't know how to get debugger, so it could give me more 
> > information.
> 
> If it's a third party plugin, contact the author or source.  This 
> mailing list sees very little traffic about ArcGIS usage as it is a 
> highly specialised commercial product.
> 
> > I add in a project the .py file for the adjacency list.
> > 
> > That's the main from the debuger:
> > 
> > pydev debugger: process 8904 is connecting
> > 
> > Connected to pydev debugger (build 182.3684.100)
> > Traceback (most recent call last):
> >File "C:\Program Files\JetBrains\PyCharm 
> > 2018.2\helpers\pydev\pydevd.py", line 1664, in 
> >  main()
> >File "C:\Program Files\JetBrains\PyCharm 
> > 2018.2\helpers\pydev\pydevd.py", line 1658, in main
> >  globals = debugger.run(setup['file'], None, None, is_module)
> >File "C:\Program Files\JetBrains\PyCharm 
> > 2018.2\helpers\pydev\pydevd.py", line 1068, in run
> >  pydev_imports.execfile(file, globals, locals)  # execute the script
> >File "C:\Program Files\JetBrains\PyCharm 
> > 2018.2\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
> >  exec(compile(contents+"\n", file, 'exec'), glob, loc)
> >File "D:/INSTALL/Urban Network Analysis Toolbox 
> > 1.01/src/Centrality/Adjacency_List_Computation.py", line 14, in 
> >  from arcpy import AddField_management
> > ModuleNotFoundError: No module named 'arcpy'
> > 
> > May I found the following lines from the code?
> 
> Is it documented that the file you've attempted to run via PyCharm 
> actually supports being run from outside ArcGIS?  Most plugins don't 
> seem to be...  This failure is because PyCharm isn't starting the script 
> with the necessary environment (including the arcpy ArcGIS Python 
> module) accessible.
> 
> The fact that it starts running from within ArcGIS and produces some 
> status messages before bailing out with the failure message strongly 
> suggests to me that the plugin is working properly but the input given 
> is not sufficient to produce the expected output.  In the absence of 
> sufficient documentation for you to figure out the required input, my 
> advice above stands: contact the author or the download source.
> 
> If you or your organisation has a current ArcGIS maintenance agreement, 
> you might also be able to access the community forums that ESRI run to 
> ask for more info about this plugin.
> 
> -- 
> -
> Andrew I MacIntyre "These thoughts are mine alone..."
> E-mail: andy...@bullseye.apana.org.au  (pref) | Snail: PO Box 370
>  andy...@pcug.org.au (alt) |Belconnen ACT 2616
> Web:http://www.andymac.org/   |Australia

Hi Andrew,
Thanks for your reply.

I managed to resolve the problem.

It seems that just the plugin doesn't found the python paths of it's 
environments and libraries. As I understood the adj. list is "calling" for 
functions in the other python files of the plugin (plus functions from ArcGIS).

What I've done (me and one IT specialist, actually):
 - Found the pythonpath of the module arcpy in the folder of default installed 
ArcGIS
 - Copied the pythonpath file, for the connection with module arcpy, in the 
folder with scripts of the plugin (UNA tool)
 - opened Python 3.7 and called for arcpy of the plugin. There we saw the paths 
of all enviroments that might use the plugin. The path to the arcpy appeared.

After that I got few mistakes of the input data, because I had to make unique 
ID of all the data points in the folder.

And tadamm … it works. 

Thanks for all the suggestions.
Mira.
-- 
https://mail.python.org/mailman/listinfo/python-list


RE: Python bug in ArcGIS - Urban Network analysis tool

2018-07-30 Thread David Raymond
A note that Arc may have installed its own version of Python, which it is using 
from within its own tools. For example, I've got a full Python installation in 
C:\Python27\ArcGIS10.2 which Arc installed on top of a preexisting installation 
in C:\Python27. So you may need to explicitly run it with that version to get 
it to work and to import arcpy ok.

ie instead of just running...

pydevd.py

or...

python pydevd.py

You might need to explicitly do...

C:\Python27\ArcGIS10.2\python.exe pydevd.py

...or the equivalent of wherever it installed it on your system.


-Original Message-
From: Python-list 
[mailto:python-list-bounces+david.raymond=tomtom@python.org] On Behalf Of 
? 
Sent: Monday, July 30, 2018 2:03 AM
To: python-list@python.org
Subject: Re: Python bug in ArcGIS - Urban Network analysis tool

понеделник, 30 юли 2018 г., 3:29:44 UTC+3, MRAB написа:
> On 2018-07-29 22:00, Станимира Николова wrote:
> > неделя, 29 юли 2018 г., 23:41:01 UTC+3, MRAB написа:
> >> On 2018-07-29 18:56, stanimira.s...@gmail.com wrote:
> >> > Hi there,
> >> > 
> >> > I'm trying make reach analyze with Urban network analysis (UNA) tool in 
> >> > ArcGIS. It's based on points for buildings and pedestrian network of 
> >> > acceptability steets. The aim is to show how many people from each 
> >> > building can reach different building in radius of 150 meters (so i can 
> >> > find the density of the pedestrian routes).
> >> > 
> >> > I run Urban network analysis but It shows similar mistake several times. 
> >> > The UNA tool is free plugin that i downloaded, it's not from the default 
> >> > intalled in ArcGIS packed. It ask for integer data.
> >> > I checked the type of the attributes, it's all integer. PLus it's all in 
> >> > geo data based file.
> >> > 
> >> > Unfortunately I don't understand Python, I'm one of those who use ArcGIS 
> >> > as sample customer.
> >> > 
> >> > This is the mistake:
> >> > 
> >> > Start Time: Fri Jul 27 14:48:32 2018
> >> > Running script Centrality...
> >> > [started] Copying input buildings
> >> > [finished]
> >> > [1 started] Computing adjacency list
> >> > [1 failed]
> >> > Not successful
> >> > Completed script Centrality...
> >> > Succeeded at Fri Jul 27 14:48:36 2018 (Elapsed Time: 4,56 seconds)
> >> > 
> >> > Any suggestions? How it's calling these adjaency list? What could be 
> >> > wrong? I even don't know how to get debugger, so it could give me more 
> >> > information.
> >> > 
> >> > Thank you previously,
> >> > Mira
> >> > 
> >> All you've shown is that says that it was unsuccessful, and it doesn't 
> >> say why.
> >> 
> >> We'd need a lot more info than that!
> >> 
> >> The best way to debug it is to try it with the minimal amount of test 
> >> data that should give a result.
> > 
> > I'm sorry.
> > Could someone help me by telling me how to make these test data? (so i 
> > could send it to You)
> > 
> > I realize the review of the bug is just the customer view. Any chance to 
> > help me out with the test of the process?
> > 
> > Thank you previously. If there is another forum that i have to write to, i 
> > will switch. The fact is that in the Themes for UNA tool or GIS software, 
> > almost no one respond.
> > 
> I'm unfamiliar with ArcGIS, so I doubt I could help.
> 
> It might have generated a log file somewhere that gives more details.

Ok, thank you for the patiance.
I installed PyCharm for trying make some tests. 

I add in a project the .py file for the adjacency list.

That's the main from the debuger:

pydev debugger: process 8904 is connecting

Connected to pydev debugger (build 182.3684.100)
Traceback (most recent call last):
  File "C:\Program Files\JetBrains\PyCharm 2018.2\helpers\pydev\pydevd.py", 
line 1664, in 
main()
  File "C:\Program Files\JetBrains\PyCharm 2018.2\helpers\pydev\pydevd.py", 
line 1658, in main
globals = debugger.run(setup['file'], None, None, is_module)
  File "C:\Program Files\JetBrains\PyCharm 2018.2\helpers\pydev\pydevd.py", 
line 1068, in run
pydev_imports.execfile(file, globals, locals)  # execute the script
  File "C:\Program Files\JetBrains\PyCharm 
2018.2\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
  File "D:/INSTALL/Urban Network Analysis Toolbox 
1.01/src/Centrality/Adjacency_List_Computation.py", line 14, in 
from arcpy import AddField_management
ModuleNotFoundError: No module named 'arcpy'

May I found the following lines from the code?
-- 
https://mail.python.org/mailman/listinfo/python-list
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python bug in ArcGIS - Urban Network analysis tool

2018-07-30 Thread Andrew MacIntyre



On 30/07/2018 4:02 PM, Станимира Николова wrote:


I run Urban network analysis but It shows similar mistake several times. The 
UNA tool is free plugin that i downloaded, it's not from the default intalled 
in ArcGIS packed. It ask for integer data.
I checked the type of the attributes, it's all integer. PLus it's all in geo 
data based file.

Unfortunately I don't understand Python, I'm one of those who use ArcGIS as 
sample customer.

This is the mistake:

Start Time: Fri Jul 27 14:48:32 2018
Running script Centrality...
[started] Copying input buildings
[finished]
[1 started] Computing adjacency list
[1 failed]
Not successful
Completed script Centrality...
Succeeded at Fri Jul 27 14:48:36 2018 (Elapsed Time: 4,56 seconds)

Any suggestions? How it's calling these adjaency list? What could be wrong? I 
even don't know how to get debugger, so it could give me more information.


If it's a third party plugin, contact the author or source.  This 
mailing list sees very little traffic about ArcGIS usage as it is a 
highly specialised commercial product.



I add in a project the .py file for the adjacency list.

That's the main from the debuger:

pydev debugger: process 8904 is connecting

Connected to pydev debugger (build 182.3684.100)
Traceback (most recent call last):
   File "C:\Program Files\JetBrains\PyCharm 2018.2\helpers\pydev\pydevd.py", line 
1664, in 
 main()
   File "C:\Program Files\JetBrains\PyCharm 2018.2\helpers\pydev\pydevd.py", 
line 1658, in main
 globals = debugger.run(setup['file'], None, None, is_module)
   File "C:\Program Files\JetBrains\PyCharm 2018.2\helpers\pydev\pydevd.py", 
line 1068, in run
 pydev_imports.execfile(file, globals, locals)  # execute the script
   File "C:\Program Files\JetBrains\PyCharm 
2018.2\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
 exec(compile(contents+"\n", file, 'exec'), glob, loc)
   File "D:/INSTALL/Urban Network Analysis Toolbox 
1.01/src/Centrality/Adjacency_List_Computation.py", line 14, in 
 from arcpy import AddField_management
ModuleNotFoundError: No module named 'arcpy'

May I found the following lines from the code?


Is it documented that the file you've attempted to run via PyCharm 
actually supports being run from outside ArcGIS?  Most plugins don't 
seem to be...  This failure is because PyCharm isn't starting the script 
with the necessary environment (including the arcpy ArcGIS Python 
module) accessible.


The fact that it starts running from within ArcGIS and produces some 
status messages before bailing out with the failure message strongly 
suggests to me that the plugin is working properly but the input given 
is not sufficient to produce the expected output.  In the absence of 
sufficient documentation for you to figure out the required input, my 
advice above stands: contact the author or the download source.


If you or your organisation has a current ArcGIS maintenance agreement, 
you might also be able to access the community forums that ESRI run to 
ask for more info about this plugin.


--
-
Andrew I MacIntyre "These thoughts are mine alone..."
E-mail: andy...@bullseye.apana.org.au  (pref) | Snail: PO Box 370
andy...@pcug.org.au (alt) |Belconnen ACT 2616
Web:http://www.andymac.org/   |Australia
--
https://mail.python.org/mailman/listinfo/python-list


Re: Python bug in ArcGIS - Urban Network analysis tool

2018-07-29 Thread Станимира Николова
понеделник, 30 юли 2018 г., 3:29:44 UTC+3, MRAB написа:
> On 2018-07-29 22:00, Станимира Николова wrote:
> > неделя, 29 юли 2018 г., 23:41:01 UTC+3, MRAB написа:
> >> On 2018-07-29 18:56, stanimira.s...@gmail.com wrote:
> >> > Hi there,
> >> > 
> >> > I'm trying make reach analyze with Urban network analysis (UNA) tool in 
> >> > ArcGIS. It's based on points for buildings and pedestrian network of 
> >> > acceptability steets. The aim is to show how many people from each 
> >> > building can reach different building in radius of 150 meters (so i can 
> >> > find the density of the pedestrian routes).
> >> > 
> >> > I run Urban network analysis but It shows similar mistake several times. 
> >> > The UNA tool is free plugin that i downloaded, it's not from the default 
> >> > intalled in ArcGIS packed. It ask for integer data.
> >> > I checked the type of the attributes, it's all integer. PLus it's all in 
> >> > geo data based file.
> >> > 
> >> > Unfortunately I don't understand Python, I'm one of those who use ArcGIS 
> >> > as sample customer.
> >> > 
> >> > This is the mistake:
> >> > 
> >> > Start Time: Fri Jul 27 14:48:32 2018
> >> > Running script Centrality...
> >> > [started] Copying input buildings
> >> > [finished]
> >> > [1 started] Computing adjacency list
> >> > [1 failed]
> >> > Not successful
> >> > Completed script Centrality...
> >> > Succeeded at Fri Jul 27 14:48:36 2018 (Elapsed Time: 4,56 seconds)
> >> > 
> >> > Any suggestions? How it's calling these adjaency list? What could be 
> >> > wrong? I even don't know how to get debugger, so it could give me more 
> >> > information.
> >> > 
> >> > Thank you previously,
> >> > Mira
> >> > 
> >> All you've shown is that says that it was unsuccessful, and it doesn't 
> >> say why.
> >> 
> >> We'd need a lot more info than that!
> >> 
> >> The best way to debug it is to try it with the minimal amount of test 
> >> data that should give a result.
> > 
> > I'm sorry.
> > Could someone help me by telling me how to make these test data? (so i 
> > could send it to You)
> > 
> > I realize the review of the bug is just the customer view. Any chance to 
> > help me out with the test of the process?
> > 
> > Thank you previously. If there is another forum that i have to write to, i 
> > will switch. The fact is that in the Themes for UNA tool or GIS software, 
> > almost no one respond.
> > 
> I'm unfamiliar with ArcGIS, so I doubt I could help.
> 
> It might have generated a log file somewhere that gives more details.

Ok, thank you for the patiance.
I installed PyCharm for trying make some tests. 

I add in a project the .py file for the adjacency list.

That's the main from the debuger:

pydev debugger: process 8904 is connecting

Connected to pydev debugger (build 182.3684.100)
Traceback (most recent call last):
  File "C:\Program Files\JetBrains\PyCharm 2018.2\helpers\pydev\pydevd.py", 
line 1664, in 
main()
  File "C:\Program Files\JetBrains\PyCharm 2018.2\helpers\pydev\pydevd.py", 
line 1658, in main
globals = debugger.run(setup['file'], None, None, is_module)
  File "C:\Program Files\JetBrains\PyCharm 2018.2\helpers\pydev\pydevd.py", 
line 1068, in run
pydev_imports.execfile(file, globals, locals)  # execute the script
  File "C:\Program Files\JetBrains\PyCharm 
2018.2\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
  File "D:/INSTALL/Urban Network Analysis Toolbox 
1.01/src/Centrality/Adjacency_List_Computation.py", line 14, in 
from arcpy import AddField_management
ModuleNotFoundError: No module named 'arcpy'

May I found the following lines from the code?
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python bug in ArcGIS - Urban Network analysis tool

2018-07-29 Thread MRAB

On 2018-07-29 22:00, Станимира Николова wrote:

неделя, 29 юли 2018 г., 23:41:01 UTC+3, MRAB написа:

On 2018-07-29 18:56, stanimira.s...@gmail.com wrote:
> Hi there,
> 
> I'm trying make reach analyze with Urban network analysis (UNA) tool in ArcGIS. It's based on points for buildings and pedestrian network of acceptability steets. The aim is to show how many people from each building can reach different building in radius of 150 meters (so i can find the density of the pedestrian routes).
> 
> I run Urban network analysis but It shows similar mistake several times. The UNA tool is free plugin that i downloaded, it's not from the default intalled in ArcGIS packed. It ask for integer data.

> I checked the type of the attributes, it's all integer. PLus it's all in geo 
data based file.
> 
> Unfortunately I don't understand Python, I'm one of those who use ArcGIS as sample customer.
> 
> This is the mistake:
> 
> Start Time: Fri Jul 27 14:48:32 2018

> Running script Centrality...
> [started] Copying input buildings
> [finished]
> [1 started] Computing adjacency list
> [1 failed]
> Not successful
> Completed script Centrality...
> Succeeded at Fri Jul 27 14:48:36 2018 (Elapsed Time: 4,56 seconds)
> 
> Any suggestions? How it's calling these adjaency list? What could be wrong? I even don't know how to get debugger, so it could give me more information.
> 
> Thank you previously,

> Mira
> 
All you've shown is that says that it was unsuccessful, and it doesn't 
say why.


We'd need a lot more info than that!

The best way to debug it is to try it with the minimal amount of test 
data that should give a result.


I'm sorry.
Could someone help me by telling me how to make these test data? (so i could 
send it to You)

I realize the review of the bug is just the customer view. Any chance to help 
me out with the test of the process?

Thank you previously. If there is another forum that i have to write to, i will 
switch. The fact is that in the Themes for UNA tool or GIS software, almost no 
one respond.


I'm unfamiliar with ArcGIS, so I doubt I could help.

It might have generated a log file somewhere that gives more details.
--
https://mail.python.org/mailman/listinfo/python-list


Re: Python bug in ArcGIS - Urban Network analysis tool

2018-07-29 Thread Станимира Николова
неделя, 29 юли 2018 г., 23:41:01 UTC+3, MRAB написа:
> On 2018-07-29 18:56, stanimira.s...@gmail.com wrote:
> > Hi there,
> > 
> > I'm trying make reach analyze with Urban network analysis (UNA) tool in 
> > ArcGIS. It's based on points for buildings and pedestrian network of 
> > acceptability steets. The aim is to show how many people from each building 
> > can reach different building in radius of 150 meters (so i can find the 
> > density of the pedestrian routes).
> > 
> > I run Urban network analysis but It shows similar mistake several times. 
> > The UNA tool is free plugin that i downloaded, it's not from the default 
> > intalled in ArcGIS packed. It ask for integer data.
> > I checked the type of the attributes, it's all integer. PLus it's all in 
> > geo data based file.
> > 
> > Unfortunately I don't understand Python, I'm one of those who use ArcGIS as 
> > sample customer.
> > 
> > This is the mistake:
> > 
> > Start Time: Fri Jul 27 14:48:32 2018
> > Running script Centrality...
> > [started] Copying input buildings
> > [finished]
> > [1 started] Computing adjacency list
> > [1 failed]
> > Not successful
> > Completed script Centrality...
> > Succeeded at Fri Jul 27 14:48:36 2018 (Elapsed Time: 4,56 seconds)
> > 
> > Any suggestions? How it's calling these adjaency list? What could be wrong? 
> > I even don't know how to get debugger, so it could give me more information.
> > 
> > Thank you previously,
> > Mira
> > 
> All you've shown is that says that it was unsuccessful, and it doesn't 
> say why.
> 
> We'd need a lot more info than that!
> 
> The best way to debug it is to try it with the minimal amount of test 
> data that should give a result.

I'm sorry. 
Could someone help me by telling me how to make these test data? (so i could 
send it to You)

I realize the review of the bug is just the customer view. Any chance to help 
me out with the test of the process? 

Thank you previously. If there is another forum that i have to write to, i will 
switch. The fact is that in the Themes for UNA tool or GIS software, almost no 
one respond.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python bug in ArcGIS - Urban Network analysis tool

2018-07-29 Thread MRAB

On 2018-07-29 18:56, stanimira.s...@gmail.com wrote:

Hi there,

I'm trying make reach analyze with Urban network analysis (UNA) tool in ArcGIS. 
It's based on points for buildings and pedestrian network of acceptability 
steets. The aim is to show how many people from each building can reach 
different building in radius of 150 meters (so i can find the density of the 
pedestrian routes).

I run Urban network analysis but It shows similar mistake several times. The 
UNA tool is free plugin that i downloaded, it's not from the default intalled 
in ArcGIS packed. It ask for integer data.
I checked the type of the attributes, it's all integer. PLus it's all in geo 
data based file.

Unfortunately I don't understand Python, I'm one of those who use ArcGIS as 
sample customer.

This is the mistake:

Start Time: Fri Jul 27 14:48:32 2018
Running script Centrality...
[started] Copying input buildings
[finished]
[1 started] Computing adjacency list
[1 failed]
Not successful
Completed script Centrality...
Succeeded at Fri Jul 27 14:48:36 2018 (Elapsed Time: 4,56 seconds)

Any suggestions? How it's calling these adjaency list? What could be wrong? I 
even don't know how to get debugger, so it could give me more information.

Thank you previously,
Mira

All you've shown is that says that it was unsuccessful, and it doesn't 
say why.


We'd need a lot more info than that!

The best way to debug it is to try it with the minimal amount of test 
data that should give a result.

--
https://mail.python.org/mailman/listinfo/python-list


Python bug in ArcGIS - Urban Network analysis tool

2018-07-29 Thread stanimira . s . 93
Hi there,

I'm trying make reach analyze with Urban network analysis (UNA) tool in ArcGIS. 
It's based on points for buildings and pedestrian network of acceptability 
steets. The aim is to show how many people from each building can reach 
different building in radius of 150 meters (so i can find the density of the 
pedestrian routes). 

I run Urban network analysis but It shows similar mistake several times. The 
UNA tool is free plugin that i downloaded, it's not from the default intalled 
in ArcGIS packed. It ask for integer data.
I checked the type of the attributes, it's all integer. PLus it's all in geo 
data based file.

Unfortunately I don't understand Python, I'm one of those who use ArcGIS as 
sample customer. 

This is the mistake:

Start Time: Fri Jul 27 14:48:32 2018
Running script Centrality...
[started] Copying input buildings
[finished]
[1 started] Computing adjacency list
[1 failed] 
Not successful
Completed script Centrality...
Succeeded at Fri Jul 27 14:48:36 2018 (Elapsed Time: 4,56 seconds)

Any suggestions? How it's calling these adjaency list? What could be wrong? I 
even don't know how to get debugger, so it could give me more information.

Thank you previously,
Mira

-- 
https://mail.python.org/mailman/listinfo/python-list