laptop and a wrench

Bogue

Defining arcpy.mp.ArcGISProject('current') in the Python toolbox causes a syntax error and failure "Error 000229: Cannot open <path to pyt file>" when sharing the project as a project package.

Dernière publication: October 27, 2017 ArcGIS Pro
Numéro d’ID de bogue BUG-000108369
EnvoiSeptember 28, 2017
Dernière modificationAugust 11, 2025
S’applique àArcGIS Pro
Version trouvée2.0.1
Système d’exploitationWindows OS
Version du système d’exploitation10.0 64 Bit
Version de correction2.3
StatutFixed

Solution de contournement

Define <a href="http://arcpy.mp" target="_blank">arcpy.mp</a>.ArcGISProject('current') after the tool is initialized (Tool def __init__).

Étapes pour reproduire

ID de bogue: BUG-000108369

Logiciel:

  • ArcGIS Pro

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement