[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] pyqtdeploy Windows error
From:       Rob Kent <rob () gulon ! co ! uk>
Date:       2019-07-30 14:24:16
Message-ID: etPan.5d405310.3bf0e4e6.2cc () gulon ! co ! uk
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Even further to my last,

Doesn't seem to matter whether I link against the .lib file generated as part of the \
sysroot or against the .dll belonging to the host python: exactly the same result.

Thanks, Rob


On 30 July 2019 at 14:38:30, Rob Kent (rob@gulon.co.uk) wrote:

Further to my last,

It seems to me that ‘_abc' is a module that is compiled from C and therefore should \
be included in the python shared lib (is that correct?) and ‘_py_abc' is a fallback \
pure python implementation that is not being included as it shouldn't be needed. If \
thats's the case: why can't my application find the ‘abc' module in the python lib? \
Where should I start to look for my misconfiguration?

Thanks, Rob


On 30 July 2019 at 13:16:23, Rob Kent (rob@gulon.co.uk) wrote:

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

_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt


[Attachment #5 (text/html)]

<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body><div \
style="font-family:Helvetica,Arial;font-size:13px; ; ">Even further to my \
last,</div><div style="font-family:Helvetica,Arial;font-size:13px; ; "><br></div><div \
style="font-family:Helvetica,Arial;font-size:13px; ; ">Doesn't seem to matter whether \
I link against the .lib file generated as part of the sysroot or against the .dll \
belonging to the host python: exactly the same result.</div><div \
style="font-family:Helvetica,Arial;font-size:13px; ; "><br></div><div \
style="font-family:Helvetica,Arial;font-size:13px; ; ">Thanks, Rob</div> <br> <div \
class="gmail_signature"></div> <br><p class="airmail_on">On 30 July 2019 at 14:38:30, \
Rob Kent (<a href="mailto:rob@gulon.co.uk">rob@gulon.co.uk</a>) wrote:</p> \
<blockquote type="cite" class="clean_bq"><span><div><div></div><div>




<title></title>


<div style="font-family:Helvetica,Arial;font-size:13px; ;">Further
to my last,</div>
<div style="font-family:Helvetica,Arial;font-size:13px; ;">
<br></div>
<div style="font-family:Helvetica,Arial;font-size:13px; ;">It seems
to me that ‘_abc' is a module that is compiled from C and therefore
should be included in the python shared lib (is that correct?) and
‘_py_abc' is a fallback pure python implementation that is not
being included as it shouldn't be needed. If thats's the case: why
can't my application find the ‘abc' module in the python lib? Where
should I start to look for my misconfiguration?</div>
<div style="font-family:Helvetica,Arial;font-size:13px; ;">
<br></div>
<div style="font-family:Helvetica,Arial;font-size:13px; ;">Thanks,
Rob</div>
<br>
<div class="gmail_signature"></div>
<br>
<p class="airmail_on">On 30 July 2019 at 13:16:23, Rob Kent
(<a href="mailto:rob@gulon.co.uk">rob@gulon.co.uk</a>) wrote:</p>
<blockquote type="cite" class="clean_bq">
<div>
<div>
<div style="font-family:Helvetica,Arial;font-size:13px; ;">
<div style="margin: 0px;"><span>HI there,</span></div>
<div style="margin: 0px;"><span><br></span></div>
<div style="margin: 0px;"><span>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:</span></div>
<div style="margin: 0px;"><span><br></span></div>
<div style="margin: 0px;"><span><br></span></div>
<div style="margin: 0px;"><span>Fatal Python error:
init_sys_streams: can't initialize sys standard
streams</span></div>
<div style="margin: 0px;"><span>Traceback (most recent call
last):</span></div>
<div style="margin: 0px;"><span>&nbsp; File ":/abc.py", line 105,
in &lt;module&gt;</span></div>
<div style="margin: 0px;"><span>&nbsp; File "bootstrap.py", line
983, in _find_and_load</span></div>
<div style="margin: 0px;"><span>&nbsp; File "bootstrap.py", line
965, in _find_and_load_unlocked</span></div>
<div style="margin: 0px;"><span>ModuleNotFoundError: No module
named '_abc'</span></div>
<div style="margin: 0px;"><span><br></span></div>
<div style="margin: 0px;"><span>During handling of the above
exception, another exception occurred:</span></div>
<div style="margin: 0px;"><span><br></span></div>
<div style="margin: 0px;"><span>Traceback (most recent call
last):</span></div>
<div style="margin: 0px;"><span>&nbsp; File "bootstrap.py", line
983, in _find_and_load</span></div>
<div style="margin: 0px;"><span>&nbsp; File "bootstrap.py", line
967, in _find_and_load_unlocked</span></div>
<div style="margin: 0px;"><span>&nbsp; File "bootstrap.py", line
668, in _load_unlocked</span></div>
<div style="margin: 0px;"><span>&nbsp; File "bootstrap.py", line
638, in _load_backward_compatible</span></div>
<div style="margin: 0px;"><span>&nbsp; File ":/io.py", line 52, in
&lt;module&gt;</span></div>
<div style="margin: 0px;"><span>&nbsp; File "bootstrap.py", line
983, in _find_and_load</span></div>
<div style="margin: 0px;"><span>&nbsp; File "bootstrap.py", line
967, in _find_and_load_unlocked</span></div>
<div style="margin: 0px;"><span>&nbsp; File "bootstrap.py", line
668, in _load_unlocked</span></div>
<div style="margin: 0px;"><span>&nbsp; File "bootstrap.py", line
638, in _load_backward_compatible</span></div>
<div style="margin: 0px;"><span>&nbsp; File ":/abc.py", line 109,
in &lt;module&gt;</span></div>
<div style="margin: 0px;"><span>&nbsp; File "bootstrap.py", line
983, in _find_and_load</span></div>
<div style="margin: 0px;"><span>&nbsp; File "bootstrap.py", line
965, in _find_and_load_unlocked</span></div>
<div style="margin: 0px;"><span>ModuleNotFoundError: No module
named '_py_abc'</span></div>
</div>
<div><span><br></span></div>
<div><span>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.</span></div>
<div><span><br></span></div>
<div><span>My setup is:</span></div>
<div><span><br></span></div>
<div><span>Windows 10</span></div>
<div><span>MSVC 2017</span></div>
<div><span>Python 3.7.2</span></div>
<div><span>Qt 5.13.0</span></div>
<div><span>Sip 4.19.18</span></div>
<div><span>PyQt 5.13.0</span></div>
<div><span><br></span></div>
<div><span>My pyqtdeploy project file is set to use the windows
shared library.</span></div>
<div><span><br></span></div>
<div><span>Any help gratefully appreciated,</span></div>
<div><span><br></span></div>
<div><span>Rob</span></div>
<div><span><br></span></div>
<div class="gmail_signature"></div>
<span>_______________________________________________<br>
PyQt mailing list PyQt@riverbankcomputing.com<br>
https://www.riverbankcomputing.com/mailman/listinfo/pyqt<br></span></div>
</div>
</blockquote>


</div></div></span></blockquote></body></html>


[Attachment #6 (text/plain)]

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic