Topic: Flatpak packages 0.9-dev

Do not use sudo or root for these commands!
download repository key:

wget https://download.tuxfamily.org/qet/builds/Flatpak/qelectrotech.org.gpg

Add flatpak qet-devel repo :

flatpak remote-add --gpg-import=qelectrotech.org.gpg qet-devel https://download.tuxfamily.org/qet/builds/Flatpak/

Install Qet :

flatpak install https://download.tuxfamily.org/qet/builds/Flatpak/org.qelectrotech.QElectroTech.flatpakref
laurent@debian:~$ flatpak remote-add --gpg-import=qelectrotech.org.gpg qet-devel https://download.tuxfamily.org/qet/builds/Flatpak/
laurent@debian:~$ flatpak install https://download.tuxfamily.org/qet/builds/Flatpak/org.qelectrotech.QElectroTech.flatpakref

org.qelectrotech.QElectroTech permissions:
    ipc   wayland   x11   dri   file access [1]   dbus access [2]

    [1] host, xdg-config/kdeglobals:ro
    [2] com.canonical.AppMenu.Registrar


        ID                                       Arch             Branch           Remote              Download
 1. [✓] org.qelectrotech.QElectroTech            x86_64           master           qet-devel           14,3 MB / 13,9 MB

Installation complete.

Update :

flatpak update

https://download.tuxfamily.org/qet/forum_img/discover.png

Enjoy ! nomicons/wink

Re: Flatpak packages 0.9-dev

C'est quoi les FlatPak ?

Re: Flatpak packages 0.9-dev

https://flatpak.org/
https://flatpak.org/setup/
http://docs.flatpak.org/en/latest/index.html

Re: Flatpak packages 0.9-dev

Hi,
FYI, I tried to add qet-tb-generator addon in org.qelectrotech.QElectroTech flatpak package
https://download.tuxfamily.org/qet/scor … oTech.json

https://github.com/qelectrotech/qelectr … 4e97bcacf6
, but tkinter Python module isn't provided yet with flatpak upstream :

Launching qet-tb-generator under Qet flatpak :

