POST
|
address_sum = 0
with arcpy.da.SearchCursor('AddressPtsFormatted' ["PLOC_"]) as cursor:
for r in cursor:
number = r[0]
address_sum += number returns the error: Traceback (most recent call last):File "<string>", line 1, in <module> TypeError: string indices must be integers The code runs in jupytr notebook (no, i wasn't adding up every address in my area because I am loopy on Friday afternoon, why would anyone find the sum of addresses)
... View more
07-17-2020
03:30 PM
|
0
|
11
|
1224
|
POST
|
"The issues all seems to be about package dependencies breaking and trying to figure out which ones broke and what versions are needed." And we install spyder using software that manages dependencies. And there was much rejoicing. yaaaaaaaay.
... View more
06-03-2020
11:43 AM
|
2
|
1
|
953
|
POST
|
Spyder was the IDE I was using when I got in to Python so I am fond of it. However, it has been a complete waste of my time for the better part of a year. VSCode + Jupyter notebook works for me. I do miss the variable explorer. There is something like it in VSCode but it is hard to read because of the color scheme. That is my only complaint. Unless you have some very specific need cut your losses.
... View more
06-03-2020
09:36 AM
|
0
|
1
|
640
|
POST
|
I stumbled on using da.Describe a few months ago and find it very useful. I am looking for more information about it and can't find any of the resources that explained it to me a few months ago. I am using arcpy.da.Describe(fc)["fields"] to do things and want to know what else i can put in ["???"] Describe—Data Access module | Documentation That SHOULD contain some examples. But everything i find using that page uses the old. arcpy.Describe()
... View more
05-13-2020
02:53 PM
|
0
|
2
|
2747
|
POST
|
Still can't install spyder 4.1+ on a cloned environment. I give up.
... View more
05-13-2020
01:14 PM
|
2
|
11
|
1225
|
POST
|
i think the project file was corrupted. I recreated the symbology and it was fine. If anyone needs a broken aprx to test memory leaks let me know
... View more
03-13-2020
05:17 PM
|
0
|
0
|
410
|
POST
|
I am trying to export a map of all of the GNIS points in Nevada. I did this on my home PC without issue. It was such an inconsequential task that the downloaded the dataset for the entire country. Home system uses the new AMD stuff, but nothing outrageous. This workstation has an 8 core processor, NVIDIA Quadro 1000 4GB, 32GB RAM. And it is not happy with exporting the map Since this screen shot, a few minutes ago, memory use above 8200 Here is what I am trying to do. 11x11 pdf, 300dpi, 30k points. Its really not a big ask.
... View more
03-13-2020
12:01 PM
|
0
|
1
|
2168
|
POST
|
I have a clean install of windows and am trying spyder again. The newest version of Anaconda navigator shows spyder 4.0.1. But it will not update to it. It fails because of some jupyter thing. I have tried doing it from conda in my environment and it fails with: (arcgispro-py3-spyder) C:\windows\system32>conda install spyder=4.0.1
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed
SpecsConfigurationConflictError: Requested specs conflict with configured specs.
requested specs:
- spyder=4.0.1
pinned specs:
- jupyter_client==5.3.1
Use 'conda config --show-sources' to look for 'pinned_specs' and 'track_features'
configuration parameters. Pinned specs may also be defined in the file
... View more
03-11-2020
05:01 PM
|
0
|
13
|
1225
|
POST
|
Hi Chad. I was going through this exact script and wanted to have it refresh data driven pages. Coincidentally, I stumbled on this post. This worked: ddp = mxd.dataDrivenPages #creates the object
ddp.refrech() (he worked where I work now and I am updating his script)
... View more
03-10-2020
02:42 PM
|
0
|
0
|
429
|
POST
|
I am experiencing something very similar. I copy parcels to 'memory', add fields using a dictionary that comes from a template feature class. Every text/string field comes out as 5000. edit: python 3
... View more
03-06-2020
04:33 PM
|
0
|
0
|
1404
|
POST
|
Update: I have uninstalled multiple times and tried to install at the user level. The same fopne() error pops up every time i import arcpy. I am going to have my computer reset and start again.
... View more
02-25-2020
11:46 AM
|
0
|
1
|
849
|
POST
|
Pro is fine. VSCode doesnt work. I tried pointing it to c:\Progra~1\ArcGIS\Pro\bin\Python\scripts\propy.bat with no luck. settings: { "python.pythonPath": "C:\\Progra~1\\ArcGIS\\Pro\\bin\\Python\\scripts\\propy.bat", "python.linting.pylintEnabled": true, "python.linting.enabled": true, "terminal.integrated.shell.windows": "C:\\windows\\System32\\cmd.exe", "python.condaPath": "C:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\Scripts\\conda.exe" } The most troubling one is not being able to right click to run the script with Pro. I am going to turn on the old computer and look around for pth files and some of the VSCode settings. Something weird is going on. I try to change environments in Pro from the one I made to try to install spyder 4, to the default. I restart Pro and it never changes. Also when I run propy.bat and check the executable path, it never goes back to the default one.
... View more
02-24-2020
01:10 PM
|
0
|
1
|
849
|
POST
|
Stand alone script fails (right click - run with ArcGIS Pro) import arcpy fails in VSCode (using the cloned environment) This was not a problem with my other computer. Any ideas on where to start? Clean install? this is the terminal output CP_FOPEN error: Permission denied CP_FOPEN error: Permission denied CP_FOPEN error: Permission denied CP_FOPEN error: Permission denied CP_FOPEN error: Permission denied ESRI_fopen() error: Permission denied CP_FOPEN error: Permission denied CP_FOPEN error: Permission denied ESRI_fopen() error: Permission denied CP_FOPEN error: Permission denied CP_FOPEN error: Permission denied ESRI_fopen() error: Permission denied CP_FOPEN error: Permission denied CP_FOPEN error: Permission denied ESRI_fopen() error: Permission denied CP_FOPEN error: Permission denied CP_FOPEN error: Permission denied ESRI_fopen() error: Permission denied CP_FOPEN error: Permission denied CP_FOPEN error: Permission denied ESRI_fopen() error: Permission denied CP_FOPEN error: Permission denied CP_FOPEN error: Permission denied ESRI_fopen() error: Permission denied CP_FOPEN error: Permission denied CP_FOPEN error: Permission denied ESRI_fopen() error: Permission denied
... View more
02-24-2020
11:09 AM
|
1
|
5
|
1091
|
POST
|
I had spyder 4 running before 2.5. Now I can't get it to work at all. I used to use the anaconda navigator to get it. I am about to give up and go back to VSCode and jupyter notebooks. I love Spyder's variable explorer but it is such a PITA to install and keep alive that I am starting to see it as not worth it.
... View more
02-13-2020
05:00 PM
|
0
|
15
|
953
|
POST
|
We are trying to overwrite a map image service on a federated server. Using the Overwrite web layer button in the Share pane, and choose the map image service. We don't create a tile cache. We can publish without issues to the hosting server for everything else. In ArcMap we can still overwrite map image services. I will need to reproduce the error to get you the exact output, but it creates the service definition and then fails to overwrite it. The service is stopped, and that's it. We have to delete the service to update it. Or stop it, overwrite the data, and restart it. Errors from Pro StatusMessage: Uploading service definition TestMapImageService 75 WebMapImageLayer Douglas County GIS Portal https://server /user name 2020-01-14 10:29:29 Status: Failed StatusMessage: Failed to publish web layer ErrorMessage: Failed to publish web layer from the hosting server: SEVERE Jan 14, 2020, 10:29:14 AM Failed to rename cache folder. Douglas/TestMapImageService.MapServer
... View more
01-14-2020
10:22 AM
|
0
|
0
|
1085
|
Title | Kudos | Posted |
---|---|---|
1 | 01-22-2021 05:07 PM | |
1 | 11-19-2020 12:24 PM | |
2 | 09-14-2020 04:43 PM | |
1 | 02-24-2020 11:09 AM | |
2 | 06-03-2020 11:43 AM |
Online Status |
Offline
|
Date Last Visited |
02-05-2021
12:05 AM
|