76 (edited by unalcalde 2016-08-29 12:09:00)

Re: Terminal block generator cross-platform

I think the installation path is the same that for the rest of python installation (under python scripts directory).

I tried on a windows clean installation and recognizes the 'qet_tb_generator' command.

Today I'll try on a clean linux installation

Re: Terminal block generator cross-platform

You could add in config page number/page ID.
https://download.qelectrotech.org/qet/forum_img/win_pip.png

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

Re: Terminal block generator cross-platform

Today I'll try on a clean linux installation

Yes, download 89 Mo just for little script ....

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

79 (edited by unalcalde 2016-08-29 22:52:40)

Re: Terminal block generator cross-platform

Hi, there are new version. Current version is 0.5.3. Fixes save  page number/id in config.

I tested hoy to install / updates on fresh Windows 7 and Lubuntu 16.04. To run the program in boths systems type "qet_tb_generator" at command line.

Requires python 3.5 or above.

>> First install on Linux
1. check you have pip3 installed: pip3 --version.
   If not install with: sudo apt-get install python3-pip
2. Install the program: sudo pip3 install qet_tb_generator
3. Run the program: qet_tb_generator

>> Update on Linux
sudo pip3 install --upgrade qet_tb_generator

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

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


scorpio810, I you test and work for you like me, you can consider to add an entry menu to launch this script. 

The menu entry migth only appears if "qet_tb_generator" is installed. To check that could be interesting that my script answers something like:
    qet_tb_generator -v
    0.5.3
If exists an answer, you can show the menu entry to launch the script. If you need some change say me.

Re: Terminal block generator cross-platform

Thank you Unalcalde.
I think I can add a new action in QET for run qet_tb_generator, like a plugin.

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

Re: Terminal block generator cross-platform

I will look to add this new entry, but not tonight, I just arrive to my home and I'm too tired, holidays is finish for me .. nomicons/sad

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

Re: Terminal block generator cross-platform

nomicons/wink I'm too, my holidays finished.

Re: Terminal block generator cross-platform

Run qet_tb_generator is not easy and no time, but I tried to install qet_tb_generator directly in QET, now work on Gnu/Linux :

Unalcalde if you can help me for run this script :
http://stackoverflow.com/questions/1918 … hon-script

Post's attachments

Attachment icon qet_tb_generator_install.diff 3.39 kb, 500 downloads since 2016-08-30 

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

84 (edited by unalcalde 2016-08-30 18:55:01)

Re: Terminal block generator cross-platform

Ok, I'll try. 

You are using qet_tb_generator 0.50, the last one is 0.53 (on window caption appears). You can update with: sudo pip3 install --upgrade qet_tb_generator

Re: Terminal block generator cross-platform

In the diff file, you are assuming that python 3.5 is intalled and QET is executing on linx. If you want I try to fix, but maybe is easy a menu command that launch the qet_tb_generator if it's installed.

If it's not intalled,  migth appears a msg indicating how to do, and a link to https://pypi.python.org/pypi/qet-tb-generator/

In next versions of QET, the menu entry remain, but it will launch the internal borne generator instead  of qet_tb_generator.

Re: Terminal block generator cross-platform

scorpio810 wrote:

Thank you Unalcalde.
I think I can add a new action in QET for run qet_tb_generator, like a plugin.

In the same time : it's not possible to had button to run dxftoelmt ?

87 (edited by unalcalde 2016-08-30 21:30:29)

Re: Terminal block generator cross-platform

Hi. This works. 
The menu entry might be something like: "Launch plugin ..."
The text of message box something like:

Requires python 3.5 or above.
>> First install on Linux
1. check you have pip3 installed: pip3 --version.
   If not install with: sudo apt-get install python3-pip
2. Install the program: sudo pip3 install qet_tb_generator
3. Run the program: qet_tb_generator

>> Update on Linux
sudo pip3 install --upgrade qet_tb_generator

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

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


CODE

/**
* @brief QETDiagramEditor::slot_generateTerminalBlock
*/
void QETDiagramEditor::slot_generateTerminalBlock() {

bool success;
QProcess *process = new QProcess(qApp);

// If launched under control:
//connect(process, SIGNAL(errorOcurred(int error)), this, SLOT(slot_generateTerminalBlock_error()));
//process->start("qet_tb_generator");

success = process->startDetached("qet_tb_generator");
if ( !success ) {
QMessageBox::warning(0,
"Error launching plugin",
"To install the plugin blah blah\nVisit https://pypi.python.org/pypi/qet-tb-generator/" );
}


}

