<?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 import is really slow (2+ minutes!!!) in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-import-is-really-slow-2-minutes/m-p/124981#M9731</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Joshua - This is exactly the issue. Here are the results of my tests to import arcpy:&lt;/P&gt;&lt;UL style="list-style-type: square;"&gt;&lt;LI&gt;On work network: 153 sec (can range up to 5 min, rarely faster than this)&lt;/LI&gt;&lt;LI&gt;Totally disconnected (no LAN cable/wifi): 3.5 sec&lt;/LI&gt;&lt;LI&gt;On home internet connection, noVPN: 3.3 sec&lt;/LI&gt;&lt;LI&gt;On home internet, with VPN: 280 sec&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Opening ArcMap is about the same. It gets stuck on "Initializing License" on the splash screen.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following your solution was exactly the issue.&amp;nbsp;The reason it took me so long to reply was that I couldn't figure out your suggestion of&amp;nbsp;removing the info for my license manager. The textbox where I would enter it is disabled and so is the "Change" button, so I couldn't edit them.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="/legacyfs/online/396729_ArcGISAdmin desktop screen2.png" style="width: 620px; height: 474px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, I remembered that I am not an administrator on my PC. I located the ArcGIS Administrator in my Windows Start menu, right-clicked on it, and chose "Run as administrator". The textbox is still not editable, but the change button works now.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks! David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Feb 2018 19:55:43 GMT</pubDate>
    <dc:creator>DavidAskov1</dc:creator>
    <dc:date>2018-02-15T19:55:43Z</dc:date>
    <item>
      <title>arcpy import is really slow (2+ minutes!!!)</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-import-is-really-slow-2-minutes/m-p/124969#M9719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I import arcpy under the ArcGIS 10.5 python interpreter, it is REALLY slow! I am seeing times of 149 - 197 seconds. Every once in a while, it will import in about 2.5 seconds, but the 2-3 minutes times are more typical.&amp;nbsp;Further info:&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I noticed it after borrowing a license for ArcGIS Desktop. I do need to take my laptop off the network, so going back to using the license server is not a good option.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;ArcMap and ArcCatalog also can take a similarly long time to start. They are stuck on "Initializing License" on the splash screen for a long time.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;This is in my IDE (PyDev/Eclipse), but I get the same loading python 2.7 from the DOS prompt.&lt;/LI&gt;&lt;LI&gt;Having ArcCatalog or ArcMap already open speeds up neither python nor opening another window of ArcCatalog/ArcMap.&lt;/LI&gt;&lt;LI&gt;Each of the imports below takes no less time individually than all together.&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what I am doing to test the timing (plus using my wristwatch with ArcGIS Desktop):&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; timeit
start &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; timeit&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;default_timer&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy
&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcpy &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; env
&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;sa &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;
imports &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; timeit&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;default_timer&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"completed arcpy imports: {} sec"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;int&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;imports &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt; start&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;‍‍‍‍‍‍‍&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideas? Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:08:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-import-is-really-slow-2-minutes/m-p/124969#M9719</guid>
      <dc:creator>DavidAskov1</dc:creator>
      <dc:date>2021-12-11T07:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy import is really slow (2+ minutes!!!)</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-import-is-really-slow-2-minutes/m-p/124970#M9720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is a network issue then.&amp;nbsp; Arcpy doesn't take anywhere near those times.&amp;nbsp; The solution... get ArcGIS PRO or ArcMap installed locally.&amp;nbsp; The nice thing about PRO is you can set it to work in disconnected mode... everything local, no network needed for those critical coding moments in remote areas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2018 02:09:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-import-is-really-slow-2-minutes/m-p/124970#M9720</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-02-08T02:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy import is really slow (2+ minutes!!!)</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-import-is-really-slow-2-minutes/m-p/124971#M9721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/people/Dan_Patterson"&gt;Dan_Patterson&lt;/A&gt;&amp;nbsp;, I think he does have it all local&lt;/P&gt;&lt;UL style="color: #000000; background-color: #ffffff; border: 0px; font-size: 14px; padding: 0px 0px 0px 30px;"&gt;&lt;LI style="border: 0px; font-weight: inherit; font-size: 14px; margin: 0.5ex 0px;"&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;I noticed it after borrowing a license for ArcGIS Desktop. I do need to take my laptop off the network, so going back to using the license server is not a good option.&amp;nbsp;&lt;/BLOCKQUOTE&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm going to borrow and take offline in a few weeks, and will test this tomorrow, but had to upgrade my python IDE, Wing Pro.&amp;nbsp; I know that importing arcpy in Wing Pro does take a little will, but my guess is only 10 secs (based on Desktop 10.3.1).&amp;nbsp; &amp;nbsp; I will report back with my finding in the morning, if no one has answered with another solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2018 02:16:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-import-is-really-slow-2-minutes/m-p/124971#M9721</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2018-02-08T02:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy import is really slow (2+ minutes!!!)</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-import-is-really-slow-2-minutes/m-p/124972#M9722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Rebecca - Please let me know the results of your test.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2018 02:17:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-import-is-really-slow-2-minutes/m-p/124972#M9722</guid>
      <dc:creator>DavidAskov1</dc:creator>
      <dc:date>2018-02-08T02:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy import is really slow (2+ minutes!!!)</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-import-is-really-slow-2-minutes/m-p/124973#M9723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thought I could do a quick test after getting Wing updated.&amp;nbsp; I have Desktop 10.6 on this machine btw.&amp;nbsp; But just importing arcpy is giving an error about a DLL not loading.&amp;nbsp; &amp;nbsp; I remember seeing other folks mention somehting and will have to go back and look at those threads.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;error I'm getting&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;&amp;nbsp; Python Shell, prompt 1, line 1&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.6\arcpy\arcpy\__init__.py", line 20, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; import numpy&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.6\Lib\site-packages\numpy\__init__.py", line 187, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from . import add_newdocs&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.6\Lib\site-packages\numpy\add_newdocs.py", line 13, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from numpy.lib import add_newdoc&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.6\Lib\site-packages\numpy\lib\__init__.py", line 18, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from .polynomial import *&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.6\Lib\site-packages\numpy\lib\polynomial.py", line 19, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from numpy.linalg import eigvals, lstsq, inv&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.6\Lib\site-packages\numpy\linalg\__init__.py", line 51, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from .linalg import *&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.6\Lib\site-packages\numpy\linalg\linalg.py", line 29, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from numpy.linalg import lapack_lite, _umath_linalg&lt;/P&gt;&lt;P&gt;ImportError: DLL load failed: The network path was not found.&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;&amp;nbsp; Python Shell, prompt 2, line 1&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.6\arcpy\arcpy\__init__.py", line 20, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; import numpy&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.6\Lib\site-packages\numpy\__init__.py", line 187, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from . import add_newdocs&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.6\Lib\site-packages\numpy\add_newdocs.py", line 13, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from numpy.lib import add_newdoc&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.6\Lib\site-packages\numpy\lib\__init__.py", line 17, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from . import scimath as emath&lt;/P&gt;&lt;P&gt;ImportError: cannot import name scimath&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The path for the linalg.py is there, but not sure about the "&lt;SPAN style="background-color: #f6f6f6;"&gt;from numpy.linalg import lapack_lite, _umath_linalg"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;So, a bit of research ...or Dan might pipe in again, since he speaks numpy.&amp;nbsp; &amp;nbsp; Haven't checked for patches yet&amp;nbsp; My guess (hope) is, it's a simple.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;but beyond that...it loooked like it was going to be fairly fast (??)&amp;gt;&amp;nbsp; Maybe see if your IDE is giving an error and continuing on...i.e. loading the rest, ignoring these errors?&amp;nbsp; &amp;nbsp; &amp;nbsp;Worth a look.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;BTW - I did not test your first two lines in your code, just starting with the arcpy.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;Also, for kicks (although not needed), I opened up the Python window in ArcCatalog (which took 14 secs) and then imported arcpy...no error.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2018 02:34:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-import-is-really-slow-2-minutes/m-p/124973#M9723</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2018-02-08T02:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy import is really slow (2+ minutes!!!)</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-import-is-really-slow-2-minutes/m-p/124974#M9724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, look like it might be an issues with the&lt;/P&gt;&lt;P&gt;C:\Python27\ArcGIS10.6\Lib\site-packages\numpy\lib\__init__.py &lt;/P&gt;&lt;P&gt;file?&amp;nbsp; line 17?&amp;nbsp; That pops up as a line of interest.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;from . import scimath as emath&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;and yes, there is a space between the . and import&lt;/P&gt;&lt;P&gt;doesn't look right to me, but not sure what it should be.&amp;nbsp; Any clue &lt;A href="https://community.esri.com/people/Dan_Patterson"&gt;Dan_Patterson&lt;/A&gt;&amp;nbsp; ?&amp;nbsp; Remember, this happens to be 10.6.0.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ok, now really am stepping away from the machine. &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2018 02:44:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-import-is-really-slow-2-minutes/m-p/124974#M9724</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2018-02-08T02:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy import is really slow (2+ minutes!!!)</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-import-is-really-slow-2-minutes/m-p/124975#M9725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;my machine... import arcpy test.&amp;nbsp; Now remember, when importing it is only the first import that counts... importing the second third etc times are not relevant since the import is ignored since the namespace is taken...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, reboot, Python 3.6, ArcGIS PRO 2.1 setup ... arcpy is largely the same, Spyder IDE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;%timeit -n1 -r1 import arcpy&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;6.32 s ± 0 ns per loop (mean ± std. dev. of 1 run, 1 loop each)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A whole 6 seconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can't test in a 2.7 environment since I have used python 3 for all my code development since I can remember (even though my tools run from within arcmap use 2.7.x)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for the import numpy in 2.7 for arcmap 10.6... hmm again, I would have to set up an IDE to work with python 2.7. I will try that tomorrow&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2018 03:07:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-import-is-really-slow-2-minutes/m-p/124975#M9725</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-02-08T03:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy import is really slow (2+ minutes!!!)</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-import-is-really-slow-2-minutes/m-p/124976#M9726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have a borrowed license, I assume from your work.&amp;nbsp; When you are at work on your work's local network, are the times faster than when you are off your work's local network?&amp;nbsp; If you completely disconnect from all networks, i.e, including any wi-fi connections, does it import faster?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although a borrowed license allows you to work off network, ArcGIS Desktop still tries to connect to the license manager and communicate with it.&amp;nbsp; If you are connected to a network, but not your work network, the client will try to communicate with the license server but won't be able to resolve the server's name if the server is on an internal work network.&amp;nbsp; ArcGIS Desktop will wait for a network timeout before giving up and moving on with the use of the borrowed license.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I typically do is borrow a license and then clear out the license manager name in ArcGIS Administrator.&amp;nbsp; Without a license manager defined, ArcGIS Desktop cannot try to communicate with it.&amp;nbsp; Since borrowed licenses are automatically reclaimed by the server once they expire, you don't have to worry about actually returning the license for the server to get it back.&amp;nbsp; This workflow has some disadvantages, but it can greatly speed up opening ArcGIS Desktop depending on the type of network you are connected to.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2018 14:53:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-import-is-really-slow-2-minutes/m-p/124976#M9726</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2018-02-08T14:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy import is really slow (2+ minutes!!!)</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-import-is-really-slow-2-minutes/m-p/124977#M9727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rebecca - The "from . import" is valid. I don't understand it well, but have followed another programmer's code in my org to get it working. I think it just means from the current module, much like dot-slash means from the current directory in Unix/DOS. I've used it to import objects from __init__.py. You can also use "from .module_name import ClassName" to specify another module/Class in the same space as where you're currently located. Anyhow, this is probably getting a bit off on a tangent from the thread, so in order to not annoy the forum moderators, I'd suggest you start another post with this topic.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2018 18:08:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-import-is-really-slow-2-minutes/m-p/124977#M9727</guid>
      <dc:creator>DavidAskov1</dc:creator>
      <dc:date>2018-02-08T18:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy import is really slow (2+ minutes!!!)</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-import-is-really-slow-2-minutes/m-p/124978#M9728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Annoy away... Rebecca and I are moderators and good tangents are fine &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2018 18:50:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-import-is-really-slow-2-minutes/m-p/124978#M9728</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-02-08T18:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy import is really slow (2+ minutes!!!)</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-import-is-really-slow-2-minutes/m-p/124979#M9729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/294964"&gt;David Askov&lt;/A&gt;&amp;nbsp; &amp;nbsp;I have a call in with tech support because at least in my case I have it narrowed down to using a borrowed license, making sure I am not connected to our network which might grab a license from our concurrent license (even though I have a borrowed one).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With a borrowed license and disconnected, I can "import arcpy" in Catalog and Map, but I can not in my IDE withour getting the errors I mentioned above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if I connect back to our network, it works.&amp;nbsp; &amp;nbsp;I am not certain right now if it works while connected because it sees our CU license manager or because it&amp;nbsp;&lt;EM&gt;sees&amp;nbsp;&lt;/EM&gt; the network/internet.&amp;nbsp; However, my CU license manager still showed it as borrowed (Activated) when I query active connections.&amp;nbsp; So, my guess is, for some reason it just doesn't like the borrowed license with not network connection (for my external IDE only).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, tech support is testing that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, is there anyway for you to see if your IDE is ignoring the errors but continuing, and therefor maybe slowing down?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, my system is a bit different than yours, but I do think it is the same issues: Win7, ArcGIS 10.6.0, ArcPro 2.1.1&lt;/P&gt;&lt;P&gt;I went from Pro 2.1 to 2.1.1 earlier this week, and upgraded my MS Office from 2010 to 365(2016) earlier yesterday.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;re: slow ArcMap/Catalog start up, I think&amp;nbsp;&lt;A href="https://community.esri.com/people/bixb0012"&gt;bixb0012&lt;/A&gt;&amp;nbsp;has some good hints (which I am going to try), but also, make sure you are keeping your Results tab cleaned out.&amp;nbsp; Otherwise is has to read that all in on startup, and then write is all to disk on shutdown. Clearing that up can speed up software startup time.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2018 23:57:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-import-is-really-slow-2-minutes/m-p/124979#M9729</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2018-02-08T23:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy import is really slow (2+ minutes!!!)</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-import-is-really-slow-2-minutes/m-p/124980#M9730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Although this may be unrelated, this is what finally fixed many of my issues, including the "import arcpy" issue on one of my machines.&amp;nbsp; The real issues, I believe, is the external IDE was having an issue accessing the ArcGIS license.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For me, I have to uninstall the Flexara patch for the license manager that was a "highly recommended for all users" last fall.&amp;nbsp; &amp;nbsp;&lt;A class="link-bare" href="https://support.esri.com/en/Products/Desktop/arcgis-desktop/arcmap/10-6#downloads?id=7521" title="https://support.esri.com/en/Products/Desktop/arcgis-desktop/arcmap/10-6#downloads?id=7521"&gt;https://support.esri.com/en/Products/Desktop/arcgis-desktop/arcmap/10-6#downloads?id=7521&lt;/A&gt;&amp;nbsp; &amp;nbsp; It says 10.6, but it is for all version back to 10.0.&amp;nbsp; &amp;nbsp;It looks like there was a January 2018 update, and I no longer see the "recommended that all users install" text, so I'm still trying to get clarification on that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, if you have those Flexara patches showing in your Control Panel-&amp;gt;Add/Remove, try uninstalling them and doing a reboot.&amp;nbsp; if that does not help, try deleting the ArcGIS_* files in the c:\ProgramData\FLEXnet folder.&amp;nbsp; I'm not sure which did the try for sure (did both before the reboot), but now things seem to be working better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll come back with info re: the patch if/when I find out more.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Feb 2018 21:45:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-import-is-really-slow-2-minutes/m-p/124980#M9730</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2018-02-14T21:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy import is really slow (2+ minutes!!!)</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-import-is-really-slow-2-minutes/m-p/124981#M9731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Joshua - This is exactly the issue. Here are the results of my tests to import arcpy:&lt;/P&gt;&lt;UL style="list-style-type: square;"&gt;&lt;LI&gt;On work network: 153 sec (can range up to 5 min, rarely faster than this)&lt;/LI&gt;&lt;LI&gt;Totally disconnected (no LAN cable/wifi): 3.5 sec&lt;/LI&gt;&lt;LI&gt;On home internet connection, noVPN: 3.3 sec&lt;/LI&gt;&lt;LI&gt;On home internet, with VPN: 280 sec&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Opening ArcMap is about the same. It gets stuck on "Initializing License" on the splash screen.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following your solution was exactly the issue.&amp;nbsp;The reason it took me so long to reply was that I couldn't figure out your suggestion of&amp;nbsp;removing the info for my license manager. The textbox where I would enter it is disabled and so is the "Change" button, so I couldn't edit them.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="/legacyfs/online/396729_ArcGISAdmin desktop screen2.png" style="width: 620px; height: 474px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, I remembered that I am not an administrator on my PC. I located the ArcGIS Administrator in my Windows Start menu, right-clicked on it, and chose "Run as administrator". The textbox is still not editable, but the change button works now.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks! David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2018 19:55:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-import-is-really-slow-2-minutes/m-p/124981#M9731</guid>
      <dc:creator>DavidAskov1</dc:creator>
      <dc:date>2018-02-15T19:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy import is really slow (2+ minutes!!!)</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-import-is-really-slow-2-minutes/m-p/124982#M9732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rebecca - I have not noticed any difference in my IDE or at the DOS prompt. I use the PyDev plugin to Eclipse. When you set up a new python project, you have to point it to your interpreter (I have a 2.7 from ArcGIS and a 3.6 I installed myself, plus I think Pro has one and QGIS might, too). Once you do that, it is pretty much the same thing as running it at the DOS prompt, except that you get debugging and integration into your project (right-click &amp;gt;&amp;gt; run), but the actual execution is pretty much the same.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2018 23:45:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-import-is-really-slow-2-minutes/m-p/124982#M9732</guid>
      <dc:creator>DavidAskov1</dc:creator>
      <dc:date>2018-02-15T23:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy import is really slow (2+ minutes!!!)</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-import-is-really-slow-2-minutes/m-p/124983#M9733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank-you! This was driving me bonkers!&amp;nbsp;I suspected the timeout trying to connect to license manager, but it hadn't occurred to me to simply remove the license manager hostname from ArcGIS Administrator.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2018 23:59:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-import-is-really-slow-2-minutes/m-p/124983#M9733</guid>
      <dc:creator>JonSwoveland</dc:creator>
      <dc:date>2018-03-27T23:59:56Z</dc:date>
    </item>
  </channel>
</rss>

