[QGIS-Developer] win32api in QGIS 3.10

Jochen Schwarze jochen.schwarze at live.unigis.net
Mon Aug 30 03:14:29 PDT 2021


Hi, seems you installed this with the OSGeo4W installer and forgot to install module python3-pywin32 (advanced install)?

Regards, Jochen CShwarze
________________________________
Von: QGIS-Developer <qgis-developer-bounces at lists.osgeo.org> im Auftrag von BARRE Tristan <t.barre at saferna.fr>
Gesendet: Montag, 23. August 2021 12:06
An: qgis-developer at lists.osgeo.org <qgis-developer at lists.osgeo.org>
Betreff: [QGIS-Developer] win32api in QGIS 3.10


Hi everybody,



I’m getting always this error when i try to import win32api in a QGIS plugin :



ImportError: DLL load failed The specified module could not be found



I've tried in python console, same result. I've tried in python console to get all available modules with help('module'), this time i have a new error :



Traceback (most recent call last): The specified file could not be found

  File "C:/OSGEO4~1/apps/qgis-ltr/./python\console\console_sci.py", line 435, in keyPressEvent

    self.entered()

  File "C:/OSGEO4~1/apps/qgis-ltr/./python\console\console_sci.py", line 603, in entered

    self.runCommand(self.currentCommand())

  File "C:/OSGEO4~1/apps/qgis-ltr/./python\console\console_sci.py", line 616, in runCommand

    import webbrowser

  File "C:/OSGEO4~1/apps/qgis-ltr/./python\qgis\utils.py", line 784, in _import

    _import_paths[p] = _AddDllDirectory(p)

  File "C:/OSGEO4~1/apps/qgis-ltr/./python\qgis\utils.py", line 731, in _errcheck_zero

    raise ctypes.WinError(ctypes.get_last_error())

FileNotFoundError: [WinError 2]



For several days, i’ve been on the problem, without finding a solution.



Regards.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20210830/2eebe2de/attachment.html>


More information about the QGIS-Developer mailing list