Python Blog - Page 3

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Latest Activity

(184 Posts)
DanPatterson
MVP Esteemed Contributor

I know... I know... too busy to do it, but when you do...

Read more...

more
0 0 779
AndresCastillo
MVP Regular Contributor


Esri Technical Support has an article with respect to running python scripts using the 'relative' path that contains the ArcCatalog connection name (i.e 'Database Connections/MyDatabaseName.sde/), outside of an ArcGIS Environment.
 
For example, running from Windows Command Prompt, or Task Scheduler.
 
 
FAQ: Why am I getting "Error 000732, < dataset name > does not exist or is not supported", in a script run outside the ArcGIS environment?
 
 
There is a caveat, in that:
1
as long as you specify the python installation that comes with the ArcGIS install
(C:\Python27\ArcGIS10.4\python.exe python), and
2
also the the sde connection file is stored in the 'Database Connections/MyDatabaseName.sde/ directory (aka the user profile in which the process will be run: C:\Users\<userName>\AppData\Roaming\Esri\Desktop10.4\ArcCatalog), the script will run.
 
This is because that python install is technically part of the ArcGIS Environment.

more
0 1 1,451
DanPatterson
MVP Esteemed Contributor

Breaking down barriers between neighbors... maybe life can learn something from geometry said the laughing man

 

 

Read more...

more
0 1 1,509
DanPatterson
MVP Esteemed Contributor

nothing is better than formatted code in your posts ...

Read more...

more
13 2 2,388
DanPatterson
MVP Esteemed Contributor

Densify polylines and polygon boundaries... FreeTools

Read more...

more
1 0 1,450
DanPatterson
MVP Esteemed Contributor

Why crank up ArcGIS Pro to see your Geometry... can't visualize it in your head? Python to the rescue...

Read more...

more
1 0 1,019
JoeBorgione
MVP Emeritus

Recently, I developed a problem in my ArcGIS Pro 2.6 clone environment and had to re-clone.  I then added Spyder 4.1.3 with conda to that env and was getting a strange error when using the Run button (green arrow) to run a script:

TypeError: handle_get_file_code() got an unexpected keyword argument 'save_all'

A quick google search presented a solution of :

conda install spyder=4.1.5

Which ironically I had already tried but anaconda choked telling me that it couldn't find the package in all the searched channels.

Bottom line, if you get that error, upgrade.  If the upgrade chokes, try it again later....

Read more...

more
0 1 806
DanPatterson
MVP Esteemed Contributor

Conda... In short, stuff depends on other stuff... mess with the stuff and your python environment will suffer.

Read more...

more
2 1 1,392
DanPatterson
MVP Esteemed Contributor

The new cool.  Everyone wants them.  Here is another option for deploying/using notebooks.

Read more...

more
0 0 1,073
DanPatterson
MVP Esteemed Contributor

Matplotlib is useful for more than graphs.  You can plot geometry as well... a brief introduction.

Read more...

more
1 0 2,036
189 Subscribers
Labels