[QGIS-Developer] Python support broken in OSGeo4W nightly?

Denis Rouzaud denis.rouzaud at gmail.com
Tue Jun 5 06:28:35 PDT 2018


Hi Andreas,

It's my fault, it'll be fixed by tomorrow's build.
In the mean time, you can manually fix this by adding missing __init__.py
in python/{core|gui|analysis|server}/
you can use empty files as a quick and dirty or copy the content from here
(rename .py.in to .py)
https://github.com/qgis/QGIS/blob/master/python/core/__init__.py.in

Sorry for the inconvenience.
Denis


Le mar. 5 juin 2018 à 09:15, Andreas Neumann <a.neumann at carto.net> a écrit :

> Hi,
>
> With version https://github.com/qgis/QGIS/commit/8f55093642 (OSGeo4W
> nightly of QGIS master) I get a Python error message on startup, and as a
> result all Python support is disabled:
>
> Error message:
>
> ----------------
>
>
> Traceback (most recent call last):
>   File "", line 1, in
>   File "C:/Programme/OSGeo4W64/apps/qgis-dev/./python\qgis\utils.py", line
> 33, in
>     from qgis.core import Qgis, QgsExpression, QgsMessageLog, qgsfunction,
> QgsMessageOutput, QgsWkbTypes
> ImportError: cannot import name 'Qgis'
>
> -------------------------
>
> Is this a windows specific problem or a general problem in master in this
> commit?
>
> Or is this fixed by
> https://github.com/qgis/QGIS/commit/8ef0d1f7d95bdc52904cd1d075f2f409f8523cb6
>  ?
>
> Thanks for your reply,
>
> Andreas
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20180605/b5968ee6/attachment.html>


More information about the QGIS-Developer mailing list