Is there an issue with IDLE executing the arcpy.Copy_management() function?

2457
0
08-06-2015 12:00 PM
AnthonyAtkins
New Contributor II

I'm trying to execute a very simple line of code which is:

arcpy.Copy_management(Parcels_mdb, Parcels_Laptop_mdb)

Pretty much just making a copy of a file geodatabase and naming it something else.  The issue I'm having is, when I run my code in IDLE, or from the command prompt I get the following error:

Traceback (most recent call last):

  File "\\gisserver\GIS\CLIENT\Moon_MunAuth_Township_5361_6066\a_Current_Data\Tools\Python\AccountUpdate\AccountUpdate.py", line 28, in <module>

    with arcpy.da.UpdateCursor(fc, ["AcctNum","B_SCAN", "W_SCAN", "S_SCAN", "ST_SCAN"]) as updateAccount:

RuntimeError: cannot open '\\gisserver\GIS\CLIENT\Moon_MunAuth_Township_5361_6066\a_Current_Data\Parcels.mdb\Accounts'

I know it's the copy_management function that's causing it because I can run the same unedited script in Pythonwin and it works perfectly.  The odd thing though is that when I do run it in Pythonwin the Windows copy and paste progress window pops up as it's copying and pasting and disappears when it's done.

Can IDLE not run certain types of geoprocessing tools?

Thanks,

Anthony

0 Kudos
0 Replies