Python Blog

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

Other Boards in This Place

Latest Activity

(165 Posts)
DanPatterson
MVP Honored Contributor

Got a tricky problem... watch closely

Read more...

more
0 0 65
DanPatterson
MVP Honored Contributor

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

Read more...

more
0 0 140
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 517
DanPatterson
MVP Honored Contributor

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

 

 

Read more...

more
0 1 395
DanPatterson
MVP Honored Contributor

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

Read more...

more
7 1 557
DanPatterson
MVP Honored Contributor

Densify polylines and polygon boundaries... FreeTools

Read more...

more
0 0 416
DanPatterson
MVP Honored Contributor

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

Read more...

more
0 0 416
JoeBorgione
MVP Esteemed Contributor

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 380
DanPatterson
MVP Honored Contributor

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

Read more...

more
2 1 555
DanPatterson
MVP Honored Contributor

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

Read more...

more
0 0 461
Labels