<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Is anyone else having trouble of importing arcgis.gis.server module? in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/is-anyone-else-having-trouble-of-importing-arcgis/m-p/783905#M1314</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;from arcgis.gis import server
url = r"https://&amp;lt;server&amp;gt;.&amp;lt;domain&amp;gt;.org:6443/arcgis/admin/
site = server.Server(url,username="&amp;lt;usr&amp;gt;",password="&amp;lt;pw&amp;gt;")
srvdir = site.content
#Will return a MapImage layer
queries = srvdir.get("&amp;lt;name&amp;gt;",folder="&amp;lt;folder&amp;gt;")

srvdir = server.ServicesDirectory(url,username="&amp;lt;usr&amp;gt;",password="&amp;lt;pw&amp;gt;")
#returns error
srvdir.get("&amp;lt;name&amp;gt;",folder="&amp;lt;folder&amp;gt;")&lt;CODE&gt;
&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;.&lt;/SPAN&gt;
KeyError&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;:&lt;/SPAN&gt; &lt;SPAN class="" style="color: #669900; border: 0px; font-weight: inherit; font-size: 14px;"&gt;'folders'&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suppose i'll try to upgrade to 1.4...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 08:56:06 GMT</pubDate>
    <dc:creator>PhilLarkin1</dc:creator>
    <dc:date>2021-12-12T08:56:06Z</dc:date>
    <item>
      <title>Is anyone else having trouble of importing arcgis.gis.server module?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/is-anyone-else-having-trouble-of-importing-arcgis/m-p/783894#M1303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Following the &lt;A href="https://esri.github.io/arcgis-python-api/apidoc/html/arcgis.gis.toc.html#submodules"&gt;1.3 documentation&lt;/A&gt;, there is a arcgis.gis.server submodule&amp;nbsp;nested under arcgis.gis.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However when I try use it, I get an error saying "`arcgis.gis` has no attribute `server`". Souce code as shown below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; import arcgis&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; arcgis.gis.server.Server(args)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And as suggested in this &lt;A _jive_internal="true" href="https://community.esri.com/message/742789-how-do-i-get-to-the-server-object"&gt;post&lt;/A&gt;, I tried with importing arcgis.gis. But same error occured.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; from arcgis importgis&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; gis.server.Server(args)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Feb 2018 03:26:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/is-anyone-else-having-trouble-of-importing-arcgis/m-p/783894#M1303</guid>
      <dc:creator>SpencerHan1</dc:creator>
      <dc:date>2018-02-11T03:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Is anyone else having trouble of importing arcgis.gis.server module?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/is-anyone-else-having-trouble-of-importing-arcgis/m-p/783895#M1304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It has to do with Esri's goofy imports within the &lt;SPAN style="font-family: courier\ new, courier, monospace;"&gt;arcgis&lt;/SPAN&gt; modules.&amp;nbsp; Try:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;gis &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; server
