[QGIS-Developer] win32api in QGIS 3.10

BARRE Tristan t.barre at saferna.fr
Mon Aug 23 03:06:48 PDT 2021


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/20210823/65da1bb7/attachment.html>


More information about the QGIS-Developer mailing list