<?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: ArcPy Mapping Module has no attribute in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-mapping-module-has-no-attribute/m-p/1052009#M60922</link>
    <description>&lt;P&gt;Are you sure you are using the version of python that comes with ArcGIS Pro?&lt;/P&gt;&lt;P&gt;mp is for Pro,&amp;nbsp; mapping is for ArcMap&lt;/P&gt;&lt;P&gt;aprx = arcpy.mp.ArcGISProject(r"C:\Projects\blank.aprx")&lt;/P&gt;&lt;P&gt;and the default geodatabase is a read/write property&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/arcgisproject-class.htm" target="_blank"&gt;ArcGISProject—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Apr 2021 22:42:13 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2021-04-27T22:42:13Z</dc:date>
    <item>
      <title>ArcPy Mapping Module has no attribute</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-mapping-module-has-no-attribute/m-p/1051999#M60921</link>
      <description>&lt;P&gt;I am attempting to complete an exercise in chapter 11 of the book "Python Scripting for ArcGIS Pro".&amp;nbsp; One of the example code bits i'm trying to run is this:&lt;/P&gt;&lt;P&gt;import arcpy&lt;BR /&gt;aprx = arcpy.mp.ArcGISProject(r"C:\Users\shildebr\Documents\PythonScripting_Ex11_Data\Ex11\Austin.aprx")&lt;BR /&gt;print(aprx.defaultGeodatabase)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run this I get this message:&lt;/P&gt;&lt;P&gt;File "H:/EsriTraining/Python Scripting for ArcGIS Pro/PythonScripting_Ex11_Data/Ex11/projects.py", line 2, in &amp;lt;module&amp;gt;&lt;BR /&gt;aprx = arcpy.mp.ArcGISProject(r"C:\Users\shildebr\Documents\PythonScripting_Ex11_Data\Ex11\Austin.aprx")&lt;BR /&gt;AttributeError: 'module' object has no attribute 'mp'&lt;/P&gt;&lt;P&gt;Isn't "defaultGeodatabase" a property of the ArcGISProject object?&amp;nbsp; I'm really confused as to why this won't run.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 22:01:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-mapping-module-has-no-attribute/m-p/1051999#M60921</guid>
      <dc:creator>shildebrand</dc:creator>
      <dc:date>2021-04-27T22:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy Mapping Module has no attribute</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-mapping-module-has-no-attribute/m-p/1052009#M60922</link>
      <description>&lt;P&gt;Are you sure you are using the version of python that comes with ArcGIS Pro?&lt;/P&gt;&lt;P&gt;mp is for Pro,&amp;nbsp; mapping is for ArcMap&lt;/P&gt;&lt;P&gt;aprx = arcpy.mp.ArcGISProject(r"C:\Projects\blank.aprx")&lt;/P&gt;&lt;P&gt;and the default geodatabase is a read/write property&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/arcgisproject-class.htm" target="_blank"&gt;ArcGISProject—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 22:42:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-mapping-module-has-no-attribute/m-p/1052009#M60922</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-04-27T22:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy Mapping Module has no attribute</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-mapping-module-has-no-attribute/m-p/1052082#M60924</link>
      <description>&lt;P&gt;The error is&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;"&lt;FONT face="andale mono,times" size="3"&gt;AttributeError: '&lt;STRONG&gt;module&lt;/STRONG&gt;' object has no attribute '&lt;STRONG&gt;mp&lt;/STRONG&gt;'&lt;/FONT&gt;"&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;not&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;"&lt;FONT face="andale mono,times" size="2"&gt;AttributeError: '&lt;STRONG&gt;ArcGISProject&lt;/STRONG&gt;' object has no attribute '&lt;STRONG&gt;defaultGeodatabase&lt;/STRONG&gt;'&lt;/FONT&gt;"&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;FONT size="4"&gt;arcpy is your module object and python is telling you it has no "mp" attribute. Which sounds to me (like Dan says) that you're probably running your script using ArcGIS Desktop Python 2.7 not ArcGIS Pro Python 3.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2021 05:24:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-mapping-module-has-no-attribute/m-p/1052082#M60924</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2021-04-28T05:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy Mapping Module has no attribute</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-mapping-module-has-no-attribute/m-p/1052319#M60930</link>
      <description>&lt;P&gt;Ok thanks, I thought it had to be something like that.&amp;nbsp; I'm running these in 2.7.&amp;nbsp; Somehow 3 never got installed when Pro was installed.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2021 15:23:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-mapping-module-has-no-attribute/m-p/1052319#M60930</guid>
      <dc:creator>shildebrand</dc:creator>
      <dc:date>2021-04-28T15:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy Mapping Module has no attribute</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-mapping-module-has-no-attribute/m-p/1052325#M60931</link>
      <description>&lt;P&gt;I suspect that your python IDE isn't pointing to the correct version of python.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Python 3 is part of the arcgis pro installation.&amp;nbsp; You can confirm using file explorer and looking for&lt;/P&gt;&lt;P&gt;C:\...Your_Pro_Installation_Folder...\bin\Python&lt;/P&gt;&lt;P&gt;where you installed Pro&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2021 15:38:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-mapping-module-has-no-attribute/m-p/1052325#M60931</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-04-28T15:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy Mapping Module has no attribute</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-mapping-module-has-no-attribute/m-p/1052331#M60932</link>
      <description>&lt;P&gt;Ok, when I open IDLE (Python GUI), the version is 2.7.&amp;nbsp; We do have Pro installed and can confirm that python 3 is installed in the folder you mentioned.&amp;nbsp; How do you open IDLE to use python 3?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2021 15:49:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-mapping-module-has-no-attribute/m-p/1052331#M60932</guid>
      <dc:creator>shildebrand</dc:creator>
      <dc:date>2021-04-28T15:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy Mapping Module has no attribute</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-mapping-module-has-no-attribute/m-p/1052595#M60937</link>
      <description>&lt;P&gt;I get an "Edit with IDLE (ArcGIS Pro)" context menu entry when I right click a python file. You can also open an ArcGIS Pro Python command prompt: Start - ArcGIS - Python Command Prompt&amp;nbsp;and type "idle"&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/get-started/installing-python-for-arcgis-pro.htm#:~:text=Python%20IDLE%20can%20be%20launched%20from%20a%20conda%20environment%20by%20typing%20idle" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/arcpy/get-started/installing-python-for-arcgis-pro.htm#:~:text=Python%20IDLE%20can%20be%20launched%20from%20a%20conda%20environment%20by%20typing%20idle&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Apr 2021 05:27:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-mapping-module-has-no-attribute/m-p/1052595#M60937</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2021-04-29T05:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy Mapping Module has no attribute</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-mapping-module-has-no-attribute/m-p/1052622#M60940</link>
      <description>&lt;P&gt;you can also open Pro and start a Notebook or edit it in Pro's python window&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/get-started/pro-notebooks.htm" target="_blank"&gt;Notebooks in ArcGIS Pro—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/get-started/python-window.htm" target="_blank"&gt;Python window—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Apr 2021 08:42:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-mapping-module-has-no-attribute/m-p/1052622#M60940</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-04-29T08:42:24Z</dc:date>
    </item>
  </channel>
</rss>