server&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Server&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:56:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/is-anyone-else-having-trouble-of-importing-arcgis/m-p/783895#M1304</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2021-12-12T08:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: Is anyone else having trouble of importing arcgis.gis.server module?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/is-anyone-else-having-trouble-of-importing-arcgis/m-p/783896#M1305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, seems to be working.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Feb 2018 20:17:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/is-anyone-else-having-trouble-of-importing-arcgis/m-p/783896#M1305</guid>
      <dc:creator>SpencerHan1</dc:creator>
      <dc:date>2018-02-11T20:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Is anyone else having trouble of importing arcgis.gis.server module?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/is-anyone-else-having-trouble-of-importing-arcgis/m-p/783897#M1306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Spencer and Joshua,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your comment/reply on using the Server class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the best way to access your server:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gis = GIS(url="&lt;A href="https://achap.esri.com/portal"&gt;https://mysite.com/portal&lt;/A&gt;", username='*****')&lt;BR /&gt;servers = gis.admin.servers.list()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2018 10:28:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/is-anyone-else-having-trouble-of-importing-arcgis/m-p/783897#M1306</guid>
      <dc:creator>AndrewChapkowski</dc:creator>
      <dc:date>2018-03-28T10:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: Is anyone else having trouble of importing arcgis.gis.server module?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/is-anyone-else-having-trouble-of-importing-arcgis/m-p/783898#M1307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Andrew, the OP never stated whether the desired connection was to a federated or unfederated server, my guess is the latter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/python/guide/release-notes/" title="https://developers.arcgis.com/python/guide/release-notes/"&gt;What's new in version 1.3 | ArcGIS for Developers&lt;/A&gt; states:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;H1 style="font-weight: 300; font-style: normal; margin: 0px 0px 1.55rem; font-size: 2.40307rem; line-height: 3.1rem; color: #4c4c4c; font-family: 'Avenir Next W01', 'Avenir Next W00', 'Avenir Next', Avenir, 'Helvetica Neue', sans-serif; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;What's new in version 1.3&lt;/H1&gt;&lt;H4 style="font-weight: 300; font-style: normal; margin: 0px 0px 1.55rem; font-size: 1.414rem; line-height: 1.55rem; color: #4c4c4c; font-family: 'Avenir Next W01', 'Avenir Next W00', 'Avenir Next', Avenir, 'Helvetica Neue', sans-serif; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;New&lt;/H4&gt;&lt;UL style="margin-top: 0px; margin-bottom: 1.55rem; padding: 0px; list-style-position: inside; margin-left: 0.775rem; font-size: 0.9375rem; line-height: 1.55rem; color: #4c4c4c; font-family: 'Avenir Next W01', 'Avenir Next W00', 'Avenir Next', Avenir, 'Helvetica Neue', sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;LI style="list-style-position: outside; margin: 0.3875rem 0px 0.3875rem 1.5rem;"&gt;Added support for unfederated ArcGIS Server instances from the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE style="font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, monospace; padding: 0.25rem; border-radius: 3px; border: 1px solid #efefef; color: #595959; background-color: #dddddd; white-space: pre; font-size: 0.85em; line-height: 1.4rem;"&gt;arcgis.gis.server&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;module&lt;/LI&gt;&lt;/UL&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I can't speak for others, but reading that strongly implies to me that one should use &lt;SPAN style="font-family: courier\ new, courier, monospace;"&gt;arcgis.gis.server&lt;/SPAN&gt; when connecting to an unfederated GIS server.&amp;nbsp; Furthermore, the documentation for &lt;A class="link-titled" href="https://esri.github.io/arcgis-python-api/apidoc/html/arcgis.gis.toc.html#gis" title="https://esri.github.io/arcgis-python-api/apidoc/html/arcgis.gis.toc.html#gis"&gt;arcgis.gis module — arcgis 1.4.0 documentation&lt;/A&gt; doesn't mention anything about connecting to an unfederated GIS server.&amp;nbsp; I have discovered, through trial and error, that I can use the unfederated server's administrator REST endpoint (&lt;SPAN style="font-family: courier\ new, courier, monospace;"&gt;/arcgis/admin&lt;/SPAN&gt;) to connect using the &lt;SPAN style="font-family: courier\ new, courier, monospace;"&gt;GIS&lt;/SPAN&gt; class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the ArcGIS API for Python team wants users to use &lt;SPAN style="font-family: courier\ new, courier, monospace;"&gt;GIS&lt;/SPAN&gt; as the starting point, it would be helpful to clarify and/or expand the documentation to point users in that direction.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2018 14:07:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/is-anyone-else-having-trouble-of-importing-arcgis/m-p/783898#M1307</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2018-03-28T14:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Is anyone else having trouble of importing arcgis.gis.server module?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/is-anyone-else-having-trouble-of-importing-arcgis/m-p/783899#M1308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/people/bixb0012"&gt;bixb0012&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you had any luck accessing services this way? Can you post an example? Getting access to an unfederated server is a bewildering process with the ArcGIS Python API.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2018 18:57:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/is-anyone-else-having-trouble-of-importing-arcgis/m-p/783899#M1308</guid>
      <dc:creator>PhilLarkin1</dc:creator>
      <dc:date>2018-03-28T18:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Is anyone else having trouble of importing arcgis.gis.server module?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/is-anyone-else-having-trouble-of-importing-arcgis/m-p/783900#M1309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Phil, are you speaking about accessing services starting from &lt;SPAN style="font-family: courier\ new, courier, monospace;"&gt;GIS()&lt;/SPAN&gt; or &lt;SPAN style="font-family: courier\ new, courier, monospace;"&gt;gis.server.Server()&lt;/SPAN&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2018 19:11:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/is-anyone-else-having-trouble-of-importing-arcgis/m-p/783900#M1309</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2018-03-28T19:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: Is anyone else having trouble of importing arcgis.gis.server module?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/is-anyone-else-having-trouble-of-importing-arcgis/m-p/783901#M1310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;gis.server.Server()&amp;nbsp;&lt;BR /&gt;Here is one method I have tried (edited to remove redundant code)&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;gis &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; server

url &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2F" target="_blank"&gt;https://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;server&amp;gt;.&amp;lt;domain&amp;gt;.org:6443/arcgis/admin/"&lt;/SPAN&gt;&lt;/SPAN&gt;