flatpak run --command=qelectrotech org.qelectrotech.QElectroTech    
Qt: Session management error: Could not open network socket
org.kde.knotifications: env says KDE is running but SNI unavailable -- check KDE_FULL_SESSION and XDG_CURRENT_DESKTOP
QETProject::toXml() : exporting diagram "References Page" [ Diagram(0x5643bcd2cea0) ]
QETProject::toXml() : exporting diagram "Mains Power Supply" [ Diagram(0x5643c0ebeaa0) ]
QETProject::toXml() : exporting diagram "Auxiliary Power Supply" [ Diagram(0x5643c0ec3220) ]
QETProject::toXml() : exporting diagram "Emergency Stop Circuit" [ Diagram(0x5643c0eaaa80) ]
QETProject::toXml() : exporting diagram "Emergency Stop Power" [ Diagram(0x5643c1183580) ]
QETProject::toXml() : exporting diagram "VX Gate Control Circuit" [ Diagram(0x5643c12f5740) ]
QETProject::toXml() : exporting diagram "V1 Gate Control Circuit" [ Diagram(0x5643c1358c50) ]
QETProject::toXml() : exporting diagram "V2 Gate Control Circuit" [ Diagram(0x5643c1592f50) ]
QETProject::toXml() : exporting diagram "V3 Gate Control Circuit" [ Diagram(0x5643c17490d0) ]
QETProject::toXml() : exporting diagram "V4 Gate Control Circuit" [ Diagram(0x5643c15960f0) ]
QETProject::toXml() : exporting diagram "V5 Gate Control Circuit" [ Diagram(0x5643c0ed33a0) ]
QETProject::toXml() : exporting diagram "V6 Gate Control Circuit" [ Diagram(0x5643c1e6fef0) ]
QETProject::toXml() : exporting diagram "V7 Gate Control Circuit" [ Diagram(0x5643c1f323c0) ]
QETProject::toXml() : exporting diagram "A0 PLC Layout" [ Diagram(0x5643c2116a40) ]
QETProject::toXml() : exporting diagram "A0 Input Module" [ Diagram(0x5643c229ece0) ]
QETProject::toXml() : exporting diagram "A0 Output Module" [ Diagram(0x5643c2260010) ]
QETProject::toXml() : exporting diagram "A1/1 Input Module" [ Diagram(0x5643c230eff0) ]
QETProject::toXml() : exporting diagram "A1/2 Input Module" [ Diagram(0x5643c23fff70) ]
QETProject::toXml() : exporting diagram "A1 Output Module" [ Diagram(0x5643c263b210) ]
QETProject::toXml() : exporting diagram "A2/1 Input Module" [ Diagram(0x5643c2746770) ]
QETProject::toXml() : exporting diagram "A2/2 Input Module" [ Diagram(0x5643c27f2790) ]
QETProject::toXml() : exporting diagram "A2 Output Module" [ Diagram(0x5643c28a3550) ]
QETProject::toXml() : exporting diagram "A3/1 Input Module" [ Diagram(0x5643c29a0190) ]
QETProject::toXml() : exporting diagram "A3/2 Input Module" [ Diagram(0x5643c2a4c670) ]
QETProject::toXml() : exporting diagram "A3 Output Module" [ Diagram(0x5643c2afcfd0) ]
QETProject::toXml() : exporting diagram "A4/1 Input Module" [ Diagram(0x5643c2b8ff40) ]
QETProject::toXml() : exporting diagram "A4/2 Input Module" [ Diagram(0x5643c2ca5940) ]
QETProject::toXml() : exporting diagram "A4 Output Module" [ Diagram(0x5643c2cc4740) ]
QETProject::toXml() : exporting diagram "A5/1 Ana Input Module" [ Diagram(0x5643c2d248b0) ]
QETProject::toXml() : exporting diagram "A5/2 Ana Input Module" [ Diagram(0x5643c2dfdb10) ]
QETProject::toXml() : exporting diagram "TB1 Terminal Bord" [ Diagram(0x5643c2e7bf80) ]
QETProject::toXml() : exporting diagram "TB2 Terminal Bord" [ Diagram(0x5643c300a030) ]
QETProject::toXml() : exporting diagram "TB3 Terminal Bord" [ Diagram(0x5643c3146e80) ]
QETProject::toXml() : exporting diagram "TB4 Terminal Bord" [ Diagram(0x5643c31cf060) ]
QETProject::toXml() : exporting diagram "TB5 Terminal Bord" [ Diagram(0x5643c3089dc0) ]
QETProject::toXml() : exporting diagram "PB1 Panel Front View" [ Diagram(0x5643c32ed320) ]
QETProject::toXml() : exporting diagram "PB2 Panel Front View" [ Diagram(0x5643c33001a0) ]
QETProject::toXml() : exporting diagram "CX1 Modbus TCP" [ Diagram(0x5643c3453470) ]
Traceback (most recent call last):
  File "/app/bin/qet_tb_generator", line 11, in <module>
    load_entry_point('qet-tb-generator==1.1.5', 'console_scripts', 'qet_tb_generator')()
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 489, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2852, in load_entry_point
    return ep.load()
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2443, in load
    return self.resolve()
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2449, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/app/lib/python3.7/site-packages/src/main.py", line 113, in <module>
    import tkinter as tk
ModuleNotFoundError: No module named 'tkinter'

https://gitlab.com/freedesktop-sdk/free … issues/976

Re: Flatpak packages 0.9-dev

Thank you.  Working on Mageia 764bit nomicons/smile
(Your appimage dont)

Re: Flatpak packages 0.9-dev

Merci, je confirme que cela marche parfaitement.

Re: Flatpak packages 0.9-dev

Update "org.kde.Platform",
to "runtime-version": "5.15", packages is available.

submit Flatpak to Flathub
https://github.com/qelectrotech/qelectr … issues/143
https://github.com/flathub/flathub/pull/2146

Re: Flatpak packages 0.9-dev

scorpio810 wrote:

Hi,
FYI, I tried to add qet-tb-generator addon in org.qelectrotech.QElectroTech flatpak package
https://download.tuxfamily.org/qet/scor … oTech.json

https://github.com/qelectrotech/qelectr … 4e97bcacf6
, but tkinter Python module isn't provided yet with flatpak upstream :

Launching qet-tb-generator under Qet flatpak :

