Re: Terminal block generator cross-platform

I am trying to get this working.

I suggest the descriptions for getting this to work should be summoned up in a wiki article.
And the Qet program show a link to it when the menu chouce to launch it is made and it is not installed.
(now it shows a few instructions specific to ubuntu/debian)

The instructions should be distro agnostic...

Here on Mageia6 i tried the following:
pip is here called pip3 if it is the python 3 version we want.
After finding and installing that i did:

# pip3 install qet_tb_generator
Collecting qet-tb-generator                                                                  
  Downloading qet_tb_generator-0.5.3-py3-none-any.whl                                        
Collecting pyqt5 (from qet-tb-generator)                                                     
  Could not find a version that satisfies the requirement pyqt5 (from qet-tb-generator) (from versions: )                                                                                 
No matching distribution found for pyqt5 (from qet-tb-generator)                             
You are using pip version 8.0.2, however version 8.1.2 is available.                         
You should consider upgrading via the 'pip install --upgrade pip' command.                   
# pip install --upgrade pip
bash: pip: kommandot finns inte                                                              
# pip3 install --upgrade pip                                
Collecting pip                                                                               
  Downloading pip-8.1.2-py2.py3-none-any.whl (1.2MB)                                         
    100% |████████████████████████████████| 1.2MB 235kB/s 
Installing collected packages: pip                                                           
  Found existing installation: pip 8.0.2                                                     
    Uninstalling pip-8.0.2:                                                                  
      Successfully uninstalled pip-8.0.2
Successfully installed pip-8.1.2
[root@svarten qelectrotech-trunk]# pip3 install qet_tb_generator
Collecting qet_tb_generator
  Using cached qet_tb_generator-0.5.3-py3-none-any.whl
Collecting pyqt5 (from qet_tb_generator)
  Downloading PyQt5-5.7-cp35-cp35m-manylinux1_x86_64.whl (89.8MB)
    100% |████████████████████████████████| 89.8MB 15kB/s 
Collecting sip (from pyqt5->qet_tb_generator)
  Downloading sip-4.18.1-cp35-cp35m-manylinux1_x86_64.whl (60kB)
    100% |████████████████████████████████| 61kB 790kB/s 
Installing collected packages: sip, pyqt5, qet-tb-generator
Successfully installed pyqt5-5.7 qet-tb-generator-0.5.3 sip-4.18.1

So it was so easy??
Well, i guess it was supposed to, but:

When i in Qet r4736 select Menu "Project" > "Launch the Terminal Block creation plugin" i get no visual response, but an error output (seen in QtCreator from where i run Qet in debugging mode)

This application failed to start because it could not find or load the Qt platform plugin "xcb"
 in "".
 
 Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, xcb.
 
 Reinstalling the application may fix this problem.

I have pretty many *cxb* packages installed... could it be somewhat more specific... and what does it mean by it look for it in "" ?

Re: Terminal block generator cross-platform

If you tried into Qt creator it don't work, and I don't know why.
Compil QET, run it now plugin python work.

For Wiki if you interest to wrotes new articles or translating page, ask me.

Re: Terminal block generator cross-platform

Other thing, I have tried this python plugin in macOS plateform and now run, but need to add macOS path in code.
I tried Mac OS X 64-bit/32-bit installer and tkinter with Tcl/Tk

Run Profile.command script :


laurents-mac-pro-4:~ laurent$ /Applications/Python\ 3.5/Update\ Shell\ Profile.command ; exit;
This script will update your shell profile when the 'bin' directory
of python is not early enough of the PATH of your shell.
These changes will be effective only in shell windows that you open
after running this script.
All right, you're a python lover already
logout

[Process completed]

Close and Re open your terminal.

Now install qet_tb_generator :


Last login: Wed Oct 12 15:33:37 on console
laurents-mac-pro-4:~ laurent$ pip3 install qet_tb_generator
Collecting qet-tb-generator
  Downloading qet_tb_generator-0.5.3-py3-none-any.whl
Collecting pyqt5 (from qet-tb-generator)
  Downloading PyQt5-5.7-cp35-cp35m-macosx_10_6_intel.whl (79.4MB)
    100% |████████████████████████████████| 79.4MB 11kB/s 
Collecting sip (from pyqt5->qet-tb-generator)
  Downloading sip-4.18.1-cp35-cp35m-macosx_10_6_intel.whl (46kB)
    100% |████████████████████████████████| 51kB 1.6MB/s 
