Select to view content in your preferred language

Python toolbox doesn't open

786
2
09-21-2023 09:00 AM
Labels (2)
CraigFreeman2
New Contributor II

I've created a python toolbox in ArcGIS Pro.   When I right click either the toolbox or the new script called "Tool" within the toolbox and click "Edit", nothing happens.    A spinning circle appears next to the cursor for a moment but then disappears. 

 

Has anyone encountered this?  I can't find a similar problem on here. 

0 Kudos
2 Replies
AlfredBaldenweck
MVP Regular Contributor

This is probably a syntax error in the toolbox preventing it from loading.

Right-click and check syntax.

0 Kudos
AlfredBaldenweck
MVP Regular Contributor

Oh wait I misread.

Honestly, it's better to edit the pyt in a text editor (I like notepad++), rather than using IDLE.

Saving the pyt document will automatically carry over to the toolbox loaded in Pro, with the exception of any changes to parameters or tool names. For those you have to refresh the pyt in Pro.

 

For your particular problem, I'd try restarting Pro and seeing if that fixes it, then checking the syntax.

0 Kudos