Is it possible to use a previous version of the ArcGIS API for Python without reverting ArcGIS Pro to a previous version?
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:
AttributeError: 'Server' object has no attribute 'services'
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.foldersAgain, this works fine in Pro 3.0 but not 3.3.
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.
Also the package manager in Pro does not allow you to change versions of arcgis (the package for ArcGIS API for Python).
My script needs arcpy so I don't believe I could create a new blank virtual environment and add the packages I need.