flatpak run --command=qelectrotech org.qelectrotech.QElectroTech    
Qt: Session management error: Could not open network socket
org.kde.knotifications: env says KDE is running but SNI unavailable -- check KDE_FULL_SESSION and XDG_CURRENT_DESKTOP
QETProject::toXml() : exporting diagram "References Page" [ Diagram(0x5643bcd2cea0) ]
QETProject::toXml() : exporting diagram "Mains Power Supply" [ Diagram(0x5643c0ebeaa0) ]
QETProject::toXml() : exporting diagram "Auxiliary Power Supply" [ Diagram(0x5643c0ec3220) ]
QETProject::toXml() : exporting diagram "Emergency Stop Circuit" [ Diagram(0x5643c0eaaa80) ]
QETProject::toXml() : exporting diagram "Emergency Stop Power" [ Diagram(0x5643c1183580) ]
QETProject::toXml() : exporting diagram "VX Gate Control Circuit" [ Diagram(0x5643c12f5740) ]
QETProject::toXml() : exporting diagram "V1 Gate Control Circuit" [ Diagram(0x5643c1358c50) ]
QETProject::toXml() : exporting diagram "V2 Gate Control Circuit" [ Diagram(0x5643c1592f50) ]
QETProject::toXml() : exporting diagram "V3 Gate Control Circuit" [ Diagram(0x5643c17490d0) ]
QETProject::toXml() : exporting diagram "V4 Gate Control Circuit" [ Diagram(0x5643c15960f0) ]
QETProject::toXml() : exporting diagram "V5 Gate Control Circuit" [ Diagram(0x5643c0ed33a0) ]
QETProject::toXml() : exporting diagram "V6 Gate Control Circuit" [ Diagram(0x5643c1e6fef0) ]
QETProject::toXml() : exporting diagram "V7 Gate Control Circuit" [ Diagram(0x5643c1f323c0) ]
QETProject::toXml() : exporting diagram "A0 PLC Layout" [ Diagram(0x5643c2116a40) ]
QETProject::toXml() : exporting diagram "A0 Input Module" [ Diagram(0x5643c229ece0) ]
QETProject::toXml() : exporting diagram "A0 Output Module" [ Diagram(0x5643c2260010) ]
QETProject::toXml() : exporting diagram "A1/1 Input Module" [ Diagram(0x5643c230eff0) ]
QETProject::toXml() : exporting diagram "A1/2 Input Module" [ Diagram(0x5643c23fff70) ]
QETProject::toXml() : exporting diagram "A1 Output Module" [ Diagram(0x5643c263b210) ]
QETProject::toXml() : exporting diagram "A2/1 Input Module" [ Diagram(0x5643c2746770) ]
QETProject::toXml() : exporting diagram "A2/2 Input Module" [ Diagram(0x5643c27f2790) ]
QETProject::toXml() : exporting diagram "A2 Output Module" [ Diagram(0x5643c28a3550) ]
QETProject::toXml() : exporting diagram "A3/1 Input Module" [ Diagram(0x5643c29a0190) ]
QETProject::toXml() : exporting diagram "A3/2 Input Module" [ Diagram(0x5643c2a4c670) ]
QETProject::toXml() : exporting diagram "A3 Output Module" [ Diagram(0x5643c2afcfd0) ]
QETProject::toXml() : exporting diagram "A4/1 Input Module" [ Diagram(0x5643c2b8ff40) ]
QETProject::toXml() : exporting diagram "A4/2 Input Module" [ Diagram(0x5643c2ca5940) ]
QETProject::toXml() : exporting diagram "A4 Output Module" [ Diagram(0x5643c2cc4740) ]
QETProject::toXml() : exporting diagram "A5/1 Ana Input Module" [ Diagram(0x5643c2d248b0) ]
QETProject::toXml() : exporting diagram "A5/2 Ana Input Module" [ Diagram(0x5643c2dfdb10) ]
QETProject::toXml() : exporting diagram "TB1 Terminal Bord" [ Diagram(0x5643c2e7bf80) ]
QETProject::toXml() : exporting diagram "TB2 Terminal Bord" [ Diagram(0x5643c300a030) ]
QETProject::toXml() : exporting diagram "TB3 Terminal Bord" [ Diagram(0x5643c3146e80) ]
QETProject::toXml() : exporting diagram "TB4 Terminal Bord" [ Diagram(0x5643c31cf060) ]
QETProject::toXml() : exporting diagram "TB5 Terminal Bord" [ Diagram(0x5643c3089dc0) ]
QETProject::toXml() : exporting diagram "PB1 Panel Front View" [ Diagram(0x5643c32ed320) ]
QETProject::toXml() : exporting diagram "PB2 Panel Front View" [ Diagram(0x5643c33001a0) ]
QETProject::toXml() : exporting diagram "CX1 Modbus TCP" [ Diagram(0x5643c3453470) ]
Traceback (most recent call last):
  File "/app/bin/qet_tb_generator", line 11, in <module>
    load_entry_point('qet-tb-generator==1.1.5', 'console_scripts', 'qet_tb_generator')()
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 489, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2852, in load_entry_point
    return ep.load()
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2443, in load
    return self.resolve()
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2449, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/app/lib/python3.7/site-packages/src/main.py", line 113, in <module>
    import tkinter as tk
