Disappearing Python toolboxes?

739
2
04-24-2018 09:48 AM
JamesMacKay3
Occasional Contributor

I recently moved a PYT toolbox from one machine to another - both machines have Windows 10 and ArcGIS Desktop 10.3.1, and while the new box has been used to run some ArcPy scripts from the command line, it hadn't been used with PYTs to this point.  When connecting to the folder containing the PYT in ArcCatalog, the toolbox did not appear (although its metadata did as a standalone XML file).

Suspecting something was up with this particular PYT file, I right-clicked to create a new Python toolbox.  The new toolbox appeared but upon refreshing it too disappeared, with the metadata XML left in its place.  The same behaviour is reproducible in ArcMap.  PYT files are shown with the proper icon in the Windows shell, so the file association seems to be fine.

Next I attempted to copy my PYT file into the "My Toolboxes" location through the Windows shell.  Viewing My Toolboxes in the catalog window, the PYT file was visible and remained so (and could be run successfully).  Likewise, the Space Time Pattern Mining Tools PYT toolbox in System Toolboxes is visible but when copied to any of the locations under Folder Connections will disappear.

Has anyone else run into anything similar and determined a cause or solution?

Tags (2)
0 Kudos
2 Replies
DanPatterson_Retired
MVP Emeritus

Open arcmap, open arctoolbox in arcmap, right-click on the top of the ArcToolbox tree in Arctoolbox and Add Toolbox, navigate to the folder where your toolbox resides... does it load? is the script there and does it run.  Note.. do not use arccatalog at all in this process.

0 Kudos
JamesMacKay3
Occasional Contributor

The dialog doesn't even show PYT files (not just one in particular, it doesn't seem to recognize the file type altogether).  TBX files seem to appear fine, however.

0 Kudos