Installing collected packages: sip, pyqt5, qet-tb-generator
Successfully installed pyqt5-5.7 qet-tb-generator-0.5.3 sip-4.18.1
You are using pip version 8.1.1, however version 8.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
laurents-mac-pro-4:~ laurent$

Try if it run :

laurents-mac-pro-4:~ laurent$ python3.5 /Library/Frameworks/Python.framework/Versions/3.5/bin/qet_tb_generator


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

Re: Terminal block generator cross-platform

Revision: 4738
Author:   scorpio810
Date:     2016-10-13 02:08:29 +0200 (Thu, 13 Oct 2016)
Log Message:
-----------
Add PATH for launch qet_tb_generator plugin in QET project menu on macOSX platform

105 (edited by Morganol 2016-10-13 09:55:42)

Re: Terminal block generator cross-platform

Ah, thanks i did not think of trying it outside QtCreator.  There it works nomicons/smile
-  now I have to understand how to use it nomicons/wink

Yes i may help a little bit with the wiki
Hmm i find no english section yet?

106

Re: Terminal block generator cross-platform

@ Morganol,

some informations in the wiki are outdated and most of them are only available in french.
At the moment, we're trying to rewrite the website in order to make it really international (all pages in english and french). It will take weeks of work (on free time only...).

I don't care about the wiki at the moment because I think the website is more important to catch new users.

If you want, scorpio810 can give you an account to edit some articles in the wiki (of course, in english).

Re: Terminal block generator cross-platform

Morganol wrote:

Ah, thanks i did not think of trying it outside QtCreator.  There it works nomicons/smile
-  now I have to understand how to use it nomicons/wink

Yes i may help a little bit with the wiki
Hmm i find no english section yet?

If you read the full topic then you have found the solution, uhuhu. :p
https://qelectrotech.org/forum/viewtopi … 5398#p5398

Re: Terminal block generator cross-platform

Account morganol added.

Re: Terminal block generator cross-platform

Hi guys,

In about 5 months I'll join to QET project.  If there are some bugs in QET Terminal Block Generator say me and I'll fix.

110

Re: Terminal block generator cross-platform

@ Unalcalde

nice! nomicons/cool

I have not already tested your script to generate terminal strip but I'm very interested in it.

Re: Terminal block generator cross-platform

Hi,
how to use the generator script? Is there any video or description? If I run the script, it always ends with "0 terminals blocks successfully created !!".

Best regards
Schlumpf

Re: Terminal block generator cross-platform

Hi,


Conductor AutoNum + Terminal AutoNum + Element AutoNum + plugin Python

Re: Terminal block generator cross-platform

HOW DO I ELIMINATE THIS ISSUE , THE TERMINAL BLOCK ARRANGES THE WIRES WITHOUT FOLLOWING THE NUMBERED ORDER I WANT THE ARRANGEMENT TO BE M11, M12, M13, M21, M22, M23  BUT AM GETTING M12, M13, M24, M26, M11, M25 AS IN THE IMAGE BELOW.KINDLY ASSIST

https://ibb.co/dt7GBk

Re: Terminal block generator cross-platform

What your version of qet_tb_generator plug in ?

Re: Terminal block generator cross-platform

in Windows if some reason qet_tb_generator not start work then try run your QElectroTech as Administrator

Re: Terminal block generator cross-platform

Good morning everyone,

I'm a new user of QElectroTech on Mac, i just see to instal see plugin, but i have an error message :


