<?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: AttributeError: 'module' object has no attribute 'GetParameterAsText' in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/attributeerror-module-object-has-no-attribute/m-p/107355#M8296</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;1. I see you're getting an AttributeError. Can you share how you are importing arcpy package/modules in your script?&lt;/P&gt;&lt;P&gt;2. If you have several versions of python, you can go to: &amp;lt;drive&amp;gt;\Python27\ArcGIS&amp;lt;version e.g .10.6.1&amp;gt;&lt;BR /&gt;Right click 'python.exe' &amp;gt; run. Now, run your script here. This is ArcGIS Desktop python install default location.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will help us determining if you're running into an install or a syntax issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Apr 2019 16:58:52 GMT</pubDate>
    <dc:creator>PavanYadav</dc:creator>
    <dc:date>2019-04-09T16:58:52Z</dc:date>
    <item>
      <title>AttributeError: 'module' object has no attribute 'GetParameterAsText'</title>
      <link>https://community.esri.com/t5/python-questions/attributeerror-module-object-has-no-attribute/m-p/107351#M8292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;import arcpy, os&lt;BR /&gt;folderPath = arcpy.GetParameterAsText(0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;leads to the error in the title. Seems like the path to arcpy is not correct somewhere. I have installed several versions of Python which I believe have caused the problem. I have reinstalled ArcGIS Desktop but the problem persist. How can I solve the problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2019 12:34:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/attributeerror-module-object-has-no-attribute/m-p/107351#M8292</guid>
      <dc:creator>JohnKohlin</dc:creator>
      <dc:date>2019-04-08T12:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: AttributeError: 'module' object has no attribute 'GetParameterAsText'</title>
      <link>https://community.esri.com/t5/python-questions/attributeerror-module-object-has-no-attribute/m-p/107352#M8293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the exact error message?&lt;/P&gt;&lt;P&gt;Why did you install other versions of Python?&amp;nbsp; the only one that should exist is the one(s)&amp;nbsp; associated with arcmap or ArcGIS pro.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2019 14:17:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/attributeerror-module-object-has-no-attribute/m-p/107352#M8293</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-04-08T14:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: AttributeError: 'module' object has no attribute 'GetParameterAsText'</title>
      <link>https://community.esri.com/t5/python-questions/attributeerror-module-object-has-no-attribute/m-p/107353#M8294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt; File "H:\avanceradtest.py", line 3, in &amp;lt;module&amp;gt;&lt;BR /&gt; folderPath = arcpy.GetParameterAsText(0)&lt;BR /&gt;AttributeError: 'module' object has no attribute 'GetParameterAsText'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Complete beginner when it comes to Python. Mistake by me.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2019 05:33:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/attributeerror-module-object-has-no-attribute/m-p/107353#M8294</guid>
      <dc:creator>JohnKohlin</dc:creator>
      <dc:date>2019-04-09T05:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: AttributeError: 'module' object has no attribute 'GetParameterAsText'</title>
      <link>https://community.esri.com/t5/python-questions/attributeerror-module-object-has-no-attribute/m-p/107354#M8295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as I know, uninstalling ArcGIS also uninstalls the instances of Python from the machine. What IDE are you using? If using PyScripter or IDLE, what happens when you type 'import arcpy' and hit enter in the interactive python interpreter?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2019 16:49:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/attributeerror-module-object-has-no-attribute/m-p/107354#M8295</guid>
      <dc:creator>DylanHarwell</dc:creator>
      <dc:date>2019-04-09T16:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: AttributeError: 'module' object has no attribute 'GetParameterAsText'</title>
      <link>https://community.esri.com/t5/python-questions/attributeerror-module-object-has-no-attribute/m-p/107355#M8296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;1. I see you're getting an AttributeError. Can you share how you are importing arcpy package/modules in your script?&lt;/P&gt;&lt;P&gt;2. If you have several versions of python, you can go to: &amp;lt;drive&amp;gt;\Python27\ArcGIS&amp;lt;version e.g .10.6.1&amp;gt;&lt;BR /&gt;Right click 'python.exe' &amp;gt; run. Now, run your script here. This is ArcGIS Desktop python install default location.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will help us determining if you're running into an install or a syntax issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2019 16:58:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/attributeerror-module-object-has-no-attribute/m-p/107355#M8296</guid>
      <dc:creator>PavanYadav</dc:creator>
      <dc:date>2019-04-09T16:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: AttributeError: 'module' object has no attribute 'GetParameterAsText'</title>
      <link>https://community.esri.com/t5/python-questions/attributeerror-module-object-has-no-attribute/m-p/107356#M8297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using IDLE. When importing arcpy I get no errors.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Apr 2019 09:16:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/attributeerror-module-object-has-no-attribute/m-p/107356#M8297</guid>
      <dc:creator>JohnKohlin</dc:creator>
      <dc:date>2019-04-10T09:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: AttributeError: 'module' object has no attribute 'GetParameterAsText'</title>
      <link>https://community.esri.com/t5/python-questions/attributeerror-module-object-has-no-attribute/m-p/107357#M8298</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;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; os
