Spatially Enabled Data Frame steps fail at the start

1622
6
11-02-2018 04:23 PM
Don_Barker
New Contributor III

I'm following the intro steps here:

https://developers.arcgis.com/python/guide/introduction-to-the-spatially-enabled-dataframe/

I hit a wall right at the start:

import pandas as pd
import arcgis
from arcgis.features import GeoAccessor, GeoSeriesAccessor

ImportError: cannot import name 'GeoAccessor'

I googled around and found no discussion of this. Can someone help?

Thanks.

Tags (2)
6 Replies
DanPatterson_Retired
MVP Emeritus

You are running 1.5??

import pandas as pd
import arcgis
from arcgis.features import GeoAccessor, GeoSeriesAccessor

dir(GeoAccessor)

['__class__',
 '__delattr__',
 '__dict__',
 '__dir__',

....snip....
DonBarker
Occasional Contributor

Thanks for this pointer.  And for your other post about how to upgrade to 1.5.  Totally missing from Esri documentation.

0 Kudos
DanPatterson_Retired
MVP Emeritus

conda install … esri want people to clone … and not to use -no-pin because they have only tested the capabilities at that time with certain modules.  I can report the upgrading many packages that are in the 'pinned' file has caused not problems in my install.  My installs have all be done in the original installation and not a clone, as have the upgrades.

If you are feeling queasy about what an install may do, you can always use

conda install blahblah --dry-run  # or
conda update blahblah --dry-run

It just shows you what 'would' occur during the process so you can check for yourself. prior to committing 

AndyFairbairn
Occasional Contributor

Yes, thanks for the Q and As - I was struggling with the same issue and wasn't clear on how to get up to 1.5, but this thread got me on the right path. For now I've gone down the clone route, and just updating that using package manager from within Pro on the basis that I don't yet fall into the "sortof know what you are doing" category, as Dan puts it in his blog post!

Cheers, 

A.

0 Kudos
DanPatterson_Retired
MVP Emeritus

Andy... more on cloning now that 2.3 is soon to be released

/blogs/dan_patterson/2018/12/28/clone 

AndyFairbairn
Occasional Contributor

Thanks Dan

0 Kudos