Dependency issues seen using pyqtdeploy 3.x, where 2.x seemed to work fine
Justin M. Vieira
JVieira at nccusa.com
Wed Jan 26 14:59:25 GMT 2022
Good day, Phil and everyone else on the pyqt listserv J,
I have been working with Gerard to try and get around the issue he posted, in email, below, and have a few questions:
1. Is there any suggestion for how to workaround the ModuleNotFoundError: No module named 'asyncio' issue Gerard is seeing?
2. Is there any technical explanation of how a package such as “argparse” is loaded differently from a stdlib one such as “asyncio”, which would be causing the ModuleNotFoundError?
Thank you for your assistance so far; We are hoping to be able to figure out a workaround for these pyqtdeploy issues in 3.x, that we previously did not see in 2.x.
Warmest regards,
Justin Vieira
Senior Engineer / tyllPOS Team Lead
National Computer Corporation, Inc.
122 Park Place Ct
Greenville, SC 29607
Phone: 734.635.0694
Toll-Free: 866.944.5164
FAX: 864.235.7688
www.nccusa.com <http://www.nccusa.com/>
<https://www.facebook.com/NCCPOS>
<https://www.linkedin.com/company/669277?trk=tyah&trkInfo=tarId%3A1406213896744%2Ctas%3Anational%20computer%20cor%2Cidx%3A1-1-1>
<https://twitter.com/NCCPOS>
<https://plus.google.com/u/0/b/113487460433405494805/113487460433405494805/about>
This e-mail and any attachment is for authorized use by the intended recipient's only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed, retained or used by any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender.
From: Gerard Marull Paretas [mailto:gerard at teslabs.com]
Sent: Monday, January 24, 2022 9:47 AM
To: Phil Thompson
Cc: Justin M. Vieira; pyqt at riverbankcomputing.com
Subject: Re: Dependency issues seen using pyqtdeploy 3.x, where 2.x seemed to work fine
So I'm still failing to solve issues on some stdlib packages such as asyncio.
1. I've modified pyqt-demo.py so that it import asyncio
2. Added "Python:asyncio" to "parts" list in pyqt-demo.pdt
3. Rebuilt (linux-64 target). Then observe
Traceback (most recent call last):
File "pyqt-demo.py", line 11, in <module>
import asyncio
File "bootstrap-3.7.0.py", line 983, in _find_and_load
File "bootstrap-3.7.0.py", line 965, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'asyncio'
So, what is the way to include packages such as asyncio? This doesn't seem to happen for packages such as argparse.
On Fri, Nov 12, 2021 at 5:10 PM Phil Thompson <phil at riverbankcomputing.com> wrote:
On 12/11/2021 16:00, Gerard Marull Paretas wrote:
> On Fri, Nov 12, 2021 at 4:47 PM Phil Thompson
> <phil at riverbankcomputing.com>
> wrote:
>
>> On 12/11/2021 15:22, Justin M. Vieira wrote:
>> > Greetings, everyone J!
>> >
>> > Our dev team is currently stuck, attempting to use pyqtdeploy with
>> > certain dependencies.
>> >
>> > Before (pyqtdeploy 2.x):
>> >
>> > Now (3.x), the maximum I can select is std packages:
>> >
>> > And still, if e.g. I select "asyncio", I get this when running
>> > (linux-64 build):
>>
>> I'm not sure about that one. Is it completely missing from the
>> executable?
>>
>
> It looks like it is the case, yes. One strange thing is that asyncio
> appears in orange color, does that mean something?
https://www.riverbankcomputing.com/static/Docs/pyqtdeploy/pyqtdeploy.html#specifying-the-imported-packages
Phil
--
<https://drive.google.com/a/teslabs.com/uc?id=1XVYnihoKWjUuPAGj5bGT1r6-ZaxP0HcC&export=download>
Gerard Marull-Paretas
Teslabs Engineering S.L.
teslabs.com <http://teslabs.com> T. +34 622 321 312
CONFIDENTIALITY NOTICE:
The contents of this email message and any attachments are intended solely for the addressee(s)
and may contain confidential and/or privileged information and may be legally protected from
disclosure. If you are not the intended recipient of this message or their agent, or if this message
has been addressed to you in error, please immediately alert the sender by reply email and then
delete this message and any attachments. If you are not the intended recipient, you are hereby
notified that any use, dissemination, copying, or storage of this message or its attachments is
strictly prohibited.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20220126/443e69da/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 34970 bytes
Desc: image001.png
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20220126/443e69da/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 932 bytes
Desc: image002.jpg
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20220126/443e69da/attachment-0004.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.jpg
Type: image/jpeg
Size: 1026 bytes
Desc: image003.jpg
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20220126/443e69da/attachment-0005.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.jpg
Type: image/jpeg
Size: 993 bytes
Desc: image004.jpg
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20220126/443e69da/attachment-0006.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image005.jpg
Type: image/jpeg
Size: 1072 bytes
Desc: image005.jpg
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20220126/443e69da/attachment-0007.jpg>
More information about the PyQt
mailing list