Topic: Flatpak packages 0.100-dev

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

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

Add flatpak qet-devel repo :

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

Install Qet :

flatpak install https://download.qelectrotech.org/qet/builds/Flatpak/org.qelectrotech.QElectroTech.flatpakref
laurent@debian:~$ flatpak remote-add --gpg-import=qelectrotech.org.gpg qet-devel https://download.qelectrotech.org/qet/builds/Flatpak/
laurent@debian:~$ flatpak install https://download.qelectrotech.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.qelectrotech.org/qet/forum_img/discover.png

Enjoy ! nomicons/wink

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Flatpak packages 0.100-dev

C'est quoi les FlatPak ?

Re: Flatpak packages 0.100-dev

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

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Flatpak packages 0.100-dev

Hi,
FYI, I tried to add qet-tb-generator addon in org.qelectrotech.QElectroTech flatpak package
https://download.qelectrotech.org/qet/s … 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

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Flatpak packages 0.100-dev

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

Re: Flatpak packages 0.100-dev

Merci, je confirme que cela marche parfaitement.

Re: Flatpak packages 0.100-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

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Flatpak packages 0.100-dev

scorpio810 wrote:

Hi,
FYI, I tried to add qet-tb-generator addon in org.qelectrotech.QElectroTech flatpak package
https://download.qelectrotech.org/qet/s … 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 ...

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Flatpak packages 0.100-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

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Flatpak packages 0.100-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.

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Flatpak packages 0.100-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

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Flatpak packages 0.100-dev

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

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Flatpak packages 0.100-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 ...

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Flatpak packages 0.100-dev

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

Additional information
Updated
January 6, 2022
Version
0.8.0

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Flatpak packages 0.100-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.qelectrotech.org/qet/builds/Flatpak/public.pgp
flatpak remote-add --gpg-import=public.pgp qet-devel https://download.qelectrotech.org/qet/builds/Flatpak/
flatpak install https://download.qelectrotech.org/qet/builds/Flatpak/org.qelectrotech.QElectroTech.flatpakref

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Flatpak packages 0.100-dev

Long time no see... passing by to check.
Nice to see there is great activity  :-)
And congratulations to the 0.90 release!

Trying per previous post:

scorpio810 wrote:

 wget https://download.qelectrotech.org/qet/builds/Flatpak/public.pgp

404 Not Found

When simply issuing

 $ flatpak install Qelectrotech

the "stable" version is found in the flathub repo  :-)

But that is version 0.80...

How can we get 0.90 as flatpak? - maybe you should update the flatpak (central)repo as it apparently serve 0.80

And is 0.100 available as flatpak?

Re: Flatpak packages 0.100-dev

Hi Morganol,

you could retry to install my flatpak repository:

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

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Flatpak packages 0.100-dev

Now it works nomicons/smile

Brings QElectroTech V 0.100.0-dev

Now if you can fix so main flatpak repo "flathub" provides 0.90 instead of 0.80 that would be great.

Re: Flatpak packages 0.100-dev

For flathub, I completely forgot to work on it. oops :p
Health problem, and many other stains have been added, my memory is also starting to fail me...

https://github.com/flathub/org.qelectro … Tech/pulls

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Flatpak packages 0.100-dev

I know such problems.
We all suffer.
Life, i think it is called.
Varies by time and individual.
Keep up the steam with friends and pleasant activities :-)

Re: Flatpak packages 0.100-dev

BTW, I now updated Mageia wiki page https://wiki.mageia.org/en/QElectroTech

I guest is OK to use your logo there.

Re: Flatpak packages 0.100-dev

No problem,

# urpmi gcc make subversion qtbase5-common-devel lib64qt5svg-devel lib64qt5xml-devel lib64qt5network-devel lib64qt5printsupport-devel lib64qt5concurrent-devel lib64qt5sql-devel

Now need:

libqt5svg5-dev,
qt5-qmake,
qtbase5-dev,
libkf5widgetsaddons-dev,
libkf5coreaddons-dev, 
libsqlite3-dev,

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Flatpak packages 0.100-dev

Since,we moved to GIT https://git.tuxfamily.org/qet/qet.git/ and add Github miror : https://github.com/qelectrotech/qelectr … rce-mirror

BTW, see https://github.com/qelectrotech

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Flatpak packages 0.100-dev

Thanks. I put notes in our wiki pointing here.

Re: Flatpak packages 0.100-dev

We don't use now svn but git:

git clone git://git.tuxfamily.org/gitroot/qet/qet.git qet_git
cd qet_git/
mkdir build && cd build
qmake ../qelectrotech.pro
make -j16

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."