<?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 inside Pycharm arcpy is not working in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/inside-pycharm-arcpy-is-not-working/m-p/680496#M52742</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #cc7832;"&gt;import &lt;/SPAN&gt;arcpy
&lt;PRE class="lia-code-sample line-numbers language-none"&gt;fc = &lt;SPAN style="color: #6a8759;"&gt;"C:&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;karlsruhe.gdb&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;buildings"&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/PRE&gt;cursor = arcpy.SearchCursor(fc)&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a very simple script that i could run inside arcGIS pro but not in Pycharm.&lt;/P&gt;&lt;P&gt;it returns with this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;AttributeError: module 'arcpy' has no attribute 'SearchCursor'&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have all the environment set up:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/492691_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the problem?&lt;/P&gt;&lt;DIV style="width: 29px !important; height: 27px !important; top: 921px !important; left: 798px !important; display: none !important;"&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 04:39:39 GMT</pubDate>
    <dc:creator>WileyNg</dc:creator>
    <dc:date>2021-12-12T04:39:39Z</dc:date>
    <item>
      <title>inside Pycharm arcpy is not working</title>
      <link>https://community.esri.com/t5/python-questions/inside-pycharm-arcpy-is-not-working/m-p/680496#M52742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #cc7832;"&gt;import &lt;/SPAN&gt;arcpy
&lt;PRE class="lia-code-sample line-numbers language-none"&gt;fc = &lt;SPAN style="color: #6a8759;"&gt;"C:&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;karlsruhe.gdb&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;buildings"&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/PRE&gt;cursor = arcpy.SearchCursor(fc)&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a very simple script that i could run inside arcGIS pro but not in Pycharm.&lt;/P&gt;&lt;P&gt;it returns with this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;AttributeError: module 'arcpy' has no attribute 'SearchCursor'&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have all the environment set up:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/492691_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the problem?&lt;/P&gt;&lt;DIV style="width: 29px !important; height: 27px !important; top: 921px !important; left: 798px !important; display: none !important;"&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:39:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/inside-pycharm-arcpy-is-not-working/m-p/680496#M52742</guid>
      <dc:creator>WileyNg</dc:creator>
      <dc:date>2021-12-12T04:39:39Z</dc:date>
    </item>
  </channel>
</rss>

