POST
|
This is what I get: >>> locals().keys()
['__builtins__', '__name__', '__doc__', '__package__'] I'm running the script from a file called Test2.py. I usually just save it and hit F5 to run it. But then it will allow me to access those variables that were set in the file. Obviously they aren't getting established in this script. I have other scripts that are working, but they aren't using the arcpy.Geocodeaddresses_geocoding() command. I've had this problem with geocoding for several months, potentially correlated with upgrading to 10.5.1.
... View more
12-18-2018
10:28 AM
|
0
|
1
|
560
|
POST
|
(Many thanks for taking a look at this. I didn't know how to add code, thanks for the tip) I can see what you're saying, but I don't think that's what's happening. When I run this code below: import arcpy
from arcpy import env
env.workspace = "C:\\Users\\pddnh\\Documents\\ArcGIS\\LERMS.gdb"
featureDatasetPath = "C:\\Users\\pddnh\\Documents\\ArcGIS\\LERMS.gdb\\FeatureDataset"
filePath = "C:\\Users\\pddnh\\Documents\\ArcGIS\\"
address_table = filePath+"test_data.csv"
address_locator = filePath+"Madison Locator.loc"
geocode_result = "geocode_result"
print "Attempting to geocode..."
arcpy.GeocodeAddresses_geocoding(address_table, address_locator, "Street Address;City City;NONE NONE;Zip Zip", geocode_result, "STATIC")
print "Geocoding complete" I get the following output: I just noticed that the shell doesn't even recognize my variable filePath. But as you can see, it outputs "Attempting to geocode..." then there is a space and it ends with no error message.
... View more
12-18-2018
09:54 AM
|
0
|
3
|
560
|
POST
|
import arcpy path = "C:\\Users\\pddnh\\Documents\\ArcGIS\\" address_table = path+"test_data.csv" address_locator = path+"Madison Locator.loc" geocode_result = "geocode_result" print "Attempting to geocode..." arcpy.GeocodeAddresses_geocoding(address_table, address_locator, "Street Address;City City;NONE NONE;Zip Zip", geocode_result, "STATIC") print "Geocoding complete"
... View more
12-17-2018
02:46 PM
|
0
|
5
|
560
|
POST
|
I may have a similar problem. I'm also in Arc 10.5.1. When I try to run the geocode command, the script ends. Everything worked as expected up until that point, then it just ends/aborts. There is no error message. When it ends, it would seem to have completed the script successfully, however, I find that it failed to geocode my address table. I can't even use a Try...Except to catch it. @ I'm used to get error messages. I'm not used to this. It's hard to figure out the problem.
... View more
12-17-2018
12:21 PM
|
0
|
7
|
560
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|