laptop and a wrench

Bug

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.

Last Published: October 27, 2017 ArcGIS Pro
Bug ID Number BUG-000108369
SubmittedSeptember 28, 2017
Last ModifiedAugust 11, 2025
Applies toArcGIS Pro
Version found2.0.1
Operating SystemWindows OS
Operating System Version10.0 64 Bit
Version Fixed2.3
StatusFixed

Workaround

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

Steps to Reproduce

Bug ID: BUG-000108369

Software:

  • ArcGIS Pro

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options