<?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: How to Use Previous Version of ArcGIS API for Python in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-use-previous-version-of-arcgis-api-for/m-p/1537123#M10643</link>
    <description>&lt;P&gt;should someone from the api team not see this, then you might want to post an "issue" on&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-python-api" target="_blank" rel="noopener"&gt;Esri/arcgis-python-api: Documentation and samples for ArcGIS API for Python (github.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;if you can see if it has already been address in the "issues" "closed" or "pull requests" sections of their github site&lt;/P&gt;&lt;P&gt;And, you would have to uninstall the current version and install the previous version since you can't have both package versions installed at the same time&lt;/P&gt;</description>
    <pubDate>Tue, 10 Sep 2024 22:41:28 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2024-09-10T22:41:28Z</dc:date>
    <item>
      <title>How to Use Previous Version of ArcGIS API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-use-previous-version-of-arcgis-api-for/m-p/1537101#M10641</link>
      <description>&lt;P&gt;Is it possible to use a previous version of the ArcGIS API for Python without reverting ArcGIS Pro to a previous version?&lt;/P&gt;&lt;P&gt;I have a script that works great with the ArcGIS Pro 3.0 conda environment. Once I upgraded to ArcGIS Pro 3.3 it no longer works. Specifically here is the code and error below:&lt;/P&gt;&lt;P&gt;AttributeError: 'Server' object has no attribute 'services'&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis.gis.server import Server
gis_server = Server(url=f"{server_base_url}/arcgis/admin",
                  token_url=f"{server_base_url}/arcgis/tokens/generateToken",
                  username=username,
                  password=password)
folder_list = gis_server.services.folders&lt;/LI-CODE&gt;&lt;P&gt;Again, this works fine in Pro 3.0 but not 3.3.&lt;/P&gt;&lt;P&gt;I also use VScode to run scripts. I have tried exporting the 3.0 conda environment as a .yml file and bringing it into my new machine to no avail.&lt;/P&gt;&lt;P&gt;Also the package manager in Pro does not allow you to change versions of arcgis (the package for ArcGIS API for Python).&lt;/P&gt;&lt;P&gt;My script needs arcpy so I don't believe I could create a new blank virtual environment and add the packages I need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 21:15:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-use-previous-version-of-arcgis-api-for/m-p/1537101#M10641</guid>
      <dc:creator>Map12</dc:creator>
      <dc:date>2024-09-10T21:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to Use Previous Version of ArcGIS API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-use-previous-version-of-arcgis-api-for/m-p/1537123#M10643</link>
      <description>&lt;P&gt;should someone from the api team not see this, then you might want to post an "issue" on&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-python-api" target="_blank" rel="noopener"&gt;Esri/arcgis-python-api: Documentation and samples for ArcGIS API for Python (github.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;if you can see if it has already been address in the "issues" "closed" or "pull requests" sections of their github site&lt;/P&gt;&lt;P&gt;And, you would have to uninstall the current version and install the previous version since you can't have both package versions installed at the same time&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 22:41:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-use-previous-version-of-arcgis-api-for/m-p/1537123#M10643</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2024-09-10T22:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to Use Previous Version of ArcGIS API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-use-previous-version-of-arcgis-api-for/m-p/1537194#M10645</link>
      <description>&lt;P&gt;I presume that the above code worked with a previous version of ArcGIS Enterprise, and you have also upgraded that alongside your Pro deployment?&lt;BR /&gt;&lt;BR /&gt;I just had a quick look at the reference (&lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.gis.server.html)" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/python/api-reference/arcgis.gis.server.html)&lt;/A&gt;&amp;nbsp;and the Server object does not have a &lt;EM&gt;folders&lt;/EM&gt; property, hence the error. To be able to list your services folders on your server, you should be using the&amp;nbsp;&lt;EM&gt;ServicesDirectory&lt;/EM&gt; class instead as this has the desired &lt;EM&gt;folders&lt;/EM&gt; property.&lt;BR /&gt;&lt;BR /&gt;Your code would look something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis.gis.server.catalog import ServicesDirectory
SD = ServicesDirectory(url="", username="", password="")
SD.folders&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;Where url is&amp;nbsp;{serverurl/webadaptor} - eg. https://someserver.com/arcgis&amp;nbsp;.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I just tested this in Pro 3.3 with Enterprise 11.1 and it works like a charm. Hope this helps.&lt;BR /&gt;&lt;BR /&gt;(NB: don't embed user/pass in your code as it is bad practice. Store them in your user profile/credential store, or at least use password hashes. If you have Single-Sign-On with an IDP enabled in your Enterprise, you should be able to use OAuth with a client id to log in to your server/portal.)&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2024 05:04:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-use-previous-version-of-arcgis-api-for/m-p/1537194#M10645</guid>
      <dc:creator>zkovacs</dc:creator>
      <dc:date>2024-09-11T05:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to Use Previous Version of ArcGIS API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-use-previous-version-of-arcgis-api-for/m-p/1540973#M10690</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/192526"&gt;@zkovacs&lt;/a&gt;&amp;nbsp;. I implemented your code update and can connect to server with ServicesDirectory. Unfortunately I receive a&amp;nbsp;&lt;STRONG&gt;KeyError: 'folders'&amp;nbsp;&lt;/STRONG&gt;error when trying to get the list of folders.&lt;/P&gt;&lt;P&gt;You mentioned upgrading Enterprise but that is not feasible at this time and we are at a standalone server 10.7.1&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2024 16:26:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-use-previous-version-of-arcgis-api-for/m-p/1540973#M10690</guid>
      <dc:creator>Map12</dc:creator>
      <dc:date>2024-09-20T16:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to Use Previous Version of ArcGIS API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-use-previous-version-of-arcgis-api-for/m-p/1541932#M10694</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/791487"&gt;@Map12&lt;/a&gt;&amp;nbsp;does the following work:&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;from arcgis.gis import server

