<?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: ArcGIS Server 10.5 Linux; arcpy: arcgisscripting._mapping not found in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcgis-server-10-5-linux-arcpy-arcgisscripting/m-p/374793#M29621</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pro using arcpy.mp&amp;nbsp;&lt;A href="http://pro.arcgis.com/en/pro-app/arcpy/mapping/introduction-to-arcpy-mp.htm"&gt;http://pro.arcgis.com/en/pro-app/arcpy/mapping/introduction-to-arcpy-mp.htm&lt;/A&gt; and python 3.5, ArcMap uses arcpy.mapping and python 2.7, but the version of python shouldn't be an issue (I think).&amp;nbsp;&lt;/P&gt;&lt;P&gt;arcpy.mp is accessed through Pro's anaconda distribution.&amp;nbsp; No clue how or what server uses, let alone Linux&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Oct 2017 15:00:29 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2017-10-24T15:00:29Z</dc:date>
    <item>
      <title>ArcGIS Server 10.5 Linux; arcpy: arcgisscripting._mapping not found</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-server-10-5-linux-arcpy-arcgisscripting/m-p/374790#M29618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #242729; background-color: rgba(248, 248, 248, 0.6); border: 0px; margin: 0px 0px 1em;"&gt;I try to execute the following code on an ArcGIS Server for Linux installation (Version 10.5, BuildNumber 8707):&lt;/P&gt;&lt;PRE class="" style="color: #393318; background-color: #eff0f1; border: 0px; font-size: 13px; margin: 0px 0px 1em; padding: 5px;"&gt;&lt;CODE style="background-color: #eff0f1; border: 0px; font-weight: inherit; font-size: 13px;"&gt;&lt;SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: inherit;"&gt;import&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit;"&gt; arcpy &lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE class="" style="color: #393318; background-color: #eff0f1; border: 0px; font-size: 13px; margin: 0px 0px 1em; padding: 5px;"&gt;&lt;CODE style="background-color: #eff0f1; border: 0px; font-weight: inherit; font-size: 13px;"&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit;"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit;"&gt;mp&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: inherit;"&gt;ArcGISProject&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: inherit;"&gt;'blank.aprx'&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit;"&gt;)&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P style="color: #242729; background-color: rgba(248, 248, 248, 0.6); border: 0px; margin: 0px 0px 1em;"&gt;and get the following Error:&lt;/P&gt;&lt;PRE class="" style="color: #393318; background-color: #eff0f1; border: 0px; font-size: 13px; margin: 0px 0px 1em; padding: 5px;"&gt;&lt;CODE style="background-color: #eff0f1; border: 0px; font-weight: inherit; font-size: 13px;"&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: inherit;"&gt;File&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: inherit;"&gt;"/opt/anaconda/envs/arcgis/lib/python3.5/site-packages/arcpy/_mp.py"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit;"&gt; line &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: inherit;"&gt;283&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: inherit;"&gt;in&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit;"&gt; __init__ &lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE class="" style="color: #393318; background-color: #eff0f1; border: 0px; font-size: 13px; margin: 0px 0px 1em; padding: 5px;"&gt;&lt;CODE style="background-color: #eff0f1; border: 0px; font-weight: inherit; font-size: 13px;"&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit;"&gt;self&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit;"&gt;_arc_object &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit;"&gt; arcgisscripting&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit;"&gt;_mapping&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: inherit;"&gt;ArcGISProject&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit;"&gt;(*&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit;"&gt;gp_fixargs&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit;"&gt;((&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit;"&gt;aprx_path&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit;"&gt;,),&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: inherit;"&gt;True&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit;"&gt;))&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE class="" style="color: #393318; background-color: #eff0f1; border: 0px; font-size: 13px; margin: 0px 0px 1em; padding: 5px;"&gt;&lt;CODE style="background-color: #eff0f1; border: 0px; font-weight: inherit; font-size: 13px;"&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit;"&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: inherit;"&gt;AttributeError&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit;"&gt; module &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: inherit;"&gt;'arcgisscripting'&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit;"&gt; has no attribute &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: inherit;"&gt;'_mapping'&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P style="color: #242729; background-color: rgba(248, 248, 248, 0.6); border: 0px; margin: 0px 0px 1em;"&gt;the same code works fine on Windows with an ArcGIS Pro 2.0 Installation (Build Number 8933).&lt;/P&gt;&lt;P style="color: #242729; background-color: rgba(248, 248, 248, 0.6); border: 0px; margin: 0px 0px 1em;"&gt;Is there same API-Change I am not aware of? Did I mess up during the setup? How can I investigate this issue further?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2017 14:15:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-server-10-5-linux-arcpy-arcgisscripting/m-p/374790#M29618</guid>
      <dc:creator>ChristophGraf</dc:creator>
      <dc:date>2017-10-24T14:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server 10.5 Linux; arcpy: arcgisscripting._mapping not found</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-server-10-5-linux-arcpy-arcgisscripting/m-p/374791#M29619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pro uses Python 3.x, ArcGIS Server still uses 2.x (2.7 I believe).&amp;nbsp; The .mp module is new to Pro&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="381276" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/381276_pastedImage_1.png" style="width: 431px; height: 225px;" /&gt;&lt;/P&gt;&lt;P&gt;And although you didn't specifically mention publishing to Server from Pro, that is not supported.&amp;nbsp; Check this thread out&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/117751"&gt;How to publish a service from ArcGIS Pro to ArcGIS server?&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also tagging &lt;A href="https://community.esri.com/space/2100"&gt;ArcGIS Enterprise&lt;/A&gt;‌&amp;nbsp;&amp;nbsp; for more exposure.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/people/Dan_Patterson"&gt;Dan_Patterson&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2017 14:37:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-server-10-5-linux-arcpy-arcgisscripting/m-p/374791#M29619</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2017-10-24T14:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server 10.5 Linux; arcpy: arcgisscripting._mapping not found</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-server-10-5-linux-arcpy-arcgisscripting/m-p/374792#M29620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;According to the documentation (&lt;A class="link-titled" href="http://server.arcgis.com/en/server/latest/administer/linux/linux-python.htm" title="http://server.arcgis.com/en/server/latest/administer/linux/linux-python.htm"&gt;The Python 3 runtime for ArcGIS Server on Linux—ArcGIS Server Administration (Linux) | ArcGIS Enterprise&lt;/A&gt;&amp;nbsp;) the runtime for 10.5 moved to python 3.5 ..&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my code I call the new arcpy.mp API, the _mapping part which is not found is called in the background&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2017 14:49:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-server-10-5-linux-arcpy-arcgisscripting/m-p/374792#M29620</guid>
      <dc:creator>ChristophGraf</dc:creator>
      <dc:date>2017-10-24T14:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server 10.5 Linux; arcpy: arcgisscripting._mapping not found</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-server-10-5-linux-arcpy-arcgisscripting/m-p/374793#M29621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pro using arcpy.mp&amp;nbsp;&lt;A href="http://pro.arcgis.com/en/pro-app/arcpy/mapping/introduction-to-arcpy-mp.htm"&gt;http://pro.arcgis.com/en/pro-app/arcpy/mapping/introduction-to-arcpy-mp.htm&lt;/A&gt; and python 3.5, ArcMap uses arcpy.mapping and python 2.7, but the version of python shouldn't be an issue (I think).&amp;nbsp;&lt;/P&gt;&lt;P&gt;arcpy.mp is accessed through Pro's anaconda distribution.&amp;nbsp; No clue how or what server uses, let alone Linux&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2017 15:00:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-server-10-5-linux-arcpy-arcgisscripting/m-p/374793#M29621</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-10-24T15:00:29Z</dc:date>
    </item>
  </channel>
</rss>

