[QGIS-Developer] import PyQt5.QtCore failed (from OSGeo4W python)
Idan Miara
idan at miara.com
Mon Mar 4 06:45:39 PST 2019
Hi,
I've used the OSGeo4W setup to install PyQt5 and then ran:
import PyQt5.QtCore
from a python shell (OSGeo4W.bat with qt5_env, py3_env inside)
I'm getting the following error:
D:\OSGeo4W64>python
Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit
(AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import PyQt5.QtCore
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
SystemError: initialization of QtCore failed without raising an exception
>>>
Running the same command in a QGIS python shell works fine (same batch file)
Please advise.
Kind regards,
Idan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20190304/dc67c10a/attachment-0001.html>
More information about the QGIS-Developer
mailing list