id,summary,reporter,owner,description,type,status,priority,component,version,resolution,keywords,cc
669,Modules missing in OSGeo4w installation since since QGIS 3.18 update,jelstner,osgeo4w-dev@…,"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 """", line 1, in
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.",defect,closed,major,Installer,,fixed,,