Re: Terminal block generator cross-platform

galexis wrote:
scorpio810 wrote:

Thank you Unalcalde.
I think I can add a new action in QET for run qet_tb_generator, like a plugin.

In the same time : it's not possible to had button to run dxftoelmt ?

Six month after, and you don't see this. nomicons/grin
https://qelectrotech.org/forum/viewtopi … 4532#p4532
https://qelectrotech.org/forum/viewtopi … 4533#p4533


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

Re: Terminal block generator cross-platform

Revision: 4676
Author:   scorpio810
Date:     2016-08-30 23:42:35 +0200 (Tue, 30 Aug 2016)
Log Message:
-----------
Added new entry for launch plugin qet_tb_generator, thanks Raul

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

Re: Terminal block generator cross-platform

scorpio810 wrote:
galexis wrote:
scorpio810 wrote:

Thank you Unalcalde.
I think I can add a new action in QET for run qet_tb_generator, like a plugin.

In the same time : it's not possible to had button to run dxftoelmt ?

Six month after, and you don't see this.

So fast !nomicons/grin

Re: Terminal block generator cross-platform

I understand why my tests don't work :
If I run QET with Qt creator plugin don't run and in Qt creator console I saw this warning :
This application failed to start because it could not find or load the Qt platform plugin "xcb" etc...and now I see if I run directly binary compiled in source is work well , Strange ..
And I complicate my life wanting to run a shell with python3 command to launch plugin in QET entry ...

Thank you so much Unalcalde.

I tried on VM Windows, and Debian packages too, plugin work fine, nice.nomicons/smile

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

Re: Terminal block generator cross-platform

unalcalde wrote:

Ok, I'll try. 

You are using qet_tb_generator 0.50, the last one is 0.53 (on window caption appears). You can update with: sudo pip3 install --upgrade qet_tb_generator

I understand now my mistake, in first I have installed plugin without sudo and forget this install and not upgraded this version.. nomicons/blush

For me I think which is better to install python environment for plugin in user in .local directory instead in /usr/local/lib/python3.5/ for Gnu/Linux users.

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

Re: Terminal block generator cross-platform

Perfect !!

By now it's enough. In about 6 months I'll can dedicate more time.

If there are some bug in qet_tb_generator say me.

Re: Terminal block generator cross-platform

The destination place of a pip3 installation is by default for all users. If you want to install for current user, you could write : pip3 install --local <package_name>

Re: Terminal block generator cross-platform

galexis wrote:
unalcalde wrote:

I didn't install any more packages. My primary os is xubuntu and I tried on a virtual machine with Lubuntu.

I'll continue trying to create a portable version for all os.

Ok, it's work. pyqt5-dev-tools installed python-pyqt5 (not python3-pyqt5).

Ok, added pyqt5-dev-tools to Recommends in Debian packages.

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

Re: Terminal block generator cross-platform

unalcalde wrote:

Perfect !!

By now it's enough. In about 6 months I'll can dedicate more time.

If there are some bug in qet_tb_generator say me.

Ask me, when you want to join the team.
I can guide you for subscribe, subversion, etc.

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

Re: Terminal block generator cross-platform

scorpio810 wrote:
unalcalde wrote:

Perfect !!

By now it's enough. In about 6 months I'll can dedicate more time.

If there are some bug in qet_tb_generator say me.

Ask me, when you want to join the team.
I can guide you for subscribe, subversion, etc.

nomicons/grin

Re: Terminal block generator cross-platform

scorpio810 wrote:

Revision: 4676
Author:   scorpio810
Date:     2016-08-30 23:42:35 +0200 (Tue, 30 Aug 2016)
Log Message:
-----------
Added new entry for launch plugin qet_tb_generator, thanks Raul

All work fine on LM18 : good job !

99 (edited by galexis 2016-09-01 21:04:37)

Re: Terminal block generator cross-platform

Now, where is stored python code on linux version ?

Re: Terminal block generator cross-platform

whereis qet_tb_generator

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