Re: Ideas to solve Terminal Blocks creation

I try to change PATH in program, users can add binary python portable in QET home directory like DXFtoelmt plugin...
https://git.tuxfamily.org/qet/qet.git/c … 5e30ae57cf
https://github.com/qelectrotech/qelectr … 5e30ae57cf

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

Re: Ideas to solve Terminal Blocks creation

On my old  VM Debian 9 AppImage station :

./qet_tb_generator 
[33786] Error loading Python lib '/tmp/_MEITlQZO2/libpython3.8.so.1.0': dlopen: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /tmp/_MEITlQZO2/libpython3.8.so.1.0)

But work in my Debian Sid, also Plugin work and launch in Flatpak, great. ;-)

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

Re: Ideas to solve Terminal Blocks creation

If someone decides to create a qet_tb_generator portable bundle on macOS?
https://py2app.readthedocs.io/en/latest/py2applet.html

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

Re: Ideas to solve Terminal Blocks creation

I used http://www.pyinstaller.org/ to generate the portable versions for Linux & Windows. It would work in macOS also.

Re: Ideas to solve Terminal Blocks creation

Hi. A new version is launched: 1.1.6

This version solves:
- the problem if the 'folioSheetQuantity' attribute doesn't exist (last dev versions of QET don't use it).
- mouse right click did not work in MacOS.


There are 2 options to install the plugin:

A. Using python pip

Requires python 3.5 or above.

>> First install on Linux (Debian based distros)
1. In a terminalm install python3 and GUI library:
    sudo apt-get install python3 python3-tk python3-pip
2. Install the program: 
    sudo pip3 install qet_tb_generator
3. Launch the plugin from the 'Project' menu of QElectrotech.

>> Update on Linux
sudo python3 -m pip install --upgrade qet_tb_generator

>> First install on Windows
1. Install, if required, python 3.5 or above
2. pip3 install qet_tb_generator

>> Update on Windows
python -m pip install --upgrade qet_tb_generator


B. Using the portable versions. Available at:

Windows: https://download.qelectrotech.org/qet/builds/nightly/
Rename to qet_tb_generator.exe and put it on your C:\Users\[username]\AppData\qet\

Linux: https://download.qelectrotech.org/qet/builds/AppImage/
Rename to qet_tb_generator, mark "qet_tb_generator" as executable and put it Put it  to ~/.qet/

281 (edited by unalcalde 2020-10-04 08:32:58)

Re: Ideas to solve Terminal Blocks creation

Hi. A new version is launched: 1.1.7


This version solves:
- Has changed the packaging method to allow more checkboxes to mark whats terminals to generate.


Installation methods:


A. Using python pip

Requires python 3.5 or above.

>> First install on Linux (Debian based distros)
1. In a terminalm install python3 and GUI library:
    sudo apt-get install python3 python3-tk python3-pip
2. Install the program:
    sudo pip3 install qet_tb_generator
3. Launch the plugin from the 'Project' menu of QElectrotech.

>> Update on Linux
sudo python3 -m pip install --upgrade qet_tb_generator

>> First install on Windows
1. Install, if required, python 3.5 or above
2. pip3 install qet_tb_generator

>> Update on Windows
python -m pip install --upgrade qet_tb_generator



B. Using the portable versions. Available at:

Windows: https://download.qelectrotech.org/qet/builds/nightly/
Rename to qet_tb_generator.exe and put it on your C:\Users\[username]\AppData\qet\

Linux: https://download.qelectrotech.org/qet/builds/AppImage/
Rename to qet_tb_generator, mark "qet_tb_generator" as executable and put it Put it  to ~/.qet/

Post's attachments

Attachment icon version_1.7.png 111.41 kb, 119 downloads since 2020-10-04 

Re: Ideas to solve Terminal Blocks creation

Great Unalcade.
https://github.com/qelectrotech/qet_tb_ … 782aa70eb6
.
Debian packages and Ubuntu PPA is availables.

Accepted:
OK: qet-tb-generator_1.1.7.orig.tar.xz
OK: qet-tb-generator_1.1.7-3ubuntu2.debian.tar.xz
OK: qet-tb-generator_1.1.7-3ubuntu2.dsc
     -> Component: main Section: python

qet-tb-generator (1.1.7-3ubuntu2) focal; urgency=medium

  * Focal Upload to ppa


Accepted:
OK: qet-tb-generator_1.1.7.orig.tar.xz
OK: qet-tb-generator_1.1.7-3ubuntu1.debian.tar.xz
OK: qet-tb-generator_1.1.7-3ubuntu1.dsc
     -> Component: main Section: python

qet-tb-generator (1.1.7-3ubuntu1) bionic; urgency=medium

  * Bionic Upload to ppa

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

283

Re: Ideas to solve Terminal Blocks creation

I changed the default terminal block element in the element editor. When generating a terminal block, the names of the cables are not displayed for me.

Experimentally discovered that the element editor sticks a unique uuid to terminal elements. If you delete it in any text editor, then Terminal block generator correctly displays the cable name.

However, if I change the font for example in the element editor and re-save the file, it will add uuid again and it is necessary to manually edit the project or element.
How can I fix this or am I doing something wrong?

I am using QElectroTech V 0.8-dev-831-g9193e1c39.snap and Terminal block generator v1.1.7
I am attaching a test project with two terminals and a terminal block

