[PyQt] pyqtdeploy Windows error

Rob Kent rob at gulon.co.uk
Tue Jul 30 13:16:19 BST 2019


HI there,

I’m creating a dead simple application to test a pyqtdeploy sysroot. Everything builds fine, but when I run it I get the following error:


Fatal Python error: init_sys_streams: can't initialize sys standard streams
Traceback (most recent call last):
  File ":/abc.py", line 105, in <module>
  File "bootstrap.py", line 983, in _find_and_load
  File "bootstrap.py", line 965, in _find_and_load_unlocked
ModuleNotFoundError: No module named '_abc'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "bootstrap.py", line 983, in _find_and_load
  File "bootstrap.py", line 967, in _find_and_load_unlocked
  File "bootstrap.py", line 668, in _load_unlocked
  File "bootstrap.py", line 638, in _load_backward_compatible
  File ":/io.py", line 52, in <module>
  File "bootstrap.py", line 983, in _find_and_load
  File "bootstrap.py", line 967, in _find_and_load_unlocked
  File "bootstrap.py", line 668, in _load_unlocked
  File "bootstrap.py", line 638, in _load_backward_compatible
  File ":/abc.py", line 109, in <module>
  File "bootstrap.py", line 983, in _find_and_load
  File "bootstrap.py", line 965, in _find_and_load_unlocked
ModuleNotFoundError: No module named '_py_abc'

When I check the listed frozen files from pyqtdeploy-build although abc.py is there, neither _abc.py or _py_abc are included, although they are there in the lib directory.

My setup is:

Windows 10
MSVC 2017
Python 3.7.2
Qt 5.13.0
Sip 4.19.18
PyQt 5.13.0

My pyqtdeploy project file is set to use the windows shared library.

Any help gratefully appreciated,

Rob

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20190730/444e1004/attachment.html>


More information about the PyQt mailing list