<?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: 'Import arcpy' error (RuntimeError: NotInitialized) when using IDLE in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/import-arcpy-error-runtimeerror-notinitialized/m-p/450296#M35279</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Stuart...getting closer!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your question = I've downloaded trial copies of Bentley, Autodesk 3DS Max and Tableau Public in the past. I use none of these now. Below is a copy of the now existing fnp_registrations.xml. Here's the contents of fnp_registrations.xml: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;?xml version="1.0" encoding="UTF-8" ?&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;Activation_Service_Users&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;Publishers&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;Publisher&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;Name&amp;gt;Autodesk&amp;lt;/Name&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;Products&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;Product&amp;gt;Autodesk 3ds Max 2011 32-bit&amp;lt;/Product&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/Products&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/Publisher&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;Publisher&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;Name&amp;gt;Tableau Software Inc.&amp;lt;/Name&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;Products&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;Product&amp;gt;Tableau Public 5.1&amp;lt;/Product&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/Products&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/Publisher&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/Publishers&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/Activation_Service_Users&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Only Autodesk 3DS Max and Tableau Public are mentioned.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Next, I've just renamed the FNPLicensingService.exe after close all apps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Interesting (this may have been the case a few steps ago though). Using IDLE and import arcview and import arcpy calls, I don't get the normal import arcpy RunTime error (going back through the thread I reported this on 02-20-2011 02:45 AM). However, when try calling any arcpy functions/classes, they fail. E.g when I try an export statement on a mxd. The IDLE throws a restart message and does not complete the export?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But, launching ArcMap/ArcCatalog = I get the attached licence error message and neither application opens. So that rename definitely did something. Also, importantly no new FNPLicencingService.exe was created. Renaming back to FNPLicensingService.exe. ArcMap opens fine under SU licence.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bingo. Doesn't this mean that neither a new SU authorisation nor a new installation of ArcGIS Desktop DOES NOT CREATE A NEW FNPLicensingService.exe file. This is confirmed by the date modified = 14/06/2010. This is, I think, the date when I installed ArcGIS for the first time on this machine or thereabouts.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Corrupted FNPLicensingService.exe file causing the problem? How about uninstalling everything that FlexNet uses (including ArcGIS) and reinstalling ArcGIS which hopefully creates a brand new FNPLicensingService.exe file?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or is there a FlexNet repair function?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What do you reckon? Cheers - Sam&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Mar 2011 16:35:55 GMT</pubDate>
    <dc:creator>RachaelYule</dc:creator>
    <dc:date>2011-03-01T16:35:55Z</dc:date>
    <item>
      <title>'Import arcpy' error (RuntimeError: NotInitialized) when using IDLE</title>
      <link>https://community.esri.com/t5/python-questions/import-arcpy-error-runtimeerror-notinitialized/m-p/450278#M35261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ArcGIS Version: ArcGIS 10, Python 2.6.5 Machine: Windows 7 64bit (Intel)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm receiving the following error when importing arcpy using the the IDLE (gui and cmd prompt) and when using pythonwin.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I had removed python26 and python25 from my system and have done a fresh install of ArcGIS 10 and python. Therefore am calling IDLE from here: "C:\Python26\ArcGIS10.0\pythonw.exe"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;**IDLE 2.6.5&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy Traceback (most recent call last): File "", line 1, in import arcpy File "C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy\arcpy__init__.py", line 17, in from geoprocessing import gp File "C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy\arcpy\geoprocessing__init__.py", line 14, in from _base import * File "C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy\arcpy\geoprocessing_base.py", line 568, in env = GPEnvironments(gp) File "C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy\arcpy\geoprocessing_base.py", line 565, in GPEnvironments return GPEnvironment(geoprocessor) File "C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy\arcpy\geoprocessing_base.py", line 521, in init self._refresh() File "C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy\arcpy\geoprocessing_base.py", line 523, in _refresh envset = (set(env for env in self._gp.listEnvironments())) RuntimeError: NotInitialized**&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EsriUK and Esri tech support have recommended fresh reinstall and registry edits = but this has not worked. I'm waiting on them for a solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've investigated whether it was a module arcpy path issue. There are a couple of links on the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//002z00000008000000.htm"&gt;Esri forums&lt;/A&gt;&lt;SPAN&gt; and on the ArcGIS help regarding paths. Also, a possible related thread on &lt;/SPAN&gt;&lt;A href="http://gis.stackexchange.com/questions/5207/why-would-import-arcpy-hang-python-script-run-from-dos-cmd-prompt"&gt;gis.stackexchange&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I followed the advise from 'kimo' on the Esri forum thread. But still the import error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My system variable (that I've edited) is: PYTHONPATH = "c:\python26";"C:\Python26\ArcGIS10.0";"C:\Python26\ArcGIS10.0\Lib\site-packages";"C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have checked I have the contents of "C:\Python26\ArcGIS10.0\Lib\site-packages\Desktop10.pth". The contents are: C:\Program Files (x86)\ArcGIS\Desktop10.0\bin C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy C:\Program Files (x86)\ArcGIS\Desktop10.0\ArcToolbox\Scripts&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, the traceback message shows that a .py script is found in the folder: C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy\arcpy. Therefore, suggests the arcpy module is found by the interpreter but then not initialized(?).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Arcpy can be called from the Python Window within ArcMap and ArcCatalog okay. It is only when called from a Python interpreter that the 'import arcpy' fails. Therefore, arcpy is initalized okay by ArcMap/ArcCatalog, but not IDLE - how can this be?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I previously had an install of python25, then python26 then after that upgraded to ArcGIS 10. Therefore, there was quite a lot of legacy python on my machine. However, I've uninstalled all and registry cleaned using ccleaner.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've posted on &lt;/SPAN&gt;&lt;A href="http://gis.stackexchange.com/questions/6279/import-arcpy-error-runtimeerror-notinitialized-when-using-idle"&gt;GIS.stackexchange&lt;/A&gt;&lt;SPAN&gt; too.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone suggest another line of enquiry as I'm not experienced with python enough to solve initialize/runtime errors? I'd like to avoid reinstalling the OS too!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers Sam&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Feb 2011 09:37:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/import-arcpy-error-runtimeerror-notinitialized/m-p/450278#M35261</guid>
      <dc:creator>RachaelYule</dc:creator>
      <dc:date>2011-02-18T09:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: 'Import arcpy' error (RuntimeError: NotInitialized) when using IDLE</title>
      <link>https://community.esri.com/t5/python-questions/import-arcpy-error-runtimeerror-notinitialized/m-p/450279#M35262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I might have had a similar problem long time ago in ArcGIS 9.2. I can't recall what it was, but I managed to fix it in the end, and it was something silly. Following are a few questions to answer that might push you in some direction to solve the issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is the error consistent, so you get it all the time?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does it happen when you execute "import arcpy" interactivly in a fresh IDLE window?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does it happen from plain python.exe too?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What happens when you do import arcgisscripting?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If that works, what happens when you do gp = arcgisscripting.create()?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Feb 2011 12:41:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/import-arcpy-error-runtimeerror-notinitialized/m-p/450279#M35262</guid>
      <dc:creator>NiklasNorrthon</dc:creator>
      <dc:date>2011-02-18T12:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: 'Import arcpy' error (RuntimeError: NotInitialized) when using IDLE</title>
      <link>https://community.esri.com/t5/python-questions/import-arcpy-error-runtimeerror-notinitialized/m-p/450280#M35263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Is the error consistent, so you get it all the time?&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Yep the the RunTime error is consistent across python.exe, IDLE and pythonwin (was throwing the error before I uninstalled. Note, ArcMap and ArcCatalog can successfully import arcpy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Does it happen when you execute "import arcpy" interactivly in a fresh IDLE window?&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;When I via the start menu create an instance of the IDLE, it throws a new error. See screenshot attached.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Does it happen from plain python.exe too?&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes. I get the same RunTime error from import arcpy. See attached screenshot. No second error message box like with the IDLE as above.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;What happens when you do import arcgisscripting?&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;If that works, what happens when you do gp = arcgisscripting.create()?&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Interesting. The two commands above are okay, but I get a RunTime Error:NotInitialsied error when I try to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;gp.toolbox = "analysis"&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;See attached screenshot. I tried this on a 9.3.1 installation on a different machine = worked okay. I'm not really familar with 9.2/9.3 python geoprocessing module though.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Finally, just to be sure, I've screenshot the shortcut pathway of IDLE. It is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Python26\ArcGIS10.0\pythonw.exe "C:\Python26\ArcGIS10.0\Lib\idlelib\idle.pyw"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That right?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does this give anyone any further thoughts?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers - Sam&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Feb 2011 15:32:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/import-arcpy-error-runtimeerror-notinitialized/m-p/450280#M35263</guid>
      <dc:creator>RachaelYule</dc:creator>
      <dc:date>2011-02-18T15:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: 'Import arcpy' error (RuntimeError: NotInitialized) when using IDLE</title>
      <link>https://community.esri.com/t5/python-questions/import-arcpy-error-runtimeerror-notinitialized/m-p/450281#M35264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is a licensing issue. What license level are you? Try&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcview&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Before you import arcpy to expicitly set your license level (or arceditor, etc). Make sure your license manager is running.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Feb 2011 17:35:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/import-arcpy-error-runtimeerror-notinitialized/m-p/450281#M35264</guid>
      <dc:creator>JasonScheirer</dc:creator>
      <dc:date>2011-02-18T17:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: 'Import arcpy' error (RuntimeError: NotInitialized) when using IDLE</title>
      <link>https://community.esri.com/t5/python-questions/import-arcpy-error-runtimeerror-notinitialized/m-p/450282#M35265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm running a single use arcview level licence, which i Authorised 'over the internet' successfully. The ArcGIS Licence Administrator software states ArcView is 'permanent' (I've just reauthorised to be sure).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Make sure your license manager is running&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you referring to the concurrent licence manager software? Or the local licence utility called "ArcGIS Administrator"?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get an error when I use 'import arcview'. BUT, then 'import arcpy' does not throw the same RunTime error. So I think it's worked?. See attached screenshot.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But, if I run a .py the script. It will fail as it throws an error on the import arcview statement - can I deal with this using a try/catch on the import arcview statement, to allow the script to run.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Seems odd that on other singleuse ArcGIS 10 installations, I can successfully install the software, authorise the licence, then use import arcpy in the IDLE without requiring the import arcview statement?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Feb 2011 08:45:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/import-arcpy-error-runtimeerror-notinitialized/m-p/450282#M35265</guid>
      <dc:creator>RachaelYule</dc:creator>
      <dc:date>2011-02-20T08:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: 'Import arcpy' error (RuntimeError: NotInitialized) when using IDLE</title>
      <link>https://community.esri.com/t5/python-questions/import-arcpy-error-runtimeerror-notinitialized/m-p/450283#M35266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Further info regarding trying to fix this licence issue...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried authorising (over the internet and via email) my machine with a different single use licence file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To recap. In addition to the import arcpy error described above, when I try via IDLE:&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;import arcview&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the error message:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IDLE 2.6.5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; import arcview&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "&amp;lt;pyshell#0&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; import arcview&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy\arcview.py", line 18, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.setProduct("ArcView")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RuntimeError: ERROR 999999: Error executing function&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get the same error when I deauthorise my machine and run &lt;/SPAN&gt;&lt;STRONG&gt;import arcview&lt;/STRONG&gt;&lt;SPAN&gt; via IDLE.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So it is clear that IDLE and other interpreters do not see that my machine is authorised for a singleuse licence. This possibly explains why when I launch arcMap and import arcpy works okay.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did have a legacy LM_LICENCE_FILE Environment System Variable referencing a concurrent licence server location. I have deleted this variable - but this has NOT solved the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are there any other options for setting or connecting to the singleuse licence using python and IDLE? Or is there still a legacy floating licence issue, maybe in the registry, which is incorrectly telling IDLE that I have a floating licence?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2011 11:09:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/import-arcpy-error-runtimeerror-notinitialized/m-p/450283#M35266</guid>
      <dc:creator>RachaelYule</dc:creator>
      <dc:date>2011-02-21T11:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: 'Import arcpy' error (RuntimeError: NotInitialized) when using IDLE</title>
      <link>https://community.esri.com/t5/python-questions/import-arcpy-error-runtimeerror-notinitialized/m-p/450284#M35267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sam&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you get any joy with this? I'm having the same problem, although I'm not calling it from IDLE - I'm calling it from within IIS. If I log in as the same user (via a Command Prompt) I don't get the error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Stuart&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2011 07:49:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/import-arcpy-error-runtimeerror-notinitialized/m-p/450284#M35267</guid>
      <dc:creator>StuartMitchell</dc:creator>
      <dc:date>2011-02-25T07:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: 'Import arcpy' error (RuntimeError: NotInitialized) when using IDLE</title>
      <link>https://community.esri.com/t5/python-questions/import-arcpy-error-runtimeerror-notinitialized/m-p/450285#M35268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Stuart&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No joy I'm afraid yet. Esri tech support are still looking into this.&amp;nbsp; It looks like a reinstall of my operating system is the only solution.&amp;nbsp; I'm not familar at all with IIS, so doubt I can replicate or even comment!&amp;nbsp; I purely need python for desktop geoprocessing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The forum replies suggest it is a licence issue i.e. my python interpreter seems to not recognise that I've got an authorised ArcView licence.&amp;nbsp; All registry keys look correct on my system.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A mystery. Cheers - Sam&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2011 13:05:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/import-arcpy-error-runtimeerror-notinitialized/m-p/450285#M35268</guid>
      <dc:creator>RachaelYule</dc:creator>
      <dc:date>2011-02-25T13:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: 'Import arcpy' error (RuntimeError: NotInitialized) when using IDLE</title>
      <link>https://community.esri.com/t5/python-questions/import-arcpy-error-runtimeerror-notinitialized/m-p/450286#M35269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sam,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Looking at your posts here and on Stack Exchange, I think you have some muddled environment settings.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You want to put C:\Python26\ArcGIS10.0 in your system PATH variable, that gets you to the correct executables from IDLE, PythonWin or the command line.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your PYTHONPATH could be empty. Or, you could just include the 3 stanzas of your Desktop10.pth file: C:\Program Files (x86)\ArcGIS\Desktop10.0\bin C:\Program Files; (x86)\ArcGIS\Desktop10.0\arcpy; C:\Program Files (x86)\ArcGIS\Desktop10.0\ArcToolbox\Scripts--those paths will then take precedence over the the default search for modules (below the python.exe or pythonw.exe being called).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Finally, since you've uninstalled and installed several versions of Python. At this point, there should be nothing under the C:\Python26 folder except the ArcGIS10.0 folder of the ESRI provided Python 2.6.5 32-bit install. If there is a &lt;/SPAN&gt;&lt;STRONG&gt;Lib&lt;/STRONG&gt;&lt;SPAN&gt; file there it is a residual of an earlier install and will interfere. It would be a bigger problem if any or your prior Python26 installs were 64-bit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, since you're on 64-bit Windows 7, the Registry path the to 32-bit Python keys are HKLM\SOFTWARE\Wow6432Node\Python If you have a HKLM\SOFTWARE\Python, they would be Keys for a 64-bit install. They also would interfere with the 32-bit install.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Stuart&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Feb 2011 15:48:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/import-arcpy-error-runtimeerror-notinitialized/m-p/450286#M35269</guid>
      <dc:creator>V_StuartFoote</dc:creator>
      <dc:date>2011-02-27T15:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: 'Import arcpy' error (RuntimeError: NotInitialized) when using IDLE</title>
      <link>https://community.esri.com/t5/python-questions/import-arcpy-error-runtimeerror-notinitialized/m-p/450287#M35270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Stuart. Thanks. I've put through the changes you suggest, but still have the arcpy error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note, I didn't know how to set the PYTHONPATH variable to 'empty'.&amp;nbsp; I can't seem to okay the variable edit dialog box when the value is empty.&amp;nbsp; Therefore, I added the following to the PYTHONPATH (none of the paths are enclosed by double quotes, I don't know if this matters?):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Program Files (x86)\ArcGIS\Desktop10.0\bin;C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy;C:\Program Files (x86)\ArcGIS\Desktop10.0\ArcToolbox\Scripts&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can confirm that the only folder is c:\python26\ArcGIS10.0\ (see attached).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Finally, yep I think I had (in desperation a few weeks ago) installed a 64bit version of python on this machine. I did have a registry stuff within this location: HKLM\SOFTWARE\Python. I have deleted these (hope that was the thing to do).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, I've attached a screenshot of: HKLM\SOFTWARE\Wow6432Node\Python.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you see I've got legacy stuff from 2.5 and 2.7 versions of python? See attached screenshot for the values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Delete the non 2.6 keys?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Feb 2011 07:01:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/import-arcpy-error-runtimeerror-notinitialized/m-p/450287#M35270</guid>
      <dc:creator>RachaelYule</dc:creator>
      <dc:date>2011-02-28T07:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: 'Import arcpy' error (RuntimeError: NotInitialized) when using IDLE</title>
      <link>https://community.esri.com/t5/python-questions/import-arcpy-error-runtimeerror-notinitialized/m-p/450288#M35271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sam,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The non-2.6 Keys should go. And everything else looks correct.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, I'm going to agree with Jason Scheirer that the problem is in the licensing calls. Would make sense, since the uninstall/reinstall does not necessarily clear all the Keys from the registry--you have to go back in a manually delete quite a few.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't think there are per-User configuration of the license in the Registry. But you could try the simple rename of the the HKEY_CURRENT_USER\Software\ESRI key, allowing it to be rebuilt. If that doesn't clear the ArcPy glitch, then the problem will likely be in the HKLM\SOFTWARE Keys.&amp;nbsp; I'd look here: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ESRI\License10.0&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll have to do a SU install on a 64-bit system to compare against a concurrent seat, but I think the Key is either SOFTWARE_CLASS or SingleUse_Installed--with values of Viewer, Editor, Professional.&amp;nbsp; Also, I think the ESRI_SOFTWARE_CLASS environment variable, if set, can impact things.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Stuart&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Feb 2011 13:30:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/import-arcpy-error-runtimeerror-notinitialized/m-p/450288#M35271</guid>
      <dc:creator>V_StuartFoote</dc:creator>
      <dc:date>2011-02-28T13:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: 'Import arcpy' error (RuntimeError: NotInitialized) when using IDLE</title>
      <link>https://community.esri.com/t5/python-questions/import-arcpy-error-runtimeerror-notinitialized/m-p/450289#M35272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Stuart&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Okay I've removed the non 2.6 keys.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've renamed the Esri key in: HKEY_CURRENT_USER\Software\ESRI, and then allowed it to be rebuilt. See attached screenshot.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But no luck with the import arcpy error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've taken a screenshot of the other key location: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ESRI\License10.0. See attached.&amp;nbsp; Do these values look correct?&amp;nbsp; Also, see the values under: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Python10.0 as well. Do these look okay?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can't see an environmental variable named ESRI_SOFTWARE_CLASS. So I've attached an xls of all my system variables (and one user variable called 'path').&amp;nbsp; Maybe you can see an error in this these values or compare with yours?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I assume uninstalling/reinstalling just the python component of ArcGIS 10 isn't worth a try?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers - Sam&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Feb 2011 17:02:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/import-arcpy-error-runtimeerror-notinitialized/m-p/450289#M35272</guid>
      <dc:creator>RachaelYule</dc:creator>
      <dc:date>2011-02-28T17:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: 'Import arcpy' error (RuntimeError: NotInitialized) when using IDLE</title>
      <link>https://community.esri.com/t5/python-questions/import-arcpy-error-runtimeerror-notinitialized/m-p/450290#M35273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Updated. Some progress....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just changed my licence to a (newly setup) ArcView Floating licence via ArcGIS Administrator.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bingo. IDLE imported arcpy with no errors = therefore, clearly there is a problem with IDLE recognising the single use licence.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately, I do not have access any extensions over the floating licence, which are essential to my work, therefore need to get the single use licence working!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After changing back to singleuse ArcView in ArcGIS Administrator, and reopening a shell causes me to get the import arcpy error again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, keeping the IDLE shell open even after resetting to singleuse still allows me to carry on calling arcpy functions and classes. Once arcpy is successfully imported I guess it continues to function until the IDLE session ends.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there anyway to interrogate/analyse my setup or possible problems when I've set the using python using the concurrent licence. Any traceback options?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After a successful import arcpy using the floating licence. I tried sys.path, see below. The first entry is a .py that I launched from the IDLE - I'll assume that's normal?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Successfully imported arcpy using floating licence:&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;import sys&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sys.path&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;['W:\\Projects\\GIS\\_GISRoot\\GISUtilities\\code\\python\\scripts\\updateTextElements', 'C:\\Python26\\ArcGIS10.0\\Lib\\idlelib', 'C:\\Program Files (x86)\\ArcGIS\\Desktop10.0\\bin', 'C:\\Program Files (x86)\\ArcGIS\\Desktop10.0\\arcpy', 'C:\\Program Files (x86)\\ArcGIS\\Desktop10.0\\ArcToolbox\\Scripts', 'C:\\Windows\\system32\\python26.zip', 'C:\\Python26\\ArcGIS10.0\\DLLs', 'C:\\Python26\\ArcGIS10.0\\lib', 'C:\\Python26\\ArcGIS10.0\\lib\\plat-win', 'C:\\Python26\\ArcGIS10.0\\lib\\lib-tk', 'C:\\Python26\\ArcGIS10.0', 'C:\\Python26\\ArcGIS10.0\\lib\\site-packages']&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Failed import arcpy using singleuse licence:&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; import sys&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; sys.path&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;['C:\\Windows\\system32', 'C:\\Python26\\ArcGIS10.0\\Lib\\idlelib', 'C:\\Program Files (x86)\\ArcGIS\\Desktop10.0\\bin', 'C:\\Program Files (x86)\\ArcGIS\\Desktop10.0\\arcpy', 'C:\\Program Files (x86)\\ArcGIS\\Desktop10.0\\ArcToolbox\\Scripts', 'C:\\Windows\\system32\\python26.zip', 'C:\\Python26\\ArcGIS10.0\\DLLs', 'C:\\Python26\\ArcGIS10.0\\lib', 'C:\\Python26\\ArcGIS10.0\\lib\\plat-win', 'C:\\Python26\\ArcGIS10.0\\lib\\lib-tk', 'C:\\Python26\\ArcGIS10.0', 'C:\\Python26\\ArcGIS10.0\\lib\\site-packages']&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anything incorrect here? Anyone think of another way to test this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Getting close?! Cheers - Sam&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Feb 2011 17:39:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/import-arcpy-error-runtimeerror-notinitialized/m-p/450290#M35273</guid>
      <dc:creator>RachaelYule</dc:creator>
      <dc:date>2011-02-28T17:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: 'Import arcpy' error (RuntimeError: NotInitialized) when using IDLE</title>
      <link>https://community.esri.com/t5/python-questions/import-arcpy-error-runtimeerror-notinitialized/m-p/450291#M35274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sam,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yup, you're making progress. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is a thought, since over the weeks you've cycled through several configurations of SU and Concurrent license activations, I'm not convinced that the FlexNet Publisher Trusted Storage handles this robustly. In testing just now I had to manually remove the ArcGIS_xxxxxxxx_tsf.data cache to reestablish a stable SU authorization--fortunately our authorization codes are pretty much unlimited. Both SU and concurrent "fulfillments" are kept in this data store, and as I've dealt more with it I think it can be a problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you still have your Authorization/activation codes handy (or the .PRVC used)? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The ArcGIS Administrator Authorization Wizard has a Deauthorize button. You should try cycling through a deauthorize/authorize of your SU seats on your workstation. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you know how many seats you have on the license. If you have additional, you might just go ahead and do a manual removal of the activations. It will burn a set of activations though, and would have to be recovered through Customer Service. For manual removal, the trusted storage file cache is here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]C:\Program Data\FLEXnet\ [/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and also edit the ArcGIS Publisher lines from here...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]C:\Program Files (x86)\Common Files\Macrovision Shared\FLEXnet Publisher\fnp_registrations.xml [/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You'd then reauthorize with the Authorization Wizard and your existing Authorization numbers or .PRVC file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Be careful, because if you have used all the activations, or if the Deauthorize does not release your codes for reuse, you'll have to arrange for an ESRI UK or ESRI Redlands Customer Service rep to rearm your registration numbers. That may mean more down time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Stuart&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Feb 2011 19:49:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/import-arcpy-error-runtimeerror-notinitialized/m-p/450291#M35274</guid>
      <dc:creator>V_StuartFoote</dc:creator>
      <dc:date>2011-02-28T19:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: 'Import arcpy' error (RuntimeError: NotInitialized) when using IDLE</title>
      <link>https://community.esri.com/t5/python-questions/import-arcpy-error-runtimeerror-notinitialized/m-p/450292#M35275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Stuart. Appreciate the continued assistance. Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Reading your comments. One thing to note. I am not the bona fide administrator for floating licences for my organisation, as I don't have admin rights to the particular servers where the FlexNet Licence Manager installation sits.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, just to check with you. Because I don't have FlexNet Licence Manager installed locally and I don't have access to the file ArcGIS_xxxxxxxx_tsf.data to delete it, as it sits on a virtual server in a different office. Does this make a difference to the import arcpy error?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried deauthorising/authorising already, i.e. deauthorising one arcview ESU code, then authorising a different arcview ESU code. I have tried authorising an ESU by 'over the internet' and by downloading and using an 'authorization.respc'. Again, neither authorisations helped with the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't think I can use the .prvc method, as when using the new customer portal (), EsriUK only allow software downloads. They have prohibited access to any licence information. However, I understand from EsriUK that access is going to be rolled out in the future. I'll try to deauthorise/authorise using a further ESU code again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After that, I think it's got to be an OS reinstall.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 12:57:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/import-arcpy-error-runtimeerror-notinitialized/m-p/450292#M35275</guid>
      <dc:creator>RachaelYule</dc:creator>
      <dc:date>2011-03-01T12:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: 'Import arcpy' error (RuntimeError: NotInitialized) when using IDLE</title>
      <link>https://community.esri.com/t5/python-questions/import-arcpy-error-runtimeerror-notinitialized/m-p/450293#M35276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sam,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry if I was not clear. The Flexera FlexNet Publisher Trusted Storage File mechanism is used by ESRI for activation and authorization of both SU and Concurrent use products. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You'd be deleting the cache on your SU client and don't need to touch the FlexNet License Manager at all. The problem I suspect is that the TSF cache structure on your PC has been corrupted--possibly impacting the SU license activation Python calls. Since IDLE worked while on a concurrent seat activation, clearing and recreating the TSF cache for SU would either fix things--or at least eliminate it as the source of the ArcPY licensing problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Use the ArcGIS Administrator to release the license. Then, delete the ArcGIS entires in the two folders. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note: ArcGIS_xxxxxxxx_tsf.data file is present on both the SU client and Concurrent use client, the source of the "fulfillment" and activation records it contains differs--directly with ESRI for the SU, or your local ArcGIS License Manager for Concurrent. It would also hold a "borrowed" activation and license for an off network Concurrent seat (e.g. a laptop).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Reboot.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Open ArcGIS Administrator --&amp;gt; Desktop --&amp;gt; Authorize Now and use your set of ESUxxxxxxxxxxx Authorization numbers to again activate &amp;amp; authorize. Select radio button for the correct Single use license level for your ESU code. The enter the Desktop code and the codes for the Extensions and OK to complete the FNP activation exchange.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The .PRVC (or PRVS for license servers) is just a text file that combines all the user data and authorization numbers that would be entered into Authorization Wizard. It saves time and is efficient for ESU codes that have multiple activation entitlements. At education sites, it is how we deploy the authorization codes so the users don't have to manually enter so much info (or make so many mistakes resulting in failed authorizations).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Stuart&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 13:23:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/import-arcpy-error-runtimeerror-notinitialized/m-p/450293#M35276</guid>
      <dc:creator>V_StuartFoote</dc:creator>
      <dc:date>2011-03-01T13:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: 'Import arcpy' error (RuntimeError: NotInitialized) when using IDLE</title>
      <link>https://community.esri.com/t5/python-questions/import-arcpy-error-runtimeerror-notinitialized/m-p/450294#M35277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Stuart. Thanks for the clarification.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Okay, followed your instructions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Deauthorising the current SU licence&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Delete the files: ARCGIS_0038ce00_tsf.data_backup.001 and ARCGIS_0038ce00_event.log in the folder: C:\ProgramData\FLEXnet. Note I've taken a screenshot of the contents prior the delete, attached - are these right?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. I removed the publisher lines from the file: C:\Program Files (x86)\Common Files\Macrovision Shared\FLEXnet Publisher\fnp_registrations.xml. Note there was an additional file in there, named: FNPLicensingService.exe. Haven't touched that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. rebooted&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5. reauthorised I different ESU code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Result = still the import arcpy error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I noticed this folder: C:\ProgramData\ESRI, and have taken a screenshot of the contents. Anything in there that we can edit? Notice, the date modified of the styles_idx.dat (144mb) is Jan 2011? I wonder why this date? It seems (very roughly) around the time I've started having problems - could be a coincidence though.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Finally, I noticed within ArcGIS Administrator during the reauthorisation that I had to complete my details from blank, empty input cells. This is the first time I'd noticed the input fields were blank, usually they are complete. I think, even on a full uninstall/reinstall of ArcGIS Desktop, the fields were complete with my details.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 15:14:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/import-arcpy-error-runtimeerror-notinitialized/m-p/450294#M35277</guid>
      <dc:creator>RachaelYule</dc:creator>
      <dc:date>2011-03-01T15:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: 'Import arcpy' error (RuntimeError: NotInitialized) when using IDLE</title>
      <link>https://community.esri.com/t5/python-questions/import-arcpy-error-runtimeerror-notinitialized/m-p/450295#M35278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sam,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hmmm... thinking about the FNPLicensingService.exe,&amp;nbsp; normally I don't touch it because it is used by all the applications calling FlexNet Publisher. But, as I install each application, I keep a backup copy of the FNPLicensingService.exe installed by each application. The reason is that the copy in the Macrovision Shared common folder gets clobbered by the latest application installed that uses FNP.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I noticed you have Bently and Autodesk products installed--did you notice additional entries in the fnp_registrations.xml?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What happens if you shutdown ArcGIS (and Bently Microstation, and Adobe Acrobat--anything mentioned in the .xml) and&amp;nbsp; then rename the FNPLicensingService.exe?&amp;nbsp;&amp;nbsp; I think a new copy should get added from cache when you launch ArcGIS Desktop.&amp;nbsp; Then see if that happens, and also what results when you try an import arcview, import ArcPy in IDLE.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards the blank fields--that data along with the "fulfillment" records are contained in the TSF files that get rebuilt during the Activation/authorization exchange process, files are all encrypted so can't be tampered with--they're dependent on FNPLicensingService.exe and libFNP.dll to manipulate.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Stuart&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 15:42:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/import-arcpy-error-runtimeerror-notinitialized/m-p/450295#M35278</guid>
      <dc:creator>V_StuartFoote</dc:creator>
      <dc:date>2011-03-01T15:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: 'Import arcpy' error (RuntimeError: NotInitialized) when using IDLE</title>
      <link>https://community.esri.com/t5/python-questions/import-arcpy-error-runtimeerror-notinitialized/m-p/450296#M35279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Stuart...getting closer!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your question = I've downloaded trial copies of Bentley, Autodesk 3DS Max and Tableau Public in the past. I use none of these now. Below is a copy of the now existing fnp_registrations.xml. Here's the contents of fnp_registrations.xml: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;?xml version="1.0" encoding="UTF-8" ?&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;Activation_Service_Users&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;Publishers&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;Publisher&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;Name&amp;gt;Autodesk&amp;lt;/Name&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;Products&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;Product&amp;gt;Autodesk 3ds Max 2011 32-bit&amp;lt;/Product&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/Products&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/Publisher&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;Publisher&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;Name&amp;gt;Tableau Software Inc.&amp;lt;/Name&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;Products&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;Product&amp;gt;Tableau Public 5.1&amp;lt;/Product&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/Products&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/Publisher&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/Publishers&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/Activation_Service_Users&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Only Autodesk 3DS Max and Tableau Public are mentioned.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Next, I've just renamed the FNPLicensingService.exe after close all apps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Interesting (this may have been the case a few steps ago though). Using IDLE and import arcview and import arcpy calls, I don't get the normal import arcpy RunTime error (going back through the thread I reported this on 02-20-2011 02:45 AM). However, when try calling any arcpy functions/classes, they fail. E.g when I try an export statement on a mxd. The IDLE throws a restart message and does not complete the export?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But, launching ArcMap/ArcCatalog = I get the attached licence error message and neither application opens. So that rename definitely did something. Also, importantly no new FNPLicencingService.exe was created. Renaming back to FNPLicensingService.exe. ArcMap opens fine under SU licence.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bingo. Doesn't this mean that neither a new SU authorisation nor a new installation of ArcGIS Desktop DOES NOT CREATE A NEW FNPLicensingService.exe file. This is confirmed by the date modified = 14/06/2010. This is, I think, the date when I installed ArcGIS for the first time on this machine or thereabouts.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Corrupted FNPLicensingService.exe file causing the problem? How about uninstalling everything that FlexNet uses (including ArcGIS) and reinstalling ArcGIS which hopefully creates a brand new FNPLicensingService.exe file?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or is there a FlexNet repair function?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What do you reckon? Cheers - Sam&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 16:35:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/import-arcpy-error-runtimeerror-notinitialized/m-p/450296#M35279</guid>
      <dc:creator>RachaelYule</dc:creator>
      <dc:date>2011-03-01T16:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: 'Import arcpy' error (RuntimeError: NotInitialized) when using IDLE</title>
      <link>https://community.esri.com/t5/python-questions/import-arcpy-error-runtimeerror-notinitialized/m-p/450297#M35280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Stuart...again for more info...I've uninstalled Bentley, AutoDesk 3DS max and Tableau Public and rebooted.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Now, there is no folder 'Macrovision Shared' in C:\Program Files (x86)\Common Files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. I can't open arcMap/arcCatalog - I get the attached licence error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. I can't authorise a SU licence with a ES valid code. See attached error. I tried a second ESU code just to check it wasn't a limit issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, the two ArcGIS files are still in: C:\ProgramData\FLEXnet, though.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Clean uninstall/reinstall of ArcGIS Desktop or maybe a 'repair' using the install DVD?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll check for a reply later, it's 19:00 here. Cheers Sam&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 17:00:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/import-arcpy-error-runtimeerror-notinitialized/m-p/450297#M35280</guid>
      <dc:creator>RachaelYule</dc:creator>
      <dc:date>2011-03-01T17:00:38Z</dc:date>
    </item>
  </channel>
</rss>

