I have a script that imports a custom toolbox, copies data from an sde to a file/personal gdb, removes custom feature class extensions, etc. The script runs fine in Catalog, but I receive the following error in PyScripter:
Traceback (most recent call last):
File "C:\Clients\Custom.py", line 45, in <module>
arcpy.UpdateMDB(gisIn, wsOut)
AttributeError: 'module' object has no attribute 'UpdateMDB'
UpdateMDB
is a toolbox tool and the portion of the problem script that copies data to a file or personal gdb. The tool runs great in Toolbox. On a co-worker's machine, arcpy.UpdateMDB
runs correctly in the same script, but throws an error on mine. I've also seen references for arcpy.Update_tools
and arcpy.UpdateMDB_Company_Tools
in help documents, but these also throw an error.
In the problematic script, I'm importing my custom toolbox like this:
tbx = r'C:\Program Files\ArcGIS\ArcToolbox\Toolboxes\Company Tools.tbx'
I'm running ArcGIS 10.2.2 on a 32-bit computer. We do a lot of testing in PyScripter, so I'm trying to figure this one out. It seems like it could be an easy fix - any ideas?