<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Is there an issue with IDLE executing the arcpy.Copy_management() function? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/is-there-an-issue-with-idle-executing-the-arcpy/m-p/654340#M50945</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to execute a very simple line of code which is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcpy.Copy_management(Parcels_mdb, Parcels_Laptop_mdb)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pretty much just making a copy of a file geodatabase and naming it something else.&amp;nbsp; The issue I'm having is, when I run my code in IDLE, or from the command prompt I get the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "\\gisserver\GIS\CLIENT\Moon_MunAuth_Township_5361_6066\a_Current_Data\Tools\Python\AccountUpdate\AccountUpdate.py", line 28, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; with arcpy.da.UpdateCursor(fc, ["AcctNum","B_SCAN", "W_SCAN", "S_SCAN", "ST_SCAN"]) as updateAccount:&lt;/P&gt;&lt;P&gt;RuntimeError: cannot open '\\gisserver\GIS\CLIENT\Moon_MunAuth_Township_5361_6066\a_Current_Data\Parcels.mdb\Accounts'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&amp;nbsp; 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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can IDLE not run certain types of geoprocessing tools?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Anthony&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Aug 2015 19:00:43 GMT</pubDate>
    <dc:creator>AnthonyAtkins</dc:creator>
    <dc:date>2015-08-06T19:00:43Z</dc:date>
    <item>
      <title>Is there an issue with IDLE executing the arcpy.Copy_management() function?</title>
      <link>https://community.esri.com/t5/python-questions/is-there-an-issue-with-idle-executing-the-arcpy/m-p/654340#M50945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to execute a very simple line of code which is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcpy.Copy_management(Parcels_mdb, Parcels_Laptop_mdb)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pretty much just making a copy of a file geodatabase and naming it something else.&amp;nbsp; The issue I'm having is, when I run my code in IDLE, or from the command prompt I get the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "\\gisserver\GIS\CLIENT\Moon_MunAuth_Township_5361_6066\a_Current_Data\Tools\Python\AccountUpdate\AccountUpdate.py", line 28, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; with arcpy.da.UpdateCursor(fc, ["AcctNum","B_SCAN", "W_SCAN", "S_SCAN", "ST_SCAN"]) as updateAccount:&lt;/P&gt;&lt;P&gt;RuntimeError: cannot open '\\gisserver\GIS\CLIENT\Moon_MunAuth_Township_5361_6066\a_Current_Data\Parcels.mdb\Accounts'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&amp;nbsp; 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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can IDLE not run certain types of geoprocessing tools?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Anthony&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 19:00:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-there-an-issue-with-idle-executing-the-arcpy/m-p/654340#M50945</guid>
      <dc:creator>AnthonyAtkins</dc:creator>
      <dc:date>2015-08-06T19:00:43Z</dc:date>
    </item>
  </channel>
</rss>

