[osgeo4w-dev] [osgeo4w] #763: Update pywin32 (>300, current 228) to remove deprecation warning

OSGeo4W trac_osgeo4w at osgeo.org
Sun Oct 23 05:21:51 PDT 2022


#763: Update pywin32 (>300, current 228) to remove deprecation warning
------------------------+---------------------------
Reporter:  nicogodet    |      Owner:  osgeo4w-dev@…
    Type:  enhancement  |     Status:  new
Priority:  minor        |  Component:  Package
 Version:               |   Keywords:
------------------------+---------------------------
 https://github.com/mhammond/pywin32/issues/1256

 {{{
 2022-10-23T14:02:30     WARNING
 warning:C:\OSGeo4W/apps/qgis/./python\qgis\utils.py:888:
 DeprecationWarning: the imp module is deprecated in favour of importlib;
 see the module's documentation for alternative uses
               mod = _builtin_import(name, globals, locals, fromlist,
 level)

              traceback: File "", line 1, in
               File "C:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line
 443, in startPlugin
               if not _startPlugin(packageName):
               File "C:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line
 423, in _startPlugin
               plugins[packageName] = package.classFactory(iface)
               File
 "C:\Users/godet/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\cartoZI\__init__.py",
 line 42, in classFactory
               from .main import MainPlugin
               File "C:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line
 888, in _import
               mod = _builtin_import(name, globals, locals, fromlist,
 level)
               File "", line 1007, in _find_and_load
               File "", line 986, in _find_and_load_unlocked
               File "", line 680, in _load_unlocked
               File "", line 855, in exec_module
               File "", line 228, in _call_with_frames_removed
               File
 "C:\Users/godet/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\cartoZI\main.py",
 line 57, in
               from cartoZI.gui.prefDialog import PrefDialog
               File "C:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line
 888, in _import
               mod = _builtin_import(name, globals, locals, fromlist,
 level)
               File "", line 1007, in _find_and_load
               File "", line 986, in _find_and_load_unlocked
               File "", line 680, in _load_unlocked
               File "", line 855, in exec_module
               File "", line 228, in _call_with_frames_removed
               File
 "C:\Users/godet/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\cartoZI\gui\prefDialog.py",
 line 1, in
               from pkg_resources import resource_filename
               File "C:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line
 888, in _import
               mod = _builtin_import(name, globals, locals, fromlist,
 level)
               File "", line 1007, in _find_and_load
               File "", line 986, in _find_and_load_unlocked
               File "", line 680, in _load_unlocked
               File "", line 855, in exec_module
               File "", line 228, in _call_with_frames_removed
               File "C:\OSGeo4W\apps\Python39\lib\site-
 packages\pkg_resources\__init__.py", line 74, in
               from pkg_resources.extern import appdirs
               File "C:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line
 888, in _import
               mod = _builtin_import(name, globals, locals, fromlist,
 level)
               File "", line 1058, in _handle_fromlist
               File "", line 228, in _call_with_frames_removed
               File "", line 1007, in _find_and_load
               File "", line 986, in _find_and_load_unlocked
               File "", line 666, in _load_unlocked
               File "", line 565, in module_from_spec
               File "C:\OSGeo4W\apps\Python39\lib\site-
 packages\pkg_resources\extern\__init__.py", line 52, in create_module
               return self.load_module(spec.name)
               File "C:\OSGeo4W\apps\Python39\lib\site-
 packages\pkg_resources\extern\__init__.py", line 37, in load_module
               __import__(extant)
               File "C:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line
 888, in _import
               mod = _builtin_import(name, globals, locals, fromlist,
 level)
               File "", line 1007, in _find_and_load
               File "", line 986, in _find_and_load_unlocked
               File "", line 680, in _load_unlocked
               File "", line 855, in exec_module
               File "", line 228, in _call_with_frames_removed
               File "C:\OSGeo4W\apps\Python39\lib\site-
 packages\pkg_resources\_vendor\appdirs.py", line 560, in
               import win32com.shell
               File "C:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line
 888, in _import
               mod = _builtin_import(name, globals, locals, fromlist,
 level)
               File "", line 1007, in _find_and_load
               File "", line 972, in _find_and_load_unlocked
               File "", line 228, in _call_with_frames_removed
               File "", line 1007, in _find_and_load
               File "", line 986, in _find_and_load_unlocked
               File "", line 680, in _load_unlocked
               File "", line 855, in exec_module
               File "", line 228, in _call_with_frames_removed
               File "C:\OSGeo4W\apps\Python39\lib\site-
 packages\win32com\__init__.py", line 6, in
               import pythoncom
               File "C:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line
 888, in _import
               mod = _builtin_import(name, globals, locals, fromlist,
 level)
               File "", line 1007, in _find_and_load
               File "", line 986, in _find_and_load_unlocked
               File "", line 680, in _load_unlocked
               File "", line 855, in exec_module
               File "", line 228, in _call_with_frames_removed
               File "C:\OSGeo4W\apps\Python39\lib\site-
 packages\pythoncom.py", line 2, in
               import pywintypes
               File "C:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line
 888, in _import
               mod = _builtin_import(name, globals, locals, fromlist,
 level)
               File "", line 1007, in _find_and_load
               File "", line 986, in _find_and_load_unlocked
               File "", line 680, in _load_unlocked
               File "", line 855, in exec_module
               File "", line 228, in _call_with_frames_removed
               File "C:\OSGeo4W\apps\Python39\lib\site-
 packages\win32\lib\pywintypes.py", line 2, in
               import imp, sys, os
               File "C:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line
 888, in _import
               mod = _builtin_import(name, globals, locals, fromlist,
 level)
               File "", line 1007, in _find_and_load
               File "", line 986, in _find_and_load_unlocked
               File "", line 680, in _load_unlocked
               File "", line 855, in exec_module
               File "", line 228, in _call_with_frames_removed
               File "C:\OSGeo4W\apps\Python39\lib\imp.py", line 31, in
               warnings.warn("the imp module is deprecated in favour of
 importlib; "
 }}}
-- 
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/763>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.


More information about the osgeo4w-dev mailing list