[osgeo4w-dev] [osgeo4w] #669: Modules missing in OSGeo4w installation since since QGIS 3.18 update

OSGeo4W trac_osgeo4w at osgeo.org
Fri Mar 19 10:59:07 PDT 2021


#669: Modules missing in OSGeo4w installation since since QGIS 3.18 update
---------------------+---------------------------
Reporter:  jelstner  |      Owner:  osgeo4w-dev@…
    Type:  defect    |     Status:  new
Priority:  major     |  Component:  Installer
 Version:            |   Keywords:
---------------------+---------------------------
 Following this advice https://lists.osgeo.org/pipermail/qgis-
 user/2021-February/048137.html
 I did a complete reinstall of my OSGeo4w environment for the QGIS 3.18
 update.

 Since then I experience some issues that might be caused by something
 missing in the new packaging:

 1. At least one core python module is missing; **doctests**
 (https://docs.python.org/3/library/doctest.html). I found that out when
 sphinx.ext.autodoc failed to start. The problem was solved when I put a
 fresh Python install (manually downloaded from python.org) over the
 C:\OSGeo4W64\apps\Python39 directory. Not the gentle way. but does its
 job.

 2. My PyCharm and my Sphinx installation can't read the QGIS .pyd files
 anymore. Python in QGIS itself still works, but PyCharm doesn't build
 skeletons for the QGIS API and Sphinx fails to document my plugin. They
 use the same paths as QGIS, I already double-checked that.
 The error message in the PyCharm console suggests to me that PyCharm even
 finds the _core.pyd file, but fails to read it:

 {{{#!python
 Python 3.9.0 (tags/v3.9.0:9cf6752, Oct  5 2020, 15:34:40) [MSC v.1927 64
 bit (AMD64)] on win32
 from qgis._core import QgsFeature
 Traceback (most recent call last):
   File "<input>", line 1, in <module>
   File "C:\Program Files\JetBrains\PyCharm Community Edition
 2020.2.5\plugins\python-
 ce\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in
 do_import
     module = self._system_import(name, *args, **kwargs)
 ImportError: DLL load failed while importing _core: Das angegebene Modul
 wurde nicht gefunden.
 }}}

 The Sphinx warning looks like this:

 {{{
 WARNING: autodoc: failed to import module 'config' from module
 'RailTopoGIS'; the following exception was raised:
 DLL load failed while importing _core: Das angegebene Modul wurde nicht
 gefunden.
 }}}

 I don't know whether both points are related to each other. If you think
 it's better, I can split it up into two issues.

-- 
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/669>
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