I am using the Python API version 1.3 (I double checked) and get the following error when trying to create a Server object.
import arcgis
testServer = arcgis.gis.server.Server('myserverurl', username='myusername', password='safepassword')
AttributeError: module 'arcgis.gis' has no attribute 'server'
Is this not how you are supposed to use it?
Solved! Go to Solution.
Not sure why my original didn't work but if I call it like below it works.
from arcgis import gis
testServer = gis.server.Server(args)
Not sure why my original didn't work but if I call it like below it works.
from arcgis import gis
testServer = gis.server.Server(args)
The only way I could get it to work is below and is infuriating to me. The docs for this module are pretty sub par in light of how much esri is pushing it.
from arcgis.gis import server
site = server.Server()