<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi, seems you installed this with the OSGeo4W installer and forgot to install module python3-pywin32 (advanced install)?</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Regards, Jochen CShwarze<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Von:</b> QGIS-Developer <qgis-developer-bounces@lists.osgeo.org> im Auftrag von BARRE Tristan <t.barre@saferna.fr><br>
<b>Gesendet:</b> Montag, 23. August 2021 12:06<br>
<b>An:</b> qgis-developer@lists.osgeo.org <qgis-developer@lists.osgeo.org><br>
<b>Betreff:</b> [QGIS-Developer] win32api in QGIS 3.10</font>
<div> </div>
</div>
<style>
<!--
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
p.x_MsoNormal, li.x_MsoNormal, div.x_MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
code
        {font-family:"Courier New"}
pre
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New"}
span.x_EmailStyle17
        {font-family:"Calibri",sans-serif;
        color:windowtext}
span.x_PrformatHTMLCar
        {font-family:"Courier New"}
.x_MsoChpDefault
        {font-family:"Calibri",sans-serif}
@page WordSection1
        {margin:70.85pt 70.85pt 70.85pt 70.85pt}
div.x_WordSection1
        {}
-->
</style>
<div lang="FR" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="x_WordSection1">
<p class="x_MsoNormal">Hi everybody, </p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">I’m getting always this error when i try to import win32api in a QGIS plugin :
</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal"><span style="font-size:10.0pt; font-family:"Courier New"">ImportError: DLL load failed The specified module could not be found</span></p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">I've tried in python console, same result. I've tried in python console to get all available modules with
<code><span style="font-size:10.0pt">help('module')</span></code>, this time i have a new error :</p>
<p class="x_MsoNormal"> </p>
<pre><code>Traceback (most recent call last): The specified file could not be found</code></pre>
<pre><code>  File "C:/OSGEO4~1/apps/qgis-ltr/./python\console\console_sci.py", line 435, in keyPressEvent</code></pre>
<pre><code>    self.entered()</code></pre>
<pre><code>  File "C:/OSGEO4~1/apps/qgis-ltr/./python\console\console_sci.py", line 603, in entered</code></pre>
<pre><code>    self.runCommand(self.currentCommand())</code></pre>
<pre><code>  File "C:/OSGEO4~1/apps/qgis-ltr/./python\console\console_sci.py", line 616, in runCommand</code></pre>
<pre><code>    import webbrowser</code></pre>
<pre><code>  File "C:/OSGEO4~1/apps/qgis-ltr/./python\qgis\utils.py", line 784, in _import</code></pre>
<pre><code>    _import_paths[p] = _AddDllDirectory(p)</code></pre>
<pre><code>  File "C:/OSGEO4~1/apps/qgis-ltr/./python\qgis\utils.py", line 731, in _errcheck_zero</code></pre>
<pre><code>    raise ctypes.WinError(ctypes.get_last_error())</code></pre>
<pre><code>FileNotFoundError: [WinError 2]</code></pre>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">For several days, i’ve been on the problem, without finding a solution.</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">Regards. </p>
<p class="x_MsoNormal"> </p>
</div>
</div>
</body>
</html>