Select to view content in your preferred language

PYTHON in ArcGIS Pro 3.5 causes crash, no error message

582
9
4 weeks ago
JohnBobbitt
Emerging Contributor

PYTHON causes immediate program crash with no error message. Single commands from geoprocessing tools e.g. "arcpy.management.GetCount("name"). Cause it.  After "enter", the program shuts down immediately.

 

Thanks a heap,

-jbb

0 Kudos
9 Replies
DanPatterson
MVP Esteemed Contributor

Python in ArcGIS Pro—ArcGIS Pro | Documentation  begin here

Where are you running python?

A arcgis pro notebook?

command line?

a separate python IDE?

did you import arcpy from wherever?

details are required


... sort of retired...
JohnBobbitt
Emerging Contributor

Thanks, I need to dig a bit deeper. I'll re-post after I figure some things out.

-jbb

0 Kudos
Robert_LeClair
Esri Esteemed Contributor
JohnBobbitt
Emerging Contributor

Thanks, some details:

- ArcGIS 3.5, plenty of computer.

- Running the "Getting Started with Python in ArcGIS pro" tutorial

- Running PYTHON through command line through: VIEW | ANALYSIS | GEOPROCESSING | PYTHON | Python window; (see pic)

- On the tutorial file (and other projects) I can sometimes run the simple steps per the tutorial (see pic).

- However, the ArcGIS program often crashes during text entry into the command line prompt. It seems to happen every time a backspace is attempted, during attempts to paste paths, and during delays while  typing a command (e.g., searching for a file name). It sometimes happens upon any text input with or without the enter key.

- The crash starts with a 5-10 second freeze (loss of cursor control), then an immediate program shutdown with no error message. During re-start there is sometimes a notification re: back-up newer than saved file, but often the project opens fresh with no indication of the crash.

Any insights? Hard or soft Reset or reinstall?

Thanks a heap,

-jbb

 

0 Kudos
Robert_LeClair
Esri Esteemed Contributor

I would recommend a soft reset first, then test your workflow again.  If it still crashes, perform a clean uninstall/reinstall, then test your workflow again.  Does the application still error out?

0 Kudos
JohnBobbitt
Emerging Contributor

It crashes about half the time upon any input into the prompt. I've had previous unresolved problems with running some batch tool as well.

I'm the only user on this account, so I'm going to go for a clean install. I really don't want to have to edit the Win 11 registry.

Is there any documentation re: backing up and restoring settings?

Thanks, -jbb

0 Kudos
DanPatterson
MVP Esteemed Contributor

When working with registry entries and  folders in the windows specified paths, "rename" instead of delete... the renamed entry is the backup.  Clean out temp folders in the users path, eg

C:\Users\...you...\AppData\Local\Temp

as well  I find that some python ide s (and maybe the Pro python) use it for temp files.

If the soft reset and hard reset don't work, it would be a Tech support case.  You might have remnants of other python installs or other issues that are beyond the scope of the normal recovery procedures.

Good luck


... sort of retired...
RTPL_AU
Honored Contributor

@JohnBobbitt 
You sound like a perfect candidate for these Ideas with your "I really don't want to have to edit the Win 11 registry."

https://community.esri.com/t5/arcgis-pro-ideas/provide-a-tool-to-do-a-clean-re-install-of-pro/idi-p/...

https://community.esri.com/t5/arcgis-pro-ideas/provide-a-config-profile-backup-amp-validation/idi-p/...

 

Do you have any other Python tools, environment managers, plugins for VS Code etc. that could've affected your default Pro Python install?

Before nuking everything try to create a new Python environment in Pro.

RTPL_AU_0-1755146167773.png

Does your install show a Repair option for your environment?

 

JohnBobbitt
Emerging Contributor

I tried and tried, and finally went to ESRI's tech help, through chat which ended up in two lengthy screen-share sessions. A very knowledgeable technician (with a few holds to confer with senior techs) ended up doing a complete uninstall and clean install. No luck, same problem persists. 

BUT, I added a new WIN11 user profile and the Python Window seems to be running on it.

I have another screen-share session set up for Monday AM.

Thanks a heap for replies,

-jbb

0 Kudos