Select to view content in your preferred language

Error on code that was working three weeks ago: (gis.content.get(item_id)).layers[0] ("module 'arcgis.layers' has no attribute '_ogc' ")

145
1
Jump to solution
Monday
MaryGraceMcClellan
Regular Contributor

I am calling in a layer from an item ID by using the arcgis module "layers". If I just pull in the item using gis.content.get(item_id), the item shows up fine. When I try to get to the layers though, I get the error module 'arcgis.layers' has no attribute '_ogc' . This was working for a long time, and is my go-to method for referencing in an AGOL item in a script. Any input is appreciated! 

0 Kudos
1 Solution

Accepted Solutions
MaryGraceMcClellan
Regular Contributor

I figured it out, but for reference I just had to upgrade the module. 

pip install arcgis --upgrade

 

View solution in original post

0 Kudos
1 Reply
MaryGraceMcClellan
Regular Contributor

I figured it out, but for reference I just had to upgrade the module. 

pip install arcgis --upgrade

 

0 Kudos