Error (530) when building sample project "Qt for Python using QML"

When I run the sample project according to the step by step quide in “How to build a GUI with Qt for Python and TorizonCore” I get an error message

I am running a Fedora 36 VM using the Toradex Torizon Support extension in VSCodium
Docker version 20.10.17, build 100c701

When I press f5 after creating the default froject, the following output appears:

Local docker exception. :: Error (530) - Docker exception: The command '/bin/sh -c apt-get update     && apt-get install -y --no-install-recommends     dos2unix     python3-minimal     python3-pip     python3-setuptools     qml-module-qtquick-controls     qml-module-qtquick-controls2     qml-module-qtquick2     python3-pyside2.qtwidgets     python3-pyside2.qtgui     python3-pyside2.qtqml     python3-pyside2.qtcore     python3-pyside2.qtquick     python3-pyside2.qtnetwork     qml-module-qtquick-dialogs     && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100
code:100
message:The command '/bin/sh -c apt-get update     && apt-get install -y --no-install-recommends     dos2unix     python3-minimal     python3-pip     python3-setuptools     qml-module-qtquick-controls     qml-module-qtquick-controls2     qml-module-qtquick2     python3-pyside2.qtwidgets     python3-pyside2.qtgui     python3-pyside2.qtqml     python3-pyside2.qtcore     python3-pyside2.qtquick     python3-pyside2.qtnetwork     qml-module-qtquick-dialogs     && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100
Step 1/16 : FROM --platform=linux/arm64 torizon/qt5-wayland:2


 ---> 913d7c9198df

Step 2/16 : EXPOSE 6502


 ---> Using cache

 ---> 7eabf2effc1f

Step 3/16 : ARG SSHUSERNAME=torizon


 ---> Using cache

 ---> 3605a45df3b6

Step 4/16 : ENV DEBIAN_FRONTEND="noninteractive"


 ---> Using cache

 ---> 1f08cbcf1dd2