ModuleNotFoundError: No module named 'tkinter'

https://gitlab.com/freedesktop-sdk/free … issues/976

https://gitlab.com/freedesktop-sdk/free … uests/4569

Nice ;-)

I will try to work on it again and test when I have free time ...

Re: Flatpak packages 0.9-dev

Hi,
qet-tb-generator addon was now added in my devel 0.9-dev flatpak package, but there is still work to integrate the DXF converter into the flatpak.
Thanks kevinsmia1939 for his work, and Thomas for add  tkinter Python module to flatpak sdk :
https://gitlab.com/freedesktop-sdk/free … uests/4569

Re: Flatpak packages 0.9-dev

Flatpak : add --socket=cups and --share=network
see :
https://github.com/flathub/org.libreoff … /issues/90

But error: Unknown socket type cups, valid types are: x11, wayland, pulseaudio, session-bus, system-bus, fallback-x11, ssh-auth

Fixed by upgrade Debian VM KVM to Bullseye.

Re: Flatpak packages 0.9-dev

If you don't have common collection with my Flatpak repository on QET 0.9-dev.
Edit file

~/.var/app/org.qelectrotech.QElectroTech/config/QElectroTech/QElectroTech.conf

Change common-collection-path=defaut to /app/share/qelectrotech/elements/

[elements-collections]
common-collection-path=/app/share/qelectrotech/elements/
custom-collection-path=default
custom-tbt-path=default

Re: Flatpak packages 0.9-dev

Add fix for network printer on flathub QET stable (0.8)
https://github.com/flathub/org.qelectro … 29e2fdfb5f

Re: Flatpak packages 0.9-dev

09:50:35.855 Info: "QElectroTech V 0.90-DEV+d932f8ea0" 
09:50:35.855 Info: "Compilation: GCC 10.2.0" 
09:50:35.855 Info: "Built with Qt 5.15.3 - Date : Jan  5 2022 : 10:18:34" 
09:50:35.855 Info: "Run with Qt 5.15.3 using 48 thread(s)" 
09:50:35.855 Info: "CPU : model name\t: AMD Ryzen Threadripper 3960X 24-Core Processor\n" 
09:50:35.855 Info: "RAM Total : 15640 MB" 
09:50:35.855 Info: "RAM Available : 14490 MB" 
09:50:35.856 Info: "GPU :  Red Hat, Inc. Virtio GPU (rev 01)\n" 
09:50:35.856 Info: "GPU RAM : @ToDo" 
09:50:35.856 Info: "OS : linux  - x86_64 - Version : KDE Flatpak runtime - Kernel : 5.10.0-10-amd64" 
09:50:35.856 Info: *** Qt screens *** 
09:50:35.856 Info: "( 1 : 1920 x 1200 )" 
09:50:36.084 Info: Elements collection reload 
09:50:36.642 Info: Elements collection finished to be loaded 

~8 000 Elements in collection loaded in 0.558 s ...

Re: Flatpak packages 0.9-dev

https://flathub.org/apps/details/org.qe … lectroTech

Additional information
Updated
January 6, 2022
Version
0.8.0

Re: Flatpak packages 0.9-dev

FYI, my Flatpak repository is break and I don't know when I have free time to repair it, please use AppImage instead for now.


Fixed:


wget https://download.tuxfamily.org/qet/builds/Flatpak/public.pgp
flatpak remote-add --gpg-import=public.pgp qet-devel https://download.tuxfamily.org/qet/builds/Flatpak/
flatpak install https://download.tuxfamily.org/qet/builds/Flatpak/org.qelectrotech.QElectroTech.flatpakref