Select to view content in your preferred language

Permission Error

1829
11
08-18-2021 02:51 AM
HamzaM
by
New Contributor III

I am trying to publish my Object detection model but when i run this code to publish it 

 

 

model.save('Building_footprint_10epochs', publish=True)

 

 

i get this error

Capture.PNG

Capture.PNG

@JayantaPoddar @DanPatterson @jcarlson @Tim_McGinnes @JoeBorgione @TimOrmsby @ShaunWalbridge @lamyaaghadiry1 

Tags (3)
0 Kudos
11 Replies
by Anonymous User
Not applicable

Did you login to ArcGIS online account before publishing the .dlpk ?

 

from arcgis.gis import GIS
gis = GIS("https://portalname.domain.com/webadapter_name", "sharinguser", "password")

 

 

Once you execute the above command, this account will be used by the {model}.save method to publish the model.



Guide page here https://developers.arcgis.com/python/guide/working-with-different-authentication-schemes/

0 Kudos
HamzaM
by
New Contributor III

Yes, I did.

I used my organization portal url then entered my username and password

0 Kudos