# Stand-alone ArcGIS Server instance specify PSA account
# Federated ArcGIS Server instance specify Portal Admin account
agsServer = server.Server(url="https://ags.esri.com/server", username='siteadmin', password='siteadmin')
print(agsServer.content.folders)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 24 Sep 2024 14:31:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-use-previous-version-of-arcgis-api-for/m-p/1541932#M10694</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2024-09-24T14:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to Use Previous Version of ArcGIS API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-use-previous-version-of-arcgis-api-for/m-p/1542552#M10699</link>
      <description>&lt;P&gt;Hi Jake, Thanks for your reply. Here's what I got. Your method did properly acquire the server object but no luck on folders.&lt;/P&gt;&lt;P&gt;KeyError: 'folders'&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 16:15:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-use-previous-version-of-arcgis-api-for/m-p/1542552#M10699</guid>
      <dc:creator>Map12</dc:creator>
      <dc:date>2024-09-25T16:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to Use Previous Version of ArcGIS API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-use-previous-version-of-arcgis-api-for/m-p/1542971#M10705</link>
      <description>&lt;P&gt;Oh, I didn't know your server was at 10.7.1. I don't think it will be possible to do what you want with Pro 3.3 then...&lt;/P&gt;&lt;P&gt;Esri Support should be able to confirm that though, so log a ticket with them.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 09:44:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-use-previous-version-of-arcgis-api-for/m-p/1542971#M10705</guid>
      <dc:creator>zkovacs</dc:creator>
      <dc:date>2024-09-26T09:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to Use Previous Version of ArcGIS API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-use-previous-version-of-arcgis-api-for/m-p/1543016#M10709</link>
      <description>&lt;P&gt;Is there anything that shows compatibility between the arcgis library and Server versions?&lt;/P&gt;&lt;P&gt;Something along the lines of arcgis 2.0.1 (Pro 3.0) has full compatibility with Server 10.7.1 but arcgis 2.3.0 (Pro 3.3) does not.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 13:32:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-use-previous-version-of-arcgis-api-for/m-p/1543016#M10709</guid>
      <dc:creator>Map12</dc:creator>
      <dc:date>2024-09-26T13:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to Use Previous Version of ArcGIS API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-use-previous-version-of-arcgis-api-for/m-p/1543640#M10715</link>
      <description>&lt;P&gt;I haven't been able to find anything on that unfortunately, but Tech Support should be able to confirm it.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Sep 2024 09:52:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-use-previous-version-of-arcgis-api-for/m-p/1543640#M10715</guid>
      <dc:creator>zkovacs</dc:creator>
      <dc:date>2024-09-29T09:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to Use Previous Version of ArcGIS API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-use-previous-version-of-arcgis-api-for/m-p/1582270#M11137</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/791487"&gt;@Map12&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are lots of responses here but none actually answer the question:&amp;nbsp;&lt;SPAN&gt;How to Use Previous Version of ArcGIS API for Python? I assume you meant specifically in Pro. I have this same question.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Did you ever figure out if it's possible? I need two different versions of the python api since things stop working in newer versions. This works locally but I have no idea how to do it in Pro.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Fri, 14 Feb 2025 14:36:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-use-previous-version-of-arcgis-api-for/m-p/1582270#M11137</guid>
      <dc:creator>chris_del101</dc:creator>
      <dc:date>2025-02-14T14:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to Use Previous Version of ArcGIS API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-use-previous-version-of-arcgis-api-for/m-p/1583608#M11144</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/852729"&gt;@chris_del101&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;No, I haven't found a solution for this. I've had to keep older versions of Pro installed in order to run some of the scripts I have. Of course, the long-term solution is to get upgraded so Server and Pro are at compatible versions.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2025 14:33:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-use-previous-version-of-arcgis-api-for/m-p/1583608#M11144</guid>
      <dc:creator>Map12</dc:creator>
      <dc:date>2025-02-10T14:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to Use Previous Version of ArcGIS API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-use-previous-version-of-arcgis-api-for/m-p/1585480#M11160</link>
      <description>&lt;P&gt;I actually require two versions of the api, 2.1.0 and 2.4.0 (or whatever newest is - this is the newest now). I want to run these&amp;nbsp;&lt;EM&gt;in Pro&amp;nbsp;&lt;/EM&gt;and not just using the Pro conda environments outside of Pro (which is possible and easier). I guess my comments are only somewhat related to what you are trying to do.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not asking my own question as I think I already know the answer to my question: it's not possible.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2025 14:41:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-use-previous-version-of-arcgis-api-for/m-p/1585480#M11160</guid>
      <dc:creator>chris_del101</dc:creator>
      <dc:date>2025-02-14T14:41:07Z</dc:date>
    </item>
  </channel>
</rss>