&lt;SPAN class="comment token"&gt;#Read input parameters from GP dialog&lt;/SPAN&gt;
folderPath &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;GetParameterAsText&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; folderPath&lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
  folderPath &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"H:\Python"&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;#Loop through each MXD file  &lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; filename &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; os&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;listdir&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;folderPath&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;  
  fullpath &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; os&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;path&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;join&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;folderPath&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; filename&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;  
  &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; os&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;path&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;isfile&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fullpath&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;  
    &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; filename&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;lower&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;endswith&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;".mxd"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;  
      &lt;SPAN class="comment token"&gt;#open rapportfile for MXD  &lt;/SPAN&gt;
      outFilename&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;fullpath&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;fullpath&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;rfind&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"."&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;".csv"&lt;/SPAN&gt;  
      mes&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'\nMXD: %s'&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;%&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fullpath&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;  
      &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; mes  
      arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;AddMessage&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;mes&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;  
      rapportfile&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;open&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;outFilename&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"w"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;  
      header&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'MXD;WORKSPACE;FEATURECLASS'&lt;/SPAN&gt;  
      rapportfile&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;write&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;header&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'\n'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;  
      mxd &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;mapping&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;MapDocument&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fullpath&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;  
      &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; df &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;mapping&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ListDataFrames&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;mxd&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;  
        layerList &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;mapping&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ListLayers&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;mxd&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; df&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;  
        mes&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'MXD %s innehaller %s lager'&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;%&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;filename&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; len&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;layerList&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;  
        arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;AddMessage&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;mes&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;  
        &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; mes  
        &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; lyr &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; layerList&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;  
          &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;supports&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"dataSource"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;  
            workspace&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;workspacePath  
            fc&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;datasetName  
            &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'WorkspacePath: %s'&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;%&lt;/SPAN&gt; workspace  
            &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'FeatureClass:  %s'&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;%&lt;/SPAN&gt; fc  
            reg&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'%s;%s;%s'&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;%&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;filename&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;workspace&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;fc&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;  
            &lt;SPAN class="comment token"&gt;#arcpy.AddMessage(reg)  &lt;/SPAN&gt;
            rapportfile&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;write&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;reg&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'\n'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;  
      mes&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'Papportbestand: %s\n'&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;%&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;outFilename&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;  
      &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; mes  
      arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;AddMessage&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;mes&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;  
      rapportfile&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;close&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;  
      &lt;SPAN class="keyword token"&gt;del&lt;/SPAN&gt; mxd  &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;/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;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;/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;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;/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;The script ran with no problems using python.exe as you mentioned in point 2.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:30:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/attributeerror-module-object-has-no-attribute/m-p/107357#M8298</guid>
      <dc:creator>JohnKohlin</dc:creator>
      <dc:date>2021-12-11T06:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: AttributeError: 'module' object has no attribute 'GetParameterAsText'</title>
      <link>https://community.esri.com/t5/python-questions/attributeerror-module-object-has-no-attribute/m-p/107358#M8299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in the following, "..." represents the installation path for arcgis Pro.&lt;/P&gt;&lt;P&gt;line 3 shows the version of python which is running, if it is in the ArcGISpro-py3 or your clone of it, then it should be python 3.x&lt;/P&gt;&lt;P&gt;line 7 does a similar thing, but shows the location of where arcpy is imported&lt;/P&gt;&lt;P&gt;Are yours similar?&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; sys
&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy

sys&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;executable
&lt;SPAN class="string token"&gt;'C:\\...\\bin\\Python\\envs\\arcgispro-py3\\pythonw.exe'&lt;/SPAN&gt;

arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;__file__
&lt;SPAN class="string token"&gt;'C:\\...\\Resources\\ArcPy\\arcpy\\__init__.py'&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:30:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/attributeerror-module-object-has-no-attribute/m-p/107358#M8299</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-11T06:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: AttributeError: 'module' object has no attribute 'GetParameterAsText'</title>
      <link>https://community.esri.com/t5/python-questions/attributeerror-module-object-has-no-attribute/m-p/107359#M8300</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;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy
&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; sys


&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; sys&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;executable
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;__file__

C&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;\Python27\ArcGIS10&lt;SPAN class="number token"&gt;.5&lt;/SPAN&gt;\pythonw&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;exe
H&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;pyc
&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:30:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/attributeerror-module-object-has-no-attribute/m-p/107359#M8300</guid>
      <dc:creator>JohnKohlin</dc:creator>
      <dc:date>2021-12-11T06:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: AttributeError: 'module' object has no attribute 'GetParameterAsText'</title>
      <link>https://community.esri.com/t5/python-questions/attributeerror-module-object-has-no-attribute/m-p/107360#M8301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;installation problems.&amp;nbsp; what is the H drive? the pyc file isn't going to cut it because 'arcpy' just isn't a single file it is a package... at least in pro it is&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2019 13:20:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/attributeerror-module-object-has-no-attribute/m-p/107360#M8301</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-04-12T13:20:23Z</dc:date>
    </item>
  </channel>
</rss>

