<?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: After upgrade to ArcGIS Pro 3.1 Python ImportError: DLL load failed while importing _win32sysloader: The specified module could not be found. in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/after-upgrade-to-arcgis-pro-3-1-python-importerror/m-p/1261690#M67862</link>
    <description>&lt;P&gt;I was using the default 'arcgispro-py3' Python environment.&lt;/P&gt;</description>
    <pubDate>Fri, 24 Feb 2023 21:47:33 GMT</pubDate>
    <dc:creator>Jamie_Leitch_CNF</dc:creator>
    <dc:date>2023-02-24T21:47:33Z</dc:date>
    <item>
      <title>After upgrade to ArcGIS Pro 3.1 Python ImportError: DLL load failed while importing _win32sysloader: The specified module could not be found.</title>
      <link>https://community.esri.com/t5/python-questions/after-upgrade-to-arcgis-pro-3-1-python-importerror/m-p/1261608#M67860</link>
      <description>&lt;P&gt;I just upgraded from ArcGIS Pro 3.0.3 to 3.1.&amp;nbsp; Now when I run the following script in a python window:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;from arcgis.gis import GIS
portal = "https://arcgis.com"
user = "my user"
password = "my password"
gis = GIS(portal, user, password)&lt;/LI-CODE&gt;&lt;P&gt;I see these errors on the last line:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;Traceback (most recent call last):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\auth\_auth\_winauth.py", line 63, in __init__&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;self.auth = requests_negotiate_sspi.HttpNegotiateAuth()&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\auth\tools\_lazy.py", line 48, in __getattr__&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;return getattr(self._load(), attrb)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\auth\tools\_lazy.py", line 44, in _load&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;self._mod = importlib.import_module(self._module_name)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\importlib\__init__.py", line 127, in import_module&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;return _bootstrap._gcd_import(name[level:], package, level)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;File "&amp;lt;frozen importlib._bootstrap&amp;gt;", line 1030, in _gcd_import&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;File "&amp;lt;frozen importlib._bootstrap&amp;gt;", line 1007, in _find_and_load&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;File "&amp;lt;frozen importlib._bootstrap&amp;gt;", line 986, in _find_and_load_unlocked&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;File "&amp;lt;frozen importlib._bootstrap&amp;gt;", line 680, in _load_unlocked&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;File "&amp;lt;frozen importlib._bootstrap_external&amp;gt;", line 850, in exec_module&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;File "&amp;lt;frozen importlib._bootstrap&amp;gt;", line 228, in _call_with_frames_removed&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\requests_negotiate_sspi\__init__.py", line 4, in &amp;lt;module&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;from .requests_negotiate_sspi import HttpNegotiateAuth # noqa&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\requests_negotiate_sspi\requests_negotiate_sspi.py", line 10, in &amp;lt;module&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;import pywintypes&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\win32\lib\pywintypes.py", line 128, in &amp;lt;module&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;__import_pywin32_system_module__("pywintypes", globals())&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\win32\lib\pywintypes.py", line 49, in __import_pywin32_system_module__&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;import _win32sysloader&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;ImportError: DLL load failed while importing _win32sysloader: The specified module could not be found.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;During handling of the above exception, another exception occurred:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;Traceback (most recent call last):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;File "&amp;lt;string&amp;gt;", line 7, in &amp;lt;module&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\gis\__init__.py", line 585, in __init__&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;raise e&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\gis\__init__.py", line 524, in __init__&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;self._portal = _portalpy.Portal(&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\gis\_impl\_portalpy.py", line 205, in __init__&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;self.con = Connection(&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\gis\_impl\_con\_connection.py", line 344, in __init__&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;self._create_session()&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\gis\_impl\_con\_connection.py", line 507, in _create_session&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;self._session = EsriSession(&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\auth\api.py", line 198, in __init__&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;self.auth = EsriWindowsAuth(referer=referer, verify_cert=verify_cert)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\auth\_auth\_winauth.py", line 95, in __init__&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;raise Exception(&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;Exception: NTLM authentication requires requests_negotiate_sspi module.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Any ideas?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 20:21:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/after-upgrade-to-arcgis-pro-3-1-python-importerror/m-p/1261608#M67860</guid>
      <dc:creator>Jamie_Leitch_CNF</dc:creator>
      <dc:date>2023-02-24T20:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: After upgrade to ArcGIS Pro 3.1 Python ImportError: DLL load failed while importing _win32sysloader: The specified module could not be found.</title>
      <link>https://community.esri.com/t5/python-questions/after-upgrade-to-arcgis-pro-3-1-python-importerror/m-p/1261683#M67861</link>
      <description>&lt;P&gt;Before the upgrade to Pro 3.1, were you using the default 'arcgispro-py3' Python environment, or a customized clone created with the ArcGIS Pro "Package Manager"?&lt;/P&gt;&lt;P&gt;If the latter, I guess you may need to update the cloned Python environment for the latest version. Pro will even automatically switch to the default 'arcgispro-py3' environment, if the clone is not up-to-date, and display a warning, so you may be missing vital packages now that you installed in the clone. The "Environment Manager" that is part of the "Package Manager" will show this with a special icon next to the environment that offers the option to upgrade the environment, which seemed to work well in my personal case. Only after upgrading, will you be able switch back to your customized cloned environment and activate it for use in your workflow and scripts.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 21:40:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/after-upgrade-to-arcgis-pro-3-1-python-importerror/m-p/1261683#M67861</guid>
      <dc:creator>MarcoBoeringa</dc:creator>
      <dc:date>2023-02-24T21:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: After upgrade to ArcGIS Pro 3.1 Python ImportError: DLL load failed while importing _win32sysloader: The specified module could not be found.</title>
      <link>https://community.esri.com/t5/python-questions/after-upgrade-to-arcgis-pro-3-1-python-importerror/m-p/1261690#M67862</link>
      <description>&lt;P&gt;I was using the default 'arcgispro-py3' Python environment.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 21:47:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/after-upgrade-to-arcgis-pro-3-1-python-importerror/m-p/1261690#M67862</guid>
      <dc:creator>Jamie_Leitch_CNF</dc:creator>
      <dc:date>2023-02-24T21:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: After upgrade to ArcGIS Pro 3.1 Python ImportError: DLL load failed while importing _win32sysloader: The specified module could not be found.</title>
      <link>https://community.esri.com/t5/python-questions/after-upgrade-to-arcgis-pro-3-1-python-importerror/m-p/1263989#M67863</link>
      <description>&lt;P&gt;FYI for anyone that may encounter this issue, I uninstalled Pro, and downloaded the 3.1 install file from MyEsri and installed from that.&amp;nbsp; After that I still had this error, so I ran &lt;STRONG&gt;pip uninstall pywin32&lt;/STRONG&gt;, then &lt;STRONG&gt;pip install pywin32&lt;/STRONG&gt;, and the issue resolved.&amp;nbsp; I have colleagues that did not have this issue so it may have been something specific with my setup.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2023 15:03:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/after-upgrade-to-arcgis-pro-3-1-python-importerror/m-p/1263989#M67863</guid>
      <dc:creator>Jamie_Leitch_CNF</dc:creator>
      <dc:date>2023-03-03T15:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: After upgrade to ArcGIS Pro 3.1 Python ImportError: DLL load failed while importing _win32sysloader: The specified module could not be found.</title>
      <link>https://community.esri.com/t5/python-questions/after-upgrade-to-arcgis-pro-3-1-python-importerror/m-p/1292602#M67864</link>
      <description>&lt;P&gt;Had the same issue ... updated from Pro 2.9.x to 3.1.1 and could not execute any scripts that used the arcgis module.&amp;nbsp; Uninstalled and reinstalled the pywin32 module and it seems like things are back on track.&lt;BR /&gt;&lt;BR /&gt;Thanks a lot for this!&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 15:40:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/after-upgrade-to-arcgis-pro-3-1-python-importerror/m-p/1292602#M67864</guid>
      <dc:creator>mpboyle</dc:creator>
      <dc:date>2023-05-24T15:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: After upgrade to ArcGIS Pro 3.1 Python ImportError: DLL load failed while importing _win32sysloader: The specified module could not be found.</title>
      <link>https://community.esri.com/t5/python-questions/after-upgrade-to-arcgis-pro-3-1-python-importerror/m-p/1292666#M67865</link>
      <description>&lt;P&gt;One thing I have noticed is that is takes much longer to connect to a portal on the machine where we re-installed the pywin32 module.&amp;nbsp; My normal work machine was silently updated to 3.1.1 with no issues.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I do a simple timing of how long it takes to establish a connection, it takes 3 to 4 times longer on the machine where we did the re-install.&amp;nbsp; I know this is nit-picking over a few seconds, but I'm wondering if there's a reason for this...?&lt;/P&gt;&lt;P&gt;The first screenshot below is for my work machine (slient update, no issues), and the second is for the machine where we re-installed the pywin32 module.&amp;nbsp; The connection parameters are the same (url, username, password).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mpboyle_0-1684946035159.png" style="width: 300px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/71588i8B2927047129E521/image-dimensions/300x30?v=v2" width="300" height="30" role="button" title="mpboyle_0-1684946035159.png" alt="mpboyle_0-1684946035159.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mpboyle_1-1684946092539.png" style="width: 302px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/71590iB4E8BB2740272B7A/image-dimensions/302x23?v=v2" width="302" height="23" role="button" title="mpboyle_1-1684946092539.png" alt="mpboyle_1-1684946092539.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 16:37:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/after-upgrade-to-arcgis-pro-3-1-python-importerror/m-p/1292666#M67865</guid>
      <dc:creator>mpboyle</dc:creator>
      <dc:date>2023-05-24T16:37:49Z</dc:date>
    </item>
  </channel>
</rss>

