<?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: Script hangs on import arcpy from cygwin in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/script-hangs-on-import-arcpy-from-cygwin/m-p/157566#M12113</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;looks workable, but there is those nested folders inside your work folder c:\\work\\c:\\program... what is that for? because those folders don't have the links to arcpy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Jul 2016 15:37:53 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2016-07-01T15:37:53Z</dc:date>
    <item>
      <title>Script hangs on import arcpy from cygwin</title>
      <link>https://community.esri.com/t5/python-questions/script-hangs-on-import-arcpy-from-cygwin/m-p/157563#M12110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are trying to run a GP script on a windows server (with a Desktop license installed) from a Linux machine using ssh. Python scripts without ArcPy will run fine but a GP script with 'import arcpy' just hangs. The same is true if I log into the server using cygwin - plain python scripts run fine but if I add the arcpy import statement then the script hangs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume this is something to do with the python paths.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any experience/suggestions would be greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2016 08:20:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-hangs-on-import-arcpy-from-cygwin/m-p/157563#M12110</guid>
      <dc:creator>DaveAdams</dc:creator>
      <dc:date>2016-07-01T08:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: Script hangs on import arcpy from cygwin</title>
      <link>https://community.esri.com/t5/python-questions/script-hangs-on-import-arcpy-from-cygwin/m-p/157564#M12111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;probably... this is from my machine running arcmap 10.4.1 and ArcGIS pro 1.2 and I am using python 3.4 (you may see some python27 locations if you aren't using 3.4)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; import sys&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; sys.path&lt;/P&gt;&lt;P&gt;['', 'C:\\WINDOWS\\SYSTEM32\\python34.zip',&amp;nbsp;&amp;nbsp; # just the zip&lt;/P&gt;&lt;P&gt;'C:\\Python34\\DLLs',&lt;/P&gt;&lt;P&gt;'C:\\Python34\\lib',&lt;/P&gt;&lt;P&gt;'C:\\Python34\\Lib\\site-packages\\pythonwin',&amp;nbsp;&amp;nbsp; # for pythonwin you won't have this&lt;/P&gt;&lt;P&gt;'C:\\Python34',&lt;/P&gt;&lt;P&gt;'C:\\Python34\\lib\\site-packages',&lt;/P&gt;&lt;P&gt;'C:\\Program Files\\ArcGIS\\Pro\\bin',&lt;/P&gt;&lt;P&gt;'C:\\Program Files\\ArcGIS\\Pro\\Resources\\ArcPy',&lt;/P&gt;&lt;P&gt;'C:\\Program Files\\ArcGIS\\Pro\\Resources\\ArcToolBox\\Scripts',&lt;/P&gt;&lt;P&gt;'F:\\_modules',&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # mine, you won't have this&lt;/P&gt;&lt;P&gt;'C:\\Python34\\lib\\site-packages\\win32',&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # you won't have this since it is installed by pythonwin&lt;/P&gt;&lt;P&gt;'C:\\Python34\\lib\\site-packages\\win32\\lib']&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # you won't have this since it is installed by pythonwin&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;Note... in the above list, there are packages installed that you won't have, and you will probably have ones that aren't on the list.&amp;nbsp; The only thing you need to worry about is the python folders and the Arc* folders and the *.pth files.&amp;nbsp; Some people have an environment variable set... I don't&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if you don't have Pro installed, you will have this file which includes&lt;/P&gt;&lt;P&gt;C:\Python27\ArcGIS10.4\Lib\site-packages\Desktop10.4.pth&lt;/P&gt;&lt;P&gt;contents&lt;/P&gt;&lt;P&gt;C:\Program Files (x86)\ArcGIS\Desktop10.4\bin&lt;/P&gt;&lt;P&gt;C:\Program Files (x86)\ArcGIS\Desktop10.4\ArcPy&lt;/P&gt;&lt;P&gt;C:\Program Files (x86)\ArcGIS\Desktop10.4\ArcToolBox\Scripts&lt;/P&gt;&lt;P&gt;F:\_modules&amp;nbsp;&amp;nbsp;&amp;nbsp; # mine, you won't have this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do have PRO installed then this file will contain&lt;/P&gt;&lt;P&gt;C:\Python34\Lib\site-packages\ArcGISPro.pth&lt;/P&gt;&lt;P&gt;contents:&lt;/P&gt;&lt;P&gt;C:\Program Files\ArcGIS\Pro\bin&lt;/P&gt;&lt;P&gt;C:\Program Files\ArcGIS\Pro\Resources\ArcPy&lt;/P&gt;&lt;P&gt;C:\Program Files\ArcGIS\Pro\Resources\ArcToolBox\Scripts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So before the advice runs fast and furious, see what the sys.path returns and then you can start figuring out what is missing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2016 12:17:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-hangs-on-import-arcpy-from-cygwin/m-p/157564#M12111</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-07-01T12:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: Script hangs on import arcpy from cygwin</title>
      <link>https://community.esri.com/t5/python-questions/script-hangs-on-import-arcpy-from-cygwin/m-p/157565#M12112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan - many thanks for the suggestions - my sys.path is returning :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;['C:\\work', 'c:\\python27', 'C:\\Python27\\ArcGIS10.3', 'C:\\Python27\\ArcGIS10.3\\Lib\\site-packages', 'C:\\Program Files (x86)\\ArcGIS\\Desktop10.3\\bin', 'C:\\work\\ C:\\Program Files (x86)\\ArcGIS\\Desktop10.3\\arcpy', 'C:\\work\\ C:\\Program Files (x86)\\ArcGIS\\Desktop10.3\\ArcToolbox\\Scripts', 'C:\\Windows\\SYSTEM32\\python27.zip', 'c:\\Python27\\ArcGIS10.3\\DLLs', 'c:\\Python27\\ArcGIS10.3\\lib', 'c:\\Python27\\ArcGIS10.3\\lib\\plat-win', 'c:\\Python27\\ArcGIS10.3\\lib\\lib-tk', 'C:\\Program Files (x86)\\ArcGIS\\Desktop10.3\\ArcPy', 'C:\\Program Files (x86)\\ArcGIS\\Desktop10.3\\ArcToolBox\\Scripts']&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Desktop10.3.pth is :&lt;/P&gt;&lt;P&gt;C:\Program Files (x86)\ArcGIS\Desktop10.3\bin&lt;/P&gt;&lt;P&gt;C:\Program Files (x86)\ArcGIS\Desktop10.3\ArcPy&lt;/P&gt;&lt;P&gt;C:\Program Files (x86)\ArcGIS\Desktop10.3\ArcToolBox\Scripts&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2016 14:25:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-hangs-on-import-arcpy-from-cygwin/m-p/157565#M12112</guid>
      <dc:creator>DaveAdams</dc:creator>
      <dc:date>2016-07-01T14:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Script hangs on import arcpy from cygwin</title>
      <link>https://community.esri.com/t5/python-questions/script-hangs-on-import-arcpy-from-cygwin/m-p/157566#M12113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;looks workable, but there is those nested folders inside your work folder c:\\work\\c:\\program... what is that for? because those folders don't have the links to arcpy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2016 15:37:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-hangs-on-import-arcpy-from-cygwin/m-p/157566#M12113</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-07-01T15:37:53Z</dc:date>
    </item>
  </channel>
</rss>