Post's attachments

Attachment icon proj.qet 67.83 kb, 325 downloads since 2020-10-05 

Re: Ideas to solve Terminal Blocks creation

scorpio810 wrote:

Great Unalcade.
https://github.com/qelectrotech/qet_tb_ … 782aa70eb6
.
Debian packages and Ubuntu PPA is availables.

Accepted:
OK: qet-tb-generator_1.1.7.orig.tar.xz
OK: qet-tb-generator_1.1.7-3ubuntu2.debian.tar.xz
OK: qet-tb-generator_1.1.7-3ubuntu2.dsc
     -> Component: main Section: python

qet-tb-generator (1.1.7-3ubuntu2) focal; urgency=medium

  * Focal Upload to ppa


Accepted:
OK: qet-tb-generator_1.1.7.orig.tar.xz
OK: qet-tb-generator_1.1.7-3ubuntu1.debian.tar.xz
OK: qet-tb-generator_1.1.7-3ubuntu1.dsc
     -> Component: main Section: python

qet-tb-generator (1.1.7-3ubuntu1) bionic; urgency=medium

  * Bionic Upload to ppa

Il y a-t-il un exécutable (sans installation) windows 32bits ?
Merci.

Re: Ideas to solve Terminal Blocks creation

https://download.qelectrotech.org/qet/b … -1.1.7.exe

scorpio810 wrote:

Sinon tu peut le créer toi même ce .exe
https://datatofish.com/executable-pyinstaller/


Win64
cd C:\Users\laurent\AppData\Roaming\Python\Python36\Scripts\
pyinstaller.exe \Users\laurent\Downloads\qet_tb_generator-1.0.16\src\main.py -F

Win32
cd C:\Users\laurent\AppData\Local\Programs\Python\Python37-32\Scripts\
pyinstaller.exe \Users\laurent\Downloads\qet_tb_generator-1.0.16\src\main.py -F

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

Re: Ideas to solve Terminal Blocks creation

scorpio810 wrote:

https://download.qelectrotech.org/qet/b … -1.1.7.exe

scorpio810 wrote:

Sinon tu peut le créer toi même ce .exe
https://datatofish.com/executable-pyinstaller/


Win64
cd C:\Users\laurent\AppData\Roaming\Python\Python36\Scripts\
pyinstaller.exe \Users\laurent\Downloads\qet_tb_generator-1.0.16\src\main.py -F

Win32
cd C:\Users\laurent\AppData\Local\Programs\Python\Python37-32\Scripts\
pyinstaller.exe \Users\laurent\Downloads\qet_tb_generator-1.0.16\src\main.py -F

C'est une version 64bits...

Re: Ideas to solve Terminal Blocks creation

è possibile pensare ad un metodo più semplice o veloce di modificare le posizioni dei morsetti?magari un campo compilabile dove si inserisce direttamente la posizione ed automaticamente si scambia con quella già presente, oppure spostarlo con le frecce dopo averlo selezionato, spostare 20-30 morsetti magari dalla fine all'inizio diventa molto laborioso,

grazie mille

Re: Ideas to solve Terminal Blocks creation

I'm developing a new friendly version. Check please: https://qelectrotech.org/forum/viewtopi … 841#p14841

Re: Ideas to solve Terminal Blocks creation

scorpio810 wrote:

MacOS arm64 python 3.11 installation
get:
https://www.python.org/ftp/python/3.11. … acos11.pkg
1) Install it.

2) Click on "Update Shell Profile.command" script to add python Path in your shell.

3) Install qet_tb-generator in terminal:

laurent@mini-de-laurent ~ % pip3 install qet_tb_generator
Collecting qet_tb_generator
  Using cached qet_tb_generator-1.3.1-py3-none-any.whl (393 kB)
Collecting PySimpleGUI
  Downloading PySimpleGUI-4.60.4-py3-none-any.whl (509 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 510.0/510.0 kB 7.1 MB/s eta 0:00:00
Installing collected packages: PySimpleGUI, qet_tb_generator
Successfully installed PySimpleGUI-4.60.4 qet_tb_generator-1.3.1

[notice] A new release of pip available: 22.3.1 -> 23.0.1
[notice] To update, run: pip3 install --upgrade pip
laurent@mini-de-laurent ~ % 

Test if launch:

laurent@mini-de-laurent ~ % /Library/Frameworks/Python.framework/Versions/3.11/bin/qet_tb_generator
15:02:21 INFO     QET Terminal Block Generator - v1.3.1 [main.main:840]
15:02:28 INFO     Using the file: None [main.get_QET_fullpath:189]
laurent@mini-de-laurent ~ % 

macOs arm64 ok:

QElectroTech V 0.100.0-dev
Compilation : CLANG 14.0.0 (clang-1400.0.29.202)
Built with Qt 5.15.8 - arm64 - Date : Feb 22 2023 : 17:30:28
Git Revision : 78644a35245a4c658bcaa350d17130092d31b05b
Run with Qt 5.15.8 using 8 thread(s)
CPU : Apple M2
RAM Total : 8 GB

GPU :
GPU RAM :
OS : darwin - arm64 - Version : macOS 13.2 - Kernel : 22.3.0
*** Qt screens ***
( 1 : 3840 x 2160 )

https://download.qelectrotech.org/qet/forum_img_2/qet_tb-generator-arm64_python3.11.png

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