<?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 Re: Error 000732  with ArcPy?   Using just a simple Clip_analysis function.   Just learning Arcpy in Python Snippets Questions</title>
    <link>https://community.esri.com/t5/python-snippets-questions/error-000732-with-arcpy-using-just-a-simple-clip/m-p/839893#M510</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to learn to use 'raw' formatting for strings of paths in python&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt;"C:\temp"&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;path &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"C:\temp"&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;path&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
C&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; emp

&lt;SPAN class="comment token"&gt;# ---- hence the path and files don't exist &lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;\t is the tab … and there are a number of others... hence …..r.... before paths&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;goodpath = r"C:\temp"

print(goodpath)
C:\temp&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;or specify workspaces... like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;C:/temp&lt;/STRONG&gt; …. or &lt;STRONG&gt;C:\\temp&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 10:14:23 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2021-12-12T10:14:23Z</dc:date>
    <item>
      <title>Error 000732  with ArcPy?   Using just a simple Clip_analysis function.   Just learning Arcpy</title>
      <link>https://community.esri.com/t5/python-snippets-questions/error-000732-with-arcpy-using-just-a-simple-clip/m-p/839892#M509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; import arcpy&lt;BR /&gt;... from arcpy import env&lt;BR /&gt;... env.workspace = "C:\temp"&lt;BR /&gt;... infc = "MDroads.shp"&lt;BR /&gt;... clipfc = "MC.shp"&lt;BR /&gt;... outfc = "MoCoClip.shp"&lt;BR /&gt;... arcpy.Clip_analysis(infc, clipfc, outfc)&lt;BR /&gt;... &lt;BR /&gt;Runtime error Traceback (most recent call last): File "&amp;lt;string&amp;gt;", line 7, in &amp;lt;module&amp;gt; File "c:\program files (x86)\arcgis\desktop10.6\arcpy\arcpy\analysis.py", line 62, in Clip raise e ExecuteError: ERROR 000732: Input Features: Dataset MDroads.shp does not exist or is not supported ERROR 000732: Clip Features: Dataset MC.shp does not exist or is not supported &lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Jun 2018 00:02:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/error-000732-with-arcpy-using-just-a-simple-clip/m-p/839892#M509</guid>
      <dc:creator>PattyEyster</dc:creator>
      <dc:date>2018-06-10T00:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error 000732  with ArcPy?   Using just a simple Clip_analysis function.   Just learning Arcpy</title>
      <link>https://community.esri.com/t5/python-snippets-questions/error-000732-with-arcpy-using-just-a-simple-clip/m-p/839893#M510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to learn to use 'raw' formatting for strings of paths in python&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt;"C:\temp"&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;path &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"C:\temp"&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;path&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
C&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; emp

&lt;SPAN class="comment token"&gt;# ---- hence the path and files don't exist &lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;\t is the tab … and there are a number of others... hence …..r.... before paths&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;goodpath = r"C:\temp"

print(goodpath)
C:\temp&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;or specify workspaces... like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;C:/temp&lt;/STRONG&gt; …. or &lt;STRONG&gt;C:\\temp&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:14:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/error-000732-with-arcpy-using-just-a-simple-clip/m-p/839893#M510</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-12T10:14:23Z</dc:date>
    </item>
  </channel>
</rss>

