|
POST
|
Need to use SimpleApp. Here's a blog post that references Mark Cederholm's findings as presented at the Developer Summit.
... View more
08-02-2012
08:49 AM
|
0
|
0
|
1444
|
|
POST
|
Did you accidentally do something like arcpy.env = 'string' earlier in your script?
... View more
07-30-2012
10:28 AM
|
0
|
0
|
1110
|
|
POST
|
arcpy does not work threaded. It is not a bug, it is a longstanding architecture issue. Please investigate using multiprocessing or some other non-threaded concurrency model for doing parallel processing.
... View more
07-30-2012
01:10 AM
|
0
|
0
|
792
|
|
POST
|
Try using os.startfile(output+"/ClimateMap.png") instead.
... View more
07-25-2012
01:02 PM
|
0
|
0
|
676
|
|
POST
|
Also get rid of the plt.show() and see if that helps.
... View more
07-24-2012
01:37 PM
|
0
|
0
|
676
|
|
POST
|
The mapping module isn't what you want for your script tool if you're outputting new data to the current map. You'll want to add an output parameter of type raster layer or raster dataset into your script. Then it will add itself to the table of contents once it's done. arcpy.mapping.MapDocument("current") only works from within ArcMap. That means that child process can't get to it either. If for some reason you really need to edit an MXD out of process and add things to it, then os.startfile is what you'll want. os.startfile(filename) will behave in the same way as if you'd double clicked the file in Windows Explorer. I'm still not entirely sure as to what you are trying to accomplish. I think an output parameter is all you need here.
... View more
07-19-2012
05:08 PM
|
0
|
0
|
841
|
|
POST
|
I don't think they're messed up per se, I just think they might be incompatible, period. You may need to reinstall. Try gettig the libraries you want from this site instead. (http://www.lfd.uci.edu/~gohlke/pythonlibs/)
... View more
07-18-2012
06:14 PM
|
0
|
0
|
746
|
|
POST
|
What's the error message it's returning? Have you tried it without the workspace tweaking? for dirPath, dirNames, fileNames in os.walk(rootDir):#, topdown=False):
for file in fileNames:
if fnmatch.fnmatch(file, "*100110.shp"):
shpname = os.path.join(dirPath, file)
arcpy.Buffer_analysis(shpname, r"FILEPATHGOESHERE", 1000)
... View more
07-11-2012
03:40 PM
|
0
|
0
|
1230
|
|
POST
|
A common issue I see is that the PYDs are compiled with a manifest and expect a certain version of the Visual Studio C Runtime (MSVC*.dll) to be loaded in memory, and a different version is loaded in ArcMap.exe so it fails to load. The workaround is to find a build without a manifest in the PYD or rebuild the library yourself doing the same.
... View more
07-11-2012
11:48 AM
|
0
|
0
|
746
|
|
POST
|
Unfortunately, I'm not super knowledgeable about the state of Python HTTP on Windows. However, you may find luck with gevent's WSGI server (example) as it uses greenlets in an event loop instead of threaded workers.
... View more
07-10-2012
01:21 PM
|
0
|
0
|
1209
|
|
POST
|
Make sure the server you're using (whether it's the built-in CherryPy one or whatever standard WSGI server you're using) isn't threaded.
... View more
07-09-2012
04:07 PM
|
0
|
0
|
1209
|
|
POST
|
Null values used to behave somewhat inconsistently; now they are correctly treated as the python value None across the system. You can do something like if value is None now in places to test if a value is Null in the table.
... View more
07-03-2012
12:34 PM
|
0
|
0
|
1282
|
|
POST
|
Expression = classify(!ID_Province!, !ID_Trail!, !ProjSection!) And def classify(prov, trail, section): if section: return prov + "-" + trail else: return prov + "-" + trail + (str(section) if section else '')
... View more
07-03-2012
11:14 AM
|
0
|
0
|
1282
|
|
POST
|
Did you edit any of the arcpy source files? ARe you sure you're using the right version of Python? You may need to reinstall.
... View more
07-02-2012
11:50 PM
|
0
|
0
|
1771
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-26-2012 02:46 AM | |
| 2 | 01-06-2011 08:22 AM | |
| 1 | 03-25-2014 12:18 PM | |
| 1 | 08-12-2014 09:36 AM | |
| 1 | 03-31-2010 08:56 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:22 AM
|