<?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 Licensing in Python script with multiprocessing/arcpy causing &amp;quot;Runtime Error: The Product License has not been initialized&amp;quot; in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/licensing-in-python-script-with-multiprocessing/m-p/1479140#M83811</link>
    <description>&lt;P&gt;I've noticed that when I work with arcpy and multiprocessing together, that it can cause a runtime error: "Runtime Error: The Product License has not been initialized". From what I can tell, this is happening because every pool that is created is trying to import arcpy and is pulling a license from the licensing server and at some point the server runs out of licenses. If I keep the number of pools low, then this error doesn't occur.&lt;/P&gt;&lt;P&gt;On that note though, I don't understand why I would be limited to one instance of arcpy on my computer since I do have a license that I am using. Is there a way to tell arcpy to use my current license without pulling a new license every time a script is run?&lt;/P&gt;</description>
    <pubDate>Mon, 27 May 2024 17:10:29 GMT</pubDate>
    <dc:creator>Matthew_Muehlhauser</dc:creator>
    <dc:date>2024-05-27T17:10:29Z</dc:date>
    <item>
      <title>Licensing in Python script with multiprocessing/arcpy causing "Runtime Error: The Product License has not been initialized"</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/licensing-in-python-script-with-multiprocessing/m-p/1479140#M83811</link>
      <description>&lt;P&gt;I've noticed that when I work with arcpy and multiprocessing together, that it can cause a runtime error: "Runtime Error: The Product License has not been initialized". From what I can tell, this is happening because every pool that is created is trying to import arcpy and is pulling a license from the licensing server and at some point the server runs out of licenses. If I keep the number of pools low, then this error doesn't occur.&lt;/P&gt;&lt;P&gt;On that note though, I don't understand why I would be limited to one instance of arcpy on my computer since I do have a license that I am using. Is there a way to tell arcpy to use my current license without pulling a new license every time a script is run?&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 17:10:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/licensing-in-python-script-with-multiprocessing/m-p/1479140#M83811</guid>
      <dc:creator>Matthew_Muehlhauser</dc:creator>
      <dc:date>2024-05-27T17:10:29Z</dc:date>
    </item>
  </channel>
</rss>