srv &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; server&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;catalog&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ServicesDirectory&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;url&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;username&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"&amp;lt;usr&amp;gt;"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;password&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"&amp;lt;pw&amp;gt;"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;srv&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;list&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"&amp;lt;example&amp;gt;"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
KeyError&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'folders'&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:56:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/is-anyone-else-having-trouble-of-importing-arcgis/m-p/783901#M1310</guid>
      <dc:creator>PhilLarkin1</dc:creator>
      <dc:date>2021-12-12T08:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: Is anyone else having trouble of importing arcgis.gis.server module?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/is-anyone-else-having-trouble-of-importing-arcgis/m-p/783902#M1311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My arcgis api is version 1.2.3. An update should solve this problem.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2018 21:53:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/is-anyone-else-having-trouble-of-importing-arcgis/m-p/783902#M1311</guid>
      <dc:creator>PhilLarkin1</dc:creator>
      <dc:date>2018-03-28T21:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: Is anyone else having trouble of importing arcgis.gis.server module?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/is-anyone-else-having-trouble-of-importing-arcgis/m-p/783903#M1312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After an update, post back if you are still having problems.&amp;nbsp; Check out the Upgrade the arcgis package at &lt;A class="link-titled" href="https://developers.arcgis.com/python/guide/install-and-set-up/" title="https://developers.arcgis.com/python/guide/install-and-set-up/"&gt;Install and set up | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2018 12:52:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/is-anyone-else-having-trouble-of-importing-arcgis/m-p/783903#M1312</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2018-03-29T12:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: Is anyone else having trouble of importing arcgis.gis.server module?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/is-anyone-else-having-trouble-of-importing-arcgis/m-p/783904#M1313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still getting 'folders' key error at v1.3.0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2018 21:26:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/is-anyone-else-having-trouble-of-importing-arcgis/m-p/783904#M1313</guid>
      <dc:creator>PhilLarkin1</dc:creator>
      <dc:date>2018-03-29T21:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Is anyone else having trouble of importing arcgis.gis.server module?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/is-anyone-else-having-trouble-of-importing-arcgis/m-p/783905#M1314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;from arcgis.gis import server
url = r"https://&amp;lt;server&amp;gt;.&amp;lt;domain&amp;gt;.org:6443/arcgis/admin/
site = server.Server(url,username="&amp;lt;usr&amp;gt;",password="&amp;lt;pw&amp;gt;")
srvdir = site.content
#Will return a MapImage layer
queries = srvdir.get("&amp;lt;name&amp;gt;",folder="&amp;lt;folder&amp;gt;")

srvdir = server.ServicesDirectory(url,username="&amp;lt;usr&amp;gt;",password="&amp;lt;pw&amp;gt;")
#returns error
srvdir.get("&amp;lt;name&amp;gt;",folder="&amp;lt;folder&amp;gt;")&lt;CODE&gt;
&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;.&lt;/SPAN&gt;
KeyError&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;:&lt;/SPAN&gt; &lt;SPAN class="" style="color: #669900; border: 0px; font-weight: inherit; font-size: 14px;"&gt;'folders'&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suppose i'll try to upgrade to 1.4...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:56:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/is-anyone-else-having-trouble-of-importing-arcgis/m-p/783905#M1314</guid>
      <dc:creator>PhilLarkin1</dc:creator>
      <dc:date>2021-12-12T08:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: Is anyone else having trouble of importing arcgis.gis.server module?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/is-anyone-else-having-trouble-of-importing-arcgis/m-p/783906#M1315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For anyone trying to get at the &lt;A href="https://esri.github.io/arcgis-python-api/apidoc/html/arcgis.gis.server.html#service" rel="nofollow noopener noreferrer" target="_blank"&gt;service object&lt;/A&gt;, this worked for me at 1.4:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;from arcgis.gis import server&lt;/SPAN&gt;&lt;BR style="color: #3d3d3d;" /&gt;&lt;SPAN style="color: #3d3d3d;"&gt;&lt;SPAN&gt;url = r"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2F" target="_blank"&gt;https://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;server&amp;gt;.spokanecounty.org:&amp;lt;port&amp;gt;/arcgis/admin/"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR style="color: #3d3d3d;" /&gt;&lt;SPAN style="color: #3d3d3d;"&gt;site = server.Server(url,username="&amp;lt;usr&amp;gt;",password="&amp;lt;pw&amp;gt;")&lt;/SPAN&gt;&lt;BR style="color: #3d3d3d;" /&gt;&lt;SPAN style="color: #3d3d3d;"&gt;admin = site.content.admin
adminServices = admin.services&lt;/SPAN&gt;&lt;BR style="color: #3d3d3d;" /&gt;&lt;SPAN style="color: #3d3d3d;"&gt;servicelist = adminServices.list(folder="&amp;lt;folderName&amp;gt;")&lt;/SPAN&gt;&lt;BR style="color: #3d3d3d;" /&gt;&lt;SPAN style="color: #3d3d3d;"&gt;for x in servicelist:&lt;/SPAN&gt;&lt;BR style="color: #3d3d3d;" /&gt;&lt;SPAN style="color: #3d3d3d;"&gt;print(x.statistics)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:56:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/is-anyone-else-having-trouble-of-importing-arcgis/m-p/783906#M1315</guid>
      <dc:creator>PhilLarkin1</dc:creator>
      <dc:date>2021-12-12T08:56:09Z</dc:date>
    </item>
  </channel>
</rss>

