ArcGIS Pro 3.0.0 Python

1985
8
Jump to solution
06-27-2022 03:35 PM
JohnSpears2009
New Contributor II

I have recently upgraded to ArcGIS Pro 3.0.0 and now none of my python scripts work. What do I need to configure to get them to work in 3.0.0?

0 Kudos
1 Solution

Accepted Solutions
RichardPearson_org
New Contributor II

Just fixed the issue, seems it might have been Excel related. I used the info here:

https://community.esri.com/t5/arcgis-pro-questions/do-not-update-to-3-0-update-to-arcpro-3-0-is-a/m-...

to update the Access DB engine and that seems to have fixed things.

View solution in original post

8 Replies
AlfredBaldenweck
MVP Regular Contributor

Oh weird; I thought it was supposed to be pretty good for most scripts. Do any of them give specific errors? I know several tools were changed, so you might be effected by that.

Migration from ArcGIS Pro 2.x to 3.0—ArcGIS Pro | Documentation

What's new in ArcGIS Pro 3.0—ArcGIS Pro | Documentation

0 Kudos
DanPatterson
MVP Esteemed Contributor

Were you using 2.9 recently? or is it an Arcmap upgrade?

from your python IDE, try

import sys
sys.executable

and report the path.

Finally, none of my python scripts work 

Do they just fail silently or do you get error messages?


... sort of retired...
Luke_Pinner
MVP Regular Contributor

Did you clone your previous arcgispro-py3 environment?

Kara_Shindle
Occasional Contributor III

What @Luke_Pinner said - Pro upgrades have a nasty habit of messing with your environments.  Do you get a message in your interpreter like:

Active environment version : 2.7
arcgispro-py3 environment version : 2.6

To create a new environment that is up to date with arcgispro-py3:
 1. Generate a list of additional packages installed in your current environment,
    with the conda command:
        > conda env export > env.yaml
 2. (Optional) If you have additional dependencies installed through pip,
    find those with pip freeze:
        > pip freeze > requirements.txt
 2. Create a new environment by cloning arcgispro-py3, and activate it:
        > conda create --clone arcgispro-py3 --name my-env --pinned
        > activate my-env
 3. Add back missing conda packages from your current environment:
        > conda env update -n my-env -f env.yaml
 4. (Optional) Add back missing packages from pip:
        > pip install -r requirements.txt
 5. (Optional) Make it the default for the ArcGIS Pro application and the
     "Python Command Prompt":
        > proswap my-env

The version of the binaries in the active Python environment do
  not match the version of the binaries of the ArcGIS Pro application.

  

0 Kudos
JohnSpears2009
New Contributor II

OK, now I have most of my scripts running. I don't think it is a python issue. Has anyone had trouble opening a project where shapefiles are the dataset? My Arc freezes when I try and I have to use task manager to close it.

It will run perfect with .gdb and feature services.

0 Kudos
RichardPearson_org
New Contributor II

I have a similar issue whenever I try to open any project which includes an Excel file, the project sticks on the Loading Map screen. Bringing up task manger shows a process called ExcelToSQLite64.exe running continuously and using about 14% of the CPU....

 

Edited to add:

I'm now not sure about the Excel link, some projects just seem to hang on the Loading Map screen, but I can't be certain what the common factor is, as I can't see what the project contents are....

RichardPearson_org
New Contributor II

Just fixed the issue, seems it might have been Excel related. I used the info here:

https://community.esri.com/t5/arcgis-pro-questions/do-not-update-to-3-0-update-to-arcpro-3-0-is-a/m-...

to update the Access DB engine and that seems to have fixed things.

JohnSpears2009
New Contributor II

YES!!!

This worked great. Thank you RichardPearson_org !!

Issue solved.

0 Kudos