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 ?