<?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 running in Linux environment in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcpy-running-in-linux-environment/m-p/1024557#M29408</link>
    <description>&lt;P&gt;Yes I have installed ArcGIS Server to our cluster, and ArcPy came with that. However when I load arcpy, the following error appears:&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; import arcpy&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;BR /&gt;File "/home/tuev/.conda/envs/test_arcpy/lib/python3.6/site-packages/arcpy/__init__.py", line 72, in &amp;lt;module&amp;gt;&lt;BR /&gt;import _initagsenv&lt;BR /&gt;_initagsenv.error: WSLib: failed initializing arcpy. Check if environment was activated correctly.&lt;/P&gt;</description>
    <pubDate>Mon, 08 Feb 2021 19:34:18 GMT</pubDate>
    <dc:creator>TueVu</dc:creator>
    <dc:date>2021-02-08T19:34:18Z</dc:date>
    <item>
      <title>arcpy running in Linux environment</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcpy-running-in-linux-environment/m-p/1010484#M29138</link>
      <description>&lt;P&gt;Hi esri help desk,&lt;/P&gt;&lt;P&gt;I am HPC facilitator and I am helping GIS group to install ArcGIS Server to our supercomputer (Running CentOS8 Linux). I have downloaded and installed the&amp;nbsp;arcgis_server_81 to our CentOS8 server.&lt;/P&gt;&lt;P&gt;However, I cannot install arcpy as in the following link:&amp;nbsp;&lt;A href="https://anaconda.org/esri/arcpy," target="_blank" rel="noopener"&gt;anaconda.org/esri/arcpy, &lt;/A&gt;because the conda install command is only available for window system (you can clearly see the one inside), and not for Linux. I can use that command (&lt;SPAN&gt;conda install -c esri arcgis&lt;/SPAN&gt;) to install arcgis without any problem for our CentOS8.&lt;/P&gt;&lt;P&gt;Now, I played a trick by pointing the os working directory to the location where I installed&amp;nbsp;arcgis_server_81 and I can run the following command in terminal python console without problem, except the last command (it seems to be very simple command)&lt;/P&gt;&lt;PRE&gt;&amp;gt;&amp;gt;&amp;gt; import os&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; os.chdir("/software/arcgis_server_81")&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; import arcpy&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; arcpy.ResetEnvironments()&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;BR /&gt;AttributeError: module 'arcpy' has no attribute 'ResetEnvironments'&lt;/PRE&gt;&lt;P&gt;Please note that I can run this last command in my ArcGIS Pro python terminal in my Window system without any problem, so I believe the syntax is correct.&lt;/P&gt;&lt;P&gt;Any idea will be able to help.&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2020 04:48:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcpy-running-in-linux-environment/m-p/1010484#M29138</guid>
      <dc:creator>TueVu</dc:creator>
      <dc:date>2020-12-17T04:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy running in Linux environment</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcpy-running-in-linux-environment/m-p/1011298#M29158</link>
      <description>&lt;P&gt;From &lt;A href="https://enterprise.arcgis.com/en/server/latest/administer/linux/scripting-service-publishing-with-arcpy.htm" target="_blank"&gt;ArcGIS Server and ArcPy-ArcGIS Server | Documentation for ArcGIS Enterprise&lt;/A&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;P&gt;ArcGIS includes the ArcPy site package that you can use for managing data store items and publishing service definitions with &lt;SPAN class="ph"&gt;Python&lt;/SPAN&gt;.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Given that ArcPy is installed with ArcGIS Server, I am a bit confused why you are trying to install it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Dec 2020 16:06:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcpy-running-in-linux-environment/m-p/1011298#M29158</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-12-20T16:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy running in Linux environment</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcpy-running-in-linux-environment/m-p/1024557#M29408</link>
      <description>&lt;P&gt;Yes I have installed ArcGIS Server to our cluster, and ArcPy came with that. However when I load arcpy, the following error appears:&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; import arcpy&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;BR /&gt;File "/home/tuev/.conda/envs/test_arcpy/lib/python3.6/site-packages/arcpy/__init__.py", line 72, in &amp;lt;module&amp;gt;&lt;BR /&gt;import _initagsenv&lt;BR /&gt;_initagsenv.error: WSLib: failed initializing arcpy. Check if environment was activated correctly.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 19:34:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcpy-running-in-linux-environment/m-p/1024557#M29408</guid>
      <dc:creator>TueVu</dc:creator>
      <dc:date>2021-02-08T19:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy running in Linux environment</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcpy-running-in-linux-environment/m-p/1024570#M29409</link>
      <description>&lt;P&gt;Have you seen this help doc:&amp;nbsp;&lt;A href="https://enterprise.arcgis.com/en/server/latest/administer/linux/linux-python.htm?" target="_blank"&gt;https://enterprise.arcgis.com/en/server/latest/administer/linux/linux-python.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 19:50:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcpy-running-in-linux-environment/m-p/1024570#M29409</guid>
      <dc:creator>George_Thompson</dc:creator>
      <dc:date>2021-02-08T19:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy running in Linux environment</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcpy-running-in-linux-environment/m-p/1024607#M29410</link>
      <description>&lt;P&gt;Yes George, I use conda to install&amp;nbsp;&lt;SPAN&gt;arcgis-server-py3=10.8.0. You can see the environment test_arcpy I posted in the above. However, I still have to set ARCGISHOME to the arcgis server installation folder (not the env location) since there is no&amp;nbsp;init_user_param.sh file in the conda installed location.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 20:46:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcpy-running-in-linux-environment/m-p/1024607#M29410</guid>
      <dc:creator>TueVu</dc:creator>
      <dc:date>2021-02-08T20:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy running in Linux environment</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcpy-running-in-linux-environment/m-p/1026998#M29456</link>
      <description>&lt;P&gt;I found the solutions.&lt;/P&gt;&lt;P&gt;The error is not from the installation process but from the authorization process between ArcGIS Server and our computer cluster.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I did was to login into my.esri.com using school username, create license files and download it. In /arcgis/server/tool/, use the authorization tool to configure the license file with "correct" address that I was registered with ESRI. Once the authorization process done, the following screen appears and I am able to import arcpy using conda environment created in the prior steps&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TueVu_0-1613429061923.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/6078iA0637ECAD0B5D3FA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TueVu_0-1613429061923.png" alt="TueVu_0-1613429061923.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 22:44:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcpy-running-in-linux-environment/m-p/1026998#M29456</guid>
      <dc:creator>TueVu</dc:creator>
      <dc:date>2021-02-15T22:44:50Z</dc:date>
    </item>
  </channel>
</rss>