Step 5/16 : RUN apt-get update     && apt-get install -y --no-install-recommends     dos2unix     python3-minimal     python3-pip     python3-setuptools     qml-module-qtquick-controls     qml-module-qtquick-controls2     qml-module-qtquick2     python3-pyside2.qtwidgets     python3-pyside2.qtgui     python3-pyside2.qtqml     python3-pyside2.qtcore     python3-pyside2.qtquick     python3-pyside2.qtnetwork     qml-module-qtquick-dialogs     && rm -rf /var/lib/apt/lists/*


 ---> [Warning] The requested image's platform (linux/arm64) does not match the detected host platform (linux/amd64) and no specific platform was requested

 ---> Running in 930815c21bc1

Err:1 http://deb.debian.org/debian bullseye InRelease
  Temporary failure resolving 'deb.debian.org'

Err:2 https://feeds.toradex.com/debian/snapshots/20220512T021145Z testing InRelease
  Temporary failure resolving 'feeds.toradex.com'

Err:3 http://deb.debian.org/debian-security bullseye-security InRelease
  Temporary failure resolving 'deb.debian.org'

Err:4 http://deb.debian.org/debian bullseye-updates InRelease
  Temporary failure resolving 'deb.debian.org'

Reading package lists...


e[91mW: e[0m
e[91mFailed to fetch http://deb.debian.org/debian/dists/bullseye/InRelease  Temporary failure resolving 'deb.debian.org'e[0m
e[91m
We[0m
e[91m: Failed to fetch http://deb.debian.org/debian-security/dists/bullseye-security/InRelease  Temporary failure resolving 'deb.debian.org'
W: Failed to fetch http://deb.debian.org/debian/dists/bullseye-updates/InRelease  Temporary failure resolving 'deb.debian.org'
W: e[0m
e[91mFailed to fetch https://feeds.toradex.com/debian/snapshots/20220512T021145Z/dists/testing/InRelease  Temporary failure resolving 'feeds.toradex.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.
e[0m
Reading package lists...


Building dependency tree...

Reading state information...


e[91mE: Unable to locate package dos2unixe[0m
e[91m
e[0m
e[91mE: Unable to locate package python3-minimal
E: Unable to locate package python3-pip
E: Unable to locate package python3-setuptoolse[0m
e[91m
e[0m
e[91mE: Unable to locate package qml-module-qtquick-controls
E: Unable to locate package qml-module-qtquick-controls2
E: Unable to locate package python3-pyside2.qtwidgets
E: Couldn't find any package by glob 'python3-pyside2.qtwidgets'
E: e[0m
e[91mCouldn't find any package by regex 'python3-pyside2.qtwidgets'
E: Unable to locate package python3-pyside2.qtgui
E: Couldn't find any package by glob 'python3-pyside2.qtgui'
e[0m
e[91mE: Couldn't find any package by regex 'python3-pyside2.qtgui'
E: Unable to locate package python3-pyside2.qtqml
E: Couldn't find any package by glob 'python3-pyside2.qtqml'
E: e[0m
e[91mCouldn't find any package by regex 'python3-pyside2.qtqml'
E: Unable to locate package python3-pyside2.qtcore
E: Couldn't find any package by glob 'python3-pyside2.qtcore'
E: Couldn't find any package by regex 'python3-pyside2.qtcore'
E: Unable to locate package python3-pyside2.qtquick
E: e[0m
e[91mCouldn't find any package by glob 'python3-pyside2.qtquick'
E: Couldn't find any package by regex 'python3-pyside2.qtquick'
E: Unable to locate package python3-pyside2.qtnetwork
E: Couldn't find any package by glob 'python3-pyside2.qtnetwork'
E: Couldn't find any package by regex 'python3-pyside2.qtnetwork'
E: e[0m
e[91mUnable to locate package qml-module-qtquick-dialogs
e[0m

Hi @Malik, how are you?

From your log, it seems that the docker was unable to find some packages.

Our containers use Debian Bullseye by default and you can check here all the packages available with an apt-get command: Debian -- Software Packages in "bullseye"

Please note, however, that the Extension is not fully tested on VSCodium so there may be incompatibilities. Does the same output happen when using it with VSCode?

Best regards,

Hello @gclaudino.tx, thank you for the response.

I have also tried to build the project in VSCode but the result was the same.
I dont understand why it is not working since I did not modify the example project.

Maybe it has something to do with my host machine being fedora instead of ubuntu?

Hi @Malik!

Thanks for the update. We’ll check internally if we can reproduce this error on Fedora and then we’ll come back to you.

Best regards,

Hi @Malik,

We tried to reproduce your issue but without success yet. Having a second look at your logs, it seems that the extension was not able to reach the feeds to download the packages:

Therefore, it appears to be a connection issue on your side. Have you tried to rerun this template?

Do you have any previous projects on the extension that you could run before?

Also, may I ask you what OS is running on your host machine? We do have support for the Extension on VSCode for Windows machines. Please be aware that Fedora is not a fully tested distribution with the extension as you can see here: IDE Extension | Toradex Developer Center

Best regards,

Hello @gclaudino.tx

Thank you for the efforts.
I think I have found the issue. We have strict limitations to our network.
We use a whitelist of MAC addresses which are granted access to the Network. The MAC address of our development VM as well as the MAC address of the toradex CoM have been added to the whitelist.
The issue occurs as soon as I run a container. The containers seem to use separate MAC addresses which are not on the whitelist. I have tried to build the image on a different Network which was successful.

The torizon extension is building the image inside a container as well if I’m not mistaken.
Is there a way to force the containers to use the host network?

Hi @Malik!

Thanks for the update. Indeed there’s a way for containers to use the host network and here is how to do it on the extension: Torizon Best Practices Guide | Toradex Developer Center

Would this work for you?

The extension just uses a container for C/C++ projects.

Best regards,

Exactly what I was looking for. Works fine, thanks

That’s nice to hear! Can you please tag this post as solved?

Best regards,