<?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 Arcpy on Linux with ArcGIS Server in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-on-linux-with-arcgis-server/m-p/9352#M746</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Somehow, I've managed to break my Arcpy [Linux] install.&amp;nbsp; Previously, I could log in as the install owner ("ags"), open up the python interpreter packaged with ArcGIS Server ("/usr/local/esri/arcgis/server/tools/python") and import arcpy without any problems, but I seem to have done something unforgivable, as I'm now seeing the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
Python 2.7 (r27:82525, Jul&amp;nbsp; 4 2010, 07:43:08) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
&amp;gt;&amp;gt;&amp;gt; import arcpy
Traceback (most recent call last):
&amp;nbsp; File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt;
&amp;nbsp; File "C:\Program Files\ArcGIS\Server\arcpy\arcpy\__init__.py", line 22, in &amp;lt;module&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; from arcpy.geoprocessing import gp
&amp;nbsp; File "C:\Program Files\ArcGIS\Server\arcpy\arcpy\geoprocessing\__init__.py", line 14, in &amp;lt;module&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; from _base import *
&amp;nbsp; File "C:\Program Files\ArcGIS\Server\arcpy\arcpy\geoprocessing\_base.py", line 14, in &amp;lt;module&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; import arcgisscripting
ImportError: DLL load failed: DLL init failed
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only thing I can think of that I've changed is that I installed ArcGIS Engine 10.1 Beta recently on the same server (I tried to install as the same user, but realized that's not a good idea, so I created another user 'arcengine' who now owns the Engine install).&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could ArcGIS Server and ArcGIS Engine somehow be conflicting?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The following directories are in my LD_LIBRARY_PATH:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;/usr/local/esri/arcgis/server/bin/wine/lib64:/usr/local/esri/arcgis/server/bin/wine/lib64/wine&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm running RHEL6 x86_64.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance for any help,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jason&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Dec 2011 19:57:16 GMT</pubDate>
    <dc:creator>JasonGreenlaw</dc:creator>
    <dc:date>2011-12-28T19:57:16Z</dc:date>
    <item>
      <title>Arcpy on Linux with ArcGIS Server</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-on-linux-with-arcgis-server/m-p/9352#M746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Somehow, I've managed to break my Arcpy [Linux] install.&amp;nbsp; Previously, I could log in as the install owner ("ags"), open up the python interpreter packaged with ArcGIS Server ("/usr/local/esri/arcgis/server/tools/python") and import arcpy without any problems, but I seem to have done something unforgivable, as I'm now seeing the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
Python 2.7 (r27:82525, Jul&amp;nbsp; 4 2010, 07:43:08) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
&amp;gt;&amp;gt;&amp;gt; import arcpy
Traceback (most recent call last):
&amp;nbsp; File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt;
&amp;nbsp; File "C:\Program Files\ArcGIS\Server\arcpy\arcpy\__init__.py", line 22, in &amp;lt;module&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; from arcpy.geoprocessing import gp
&amp;nbsp; File "C:\Program Files\ArcGIS\Server\arcpy\arcpy\geoprocessing\__init__.py", line 14, in &amp;lt;module&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; from _base import *
&amp;nbsp; File "C:\Program Files\ArcGIS\Server\arcpy\arcpy\geoprocessing\_base.py", line 14, in &amp;lt;module&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; import arcgisscripting
ImportError: DLL load failed: DLL init failed
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only thing I can think of that I've changed is that I installed ArcGIS Engine 10.1 Beta recently on the same server (I tried to install as the same user, but realized that's not a good idea, so I created another user 'arcengine' who now owns the Engine install).&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could ArcGIS Server and ArcGIS Engine somehow be conflicting?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The following directories are in my LD_LIBRARY_PATH:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;/usr/local/esri/arcgis/server/bin/wine/lib64:/usr/local/esri/arcgis/server/bin/wine/lib64/wine&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm running RHEL6 x86_64.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance for any help,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jason&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2011 19:57:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-on-linux-with-arcgis-server/m-p/9352#M746</guid>
      <dc:creator>JasonGreenlaw</dc:creator>
      <dc:date>2011-12-28T19:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy on Linux with ArcGIS Server</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-on-linux-with-arcgis-server/m-p/9353#M747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well, I was able to solve the problem - this message seems to occur when the DISPLAY environment variable does not point to a valid X location.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my case, I'm running this from a Windows machine by using SSH with X-forwarding.&amp;nbsp; My local X-windows server (Xming) had previously crashed and wasn't restarted, so Arcpy couldn't access it.&amp;nbsp; Once I restarted it, I was able to load Arcpy without problems.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alternatively, you can set DISPLAY to point to a valid Xvfb location.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jason&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2011 03:54:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-on-linux-with-arcgis-server/m-p/9353#M747</guid>
      <dc:creator>JasonGreenlaw</dc:creator>
      <dc:date>2011-12-29T03:54:56Z</dc:date>
    </item>
  </channel>
</rss>