[color=#000000][size=1][font=Menlo]MacBook-Pro-de-Vincent:~ Vincent$ pip3 install qet_tb_generator[/font][/size][/color]
[color=#000000][size=1][font=Menlo]Collecting qet-tb-generator[/font][/size][/color]
[color=#000000][size=1][font=Menlo]  Could not fetch URL https://pypi.python.org/simple/qet-tb-generator/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:645) - skipping[/font][/size][/color]
[color=#c33720][size=1][font=Menlo]  Could not find a version that satisfies the requirement qet-tb-generator (from versions: )[/font][/size][/color]





[color=#c33720][size=1][font=Menlo]No matching distribution found for qet-tb-generator[/font][/size][/color]

I just want to say if some people have the same problem and find a solution. 

Thank you all in advance. (And sorry for my french english)... nomicons/silly

Re: Terminal block generator cross-platform

Could not fetch URL https://pypi.python.org/simple/qet-tb-generator/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:645) - skipping

On dirait un problème de certificat sur leur dépôt :

https://github.com/pypa/pip/issues/5236
https://github.com/pypa/warehouse/issues/3645





Edit :


laurents-Mac-Pro:~ laurent$ pip3 install qet_tb_generator
Collecting qet-tb-generator
  Could not fetch URL https://pypi.python.org/simple/qet-tb-generator/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:645) - skipping
  Could not find a version that satisfies the requirement qet-tb-generator (from versions: )
No matching distribution found for qet-tb-generator
laurents-Mac-Pro:~ laurent$ pip3 install --upgrade pip
Could not fetch URL https://pypi.python.org/simple/pip/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:645) - skipping
Requirement already up-to-date: pip in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages
laurents-Mac-Pro:~ laurent$ curl https://bootstrap.pypa.io/get-pip.py | python3
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1603k  100 1603k    0     0   892k      0  0:00:01  0:00:01 --:--:--  892k
Collecting pip
  Downloading https://files.pythonhosted.org/packages/0f/74/ecd13431bcc456ed390b44c8a6e917c1820365cbebcb6a8974d1cd045ab4/pip-10.0.1-py2.py3-none-any.whl (1.3MB)
    100% |████████████████████████████████| 1.4MB 1.7MB/s 
Collecting wheel
  Downloading https://files.pythonhosted.org/packages/1b/d2/22cde5ea9af055f81814f9f2545f5ed8a053eb749c08d186b369959189a8/wheel-0.31.0-py2.py3-none-any.whl (41kB)
    100% |████████████████████████████████| 51kB 5.1MB/s 
Installing collected packages: pip, wheel
  Found existing installation: pip 8.1.1
    Uninstalling pip-8.1.1:
      Successfully uninstalled pip-8.1.1
Successfully installed pip-10.0.1 wheel-0.31.0
laurents-Mac-Pro:~ laurent$ pip3 install --upgrade pip
Requirement already up-to-date: pip in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages (10.0.1)
laurents-Mac-Pro:~ laurent$ pip3 install qet_tb_generator
Collecting qet_tb_generator
  Downloading https://files.pythonhosted.org/packages/09/c2/8050e1bde9b9aaea9c4400633db11172804b95a488ec35aadce436b1fa49/qet_tb_generator-0.7.74-py3-none-any.whl
Collecting pyqt5 (from qet_tb_generator)
  Downloading https://files.pythonhosted.org/packages/af/82/a063e4803775225bfe4e51099a2599eecd91eb05e8a586632c783aeb9899/PyQt5-5.10.1-5.10.1-cp35.cp36.cp37.cp38-abi3-macosx_10_6_intel.whl (86.8MB)
    100% |████████████████████████████████| 88.1MB 112kB/s 
Collecting sip<4.20,>=4.19.4 (from pyqt5->qet_tb_generator)
  Downloading https://files.pythonhosted.org/packages/d3/66/3fc04a7f33c9b49a62c2edc8f3da70c141f2b1e09f921cd4a88a0e086ce6/sip-4.19.8-cp35-cp35m-macosx_10_6_intel.whl (51kB)
    100% |████████████████████████████████| 133kB 2.5MB/s 
Installing collected packages: sip, pyqt5, qet-tb-generator
Successfully installed pyqt5-5.10.1 qet-tb-generator-0.7.74 sip-4.19.8
laurents-Mac-Pro:~ laurent$ 

Re: Terminal block generator cross-platform

Merci Scorpio, donc pour l'instant je ne peux rien faire de plus?
N'étant pas un expert, je préférais avoir confirmation de personnes plus avisées que moi... 
nomicons/grin

Re: Terminal block generator cross-platform

laurents-Mac-Pro:~ laurent$ curl https://bootstrap.pypa.io/get-pip.py | python3
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1603k  100 1603k    0     0   892k      0  0:00:01  0:00:01 --:--:--  892k
Collecting pip
  Downloading https://files.pythonhosted.org/packages/0f/74/ecd13431bcc456ed390b44c8a6e917c1820365cbebcb6a8974d1cd045ab4/pip-10.0.1-py2.py3-none-any.whl (1.3MB)
    100% |████████████████████████████████| 1.4MB 1.7MB/s 
Collecting wheel
  Downloading https://files.pythonhosted.org/packages/1b/d2/22cde5ea9af055f81814f9f2545f5ed8a053eb749c08d186b369959189a8/wheel-0.31.0-py2.py3-none-any.whl (41kB)
    100% |████████████████████████████████| 51kB 5.1MB/s 
Installing collected packages: pip, wheel
  Found existing installation: pip 8.1.1
    Uninstalling pip-8.1.1:
      Successfully uninstalled pip-8.1.1
Successfully installed pip-10.0.1 wheel-0.31.0
laurents-Mac-Pro:~ laurent$ pip3 install --upgrade pip
Requirement already up-to-date: pip in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages (10.0.1)
laurents-Mac-Pro:~ laurent$ 


laurents-Mac-Pro:~ laurent$ pip3 install qet_tb_generator
Collecting qet_tb_generator
  Downloading https://files.pythonhosted.org/packages/09/c2/8050e1bde9b9aaea9c4400633db11172804b95a488ec35aadce436b1fa49/qet_tb_generator-0.7.74-py3-none-any.whl
Collecting pyqt5 (from qet_tb_generator)
  Downloading https://files.pythonhosted.org/packages/af/82/a063e4803775225bfe4e51099a2599eecd91eb05e8a586632c783aeb9899/PyQt5-5.10.1-5.10.1-cp35.cp36.cp37.cp38-abi3-macosx_10_6_intel.whl (86.8MB)
    100% |████████████████████████████████| 88.1MB 112kB/s 
Collecting sip<4.20,>=4.19.4 (from pyqt5->qet_tb_generator)
  Downloading https://files.pythonhosted.org/packages/d3/66/3fc04a7f33c9b49a62c2edc8f3da70c141f2b1e09f921cd4a88a0e086ce6/sip-4.19.8-cp35-cp35m-macosx_10_6_intel.whl (51kB)
    100% |████████████████████████████████| 133kB 2.5MB/s 
Installing collected packages: sip, pyqt5, qet-tb-generator
Successfully installed pyqt5-5.10.1 qet-tb-generator-0.7.74 sip-4.19.8

Re: Terminal block generator cross-platform

On resume, te suffit de faire :

curl https://bootstrap.pypa.io/get-pip.py | python3


puis d'installer le plugin normalement :


pip3 install qet_tb_generator

A noter que pour l'instant le plugin fonctionne mal sur la version 0.7.

Re: Terminal block generator cross-platform

Merci pour le résume.. C'est nettement plus clair pour moi.
Ca fonctionne mieux,

Il y a de gros souci sur la version 0.7?

Re: Terminal block generator cross-platform

Sur la 0.7 en gros, du fait du passage de tous les textes en textes dynamiques, la version actuelle du plugin ne trouve pas les nouvelles bornes crées, Unalcade  y travaille avec une nouvelle version améliorée :

https://qelectrotech.org/forum/viewtopi … 7958#p7958


unalcalde wrote:

Hi, 

The pluguin is not working with last changes made in the 0.7 version. The possibility to add several texts to an element has changed the XLM format, and the plugin doesn't find the text that is looking for.

Re: Terminal block generator cross-platform

Je commence a utilisé ce logiciel seulement depuis peu de temps.
D'ailleurs félicitation à tous pour ce travail super... Je ne connais pas encore bien les rouages et tatone pas mal en ce moment. Donc quand tu me parles textes dynamiques, moi suis comme ca... nomicons/wassat

Je te remercie pour tes réponses, à moi de creuser le logiciel...

Je reviendrait peut être vous embêter avec mes questions.

Bonne fin de journée et bon week-end.

Re: Terminal block generator cross-platform

A noter qu'un workaround existe : il suffit de lancer une version 0.6 d'ouvrir ton projet fait sur la 0.7 et de lancer le plugin de génération de bornier, off course on n'enregistre pas le projet, on repasse sur la 0.7 et on peut travailler avec les borniers crées.

L'avantage des DMG c'est qu'on peut avoir plusieurs versions de QET sur son Mac..

Re: Terminal block generator cross-platform

Tu as quelques vidéos sur notre chaîne YouTube qui peuvent t'aider.

Ou celle-ci aussi : https://qelectrotech.org/forum/viewtopi … 6908#p6908