Re: Ideas to solve Terminal Blocks creation
I have test new version: it's ok for only one cross reference on treminal. But generator continu to add terminal wich doesn't exist. Exemple on picture, x:4 appear 2 times
You are not logged in. Please login or register.
QElectroTech → Terminal block generator → Ideas to solve Terminal Blocks creation
I have test new version: it's ok for only one cross reference on treminal. But generator continu to add terminal wich doesn't exist. Exemple on picture, x:4 appear 2 times
Hi Galexis,
I've tried some combinations and this are the results. Note the difference between X1:3 and X1:4.
Check again and if there are some problems send me your diagram (or a part) to debug and find the problem.
Hi, version 0.7.5 is launched.
The terminal block element can have up to 2 texts. Now the plugin searches in all texts any text with the correct format, i.e "X1:2".
I have problem to update it :
sudo pip3 install --upgrade qet_tb_generator
[sudo] Mot de passe de alexis :
The directory '/home/alexis/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/alexis/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already up-to-date: qet_tb_generator in /usr/local/lib/python3.5/dist-packages
Requirement already up-to-date: pyqt5 in /usr/local/lib/python3.5/dist-packages (from qet_tb_generator)
Requirement already up-to-date: sip<4.20,>=4.19 in /usr/local/lib/python3.5/dist-packages (from pyqt5->qet_tb_generator)
I use LM17.3.
[20:02:37] laurent@debian:~/.cache/pip$ ls -al
total 20
drwx------ 4 laurent laurent 4096 août 29 2016 .
drwxr-xr-x 37 laurent laurent 4096 juin 13 19:59 ..
drwx------ 8 laurent laurent 4096 août 29 2016 http
-rw-r--r-- 1 laurent laurent 69 août 29 2016 selfcheck.json
drwxr-xr-x 3 laurent laurent 4096 août 29 2016 wheels
[20:02:51] laurent@debian:~/.cache/pip$
Hello,
FYI I added for deb packages pyqt5-dev-tools, python3-pip dependency into Recommends.
qelectrotech (version 0.60.r4980-1) sera mis à niveau vers la version 0.60.r4987-1
qelectrotech-data (version 0.60.r4980-1) sera mis à niveau vers la version 0.60.r4987-1
qelectrotech-examples (version 0.60.r4980-1) sera mis à niveau vers la version 0.60.r4987-1
libexpat1-dev (version 2.2.1-3) sera installé
libpython3-dev (version 3.5.3-3) sera installé
libpython3.5-dev (version 3.5.3-3) sera installé
python-pip-whl (version 9.0.1-2) sera installé
python3-asn1crypto (version 0.22.0-1) sera installé
python3-cffi-backend (version 1.9.1-2+b1) sera installé
python3-crypto (version 2.6.1-7+b1) sera installé
python3-cryptography (version 1.9-1) sera installé
python3-dev (version 3.5.3-3) sera installé
python3-idna (version 2.2-1) sera installé
python3-keyring (version 10.4.0-1) sera installé
python3-keyrings.alt (version 2.2-2) sera installé
python3-pip (version 9.0.1-2) sera installé
python3-secretstorage (version 2.3.1-2) sera installé
python3-setuptools (version 36.0.1-1) sera installé
python3-wheel (version 0.29.0-2) sera installé
python3.5-dev (version 3.5.3-3) sera installé
User who want plugin for terminal block just need to install by pip3 like this:
sudo pip3 install --upgrade qet_tb_generator
Collecting qet_tb_generator
Downloading qet_tb_generator-0.7.5-py3-none-any.whl
Collecting pyqt5 (from qet_tb_generator)
Downloading PyQt5-5.9-5.9.1-cp35.cp36.cp37-abi3-manylinux1_x86_64.whl (104.6MB)
100% |████████████████████████████████| 104.6MB 17kB/s
Collecting sip<4.20,>=4.19.3 (from pyqt5->qet_tb_generator)
Downloading sip-4.19.3-cp35-cp35m-manylinux1_x86_64.whl (63kB)
100% |████████████████████████████████| 71kB 2.1MB/s
Installing collected packages: sip, pyqt5, qet-tb-generator
Successfully installed pyqt5-5.9 qet-tb-generator-0.7.5 sip-4.19.3
I have problem with command on LM18.1:
sudo pip3 install --upgrade qet_tb_generator
[sudo] Mot de passe de alexis :
The directory '/home/alexis/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/alexis/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already up-to-date: qet_tb_generator in /usr/local/lib/python3.5/dist-packages
Requirement already up-to-date: pyqt5 in /usr/local/lib/python3.5/dist-packages (from qet_tb_generator)
Requirement already up-to-date: sip<4.20,>=4.19.3 in /usr/local/lib/python3.5/dist-packages (from pyqt5->qet_tb_generator)
https://stackoverflow.com/questions/286 … ag-for-pip
sudo -H pip3 install --upgrade qet_tb_generator
Requirement already up-to-date: qet_tb_generator in /usr/local/lib/python3.5/dist-packages
Requirement already up-to-date: pyqt5 in /usr/local/lib/python3.5/dist-packages (from qet_tb_generator)
Requirement already up-to-date: sip<4.20,>=4.19.3 in /usr/local/lib/python3.5/dist-packages (from pyqt5->qet_tb_generator)
Nice ! ;-)
~$ sudo pip3 install --upgrade qet_tb_generator
[sudo] Mot de passe de laurent :
Requirement already up-to-date: qet_tb_generator in /usr/local/lib/python3.5/dist-packages
Requirement already up-to-date: pyqt5 in /usr/local/lib/python3.5/dist-packages (from qet_tb_generator)
Requirement already up-to-date: sip<4.20,>=4.19.3 in /usr/local/lib/python3.5/dist-packages (from pyqt5->qet_tb_generator)
Generator doesn't work .... crash after click to generate.
It crash with test example or with your project?
With new project. but crash with old project wich work in the past. Where is example ?
FR test by example :
https://qelectrotech.org/forum/viewtopi … 6713#p6713
BTW, I think you need to try cleaning your pip installation.
Example doesn't work.
How can I clean installation ?
Example :
[18:04:50] laurent@debian:~$ whereis qet_tb_generator
qet_tb_generator: /usr/local/bin/qet_tb_generator
[18:06:49] laurent@debian:~$ whereis pip3
pip3: /usr/bin/pip3 /usr/share/man/man1/pip3.1.gz
[18:07:10] laurent@debian:~$ pip3 uninstall qet_tb_generator
Uninstalling qet-tb-generator-0.7.5:
/usr/local/bin/qet_tb_generator
/usr/local/lib/python3.5/dist-packages/qet_tb_generator-0.7.5.dist-info/DESCRIPTION.rst
/usr/local/lib/python3.5/dist-packages/qet_tb_generator-0.7.5.dist-info/INSTALLER
/usr/local/lib/python3.5/dist-packages/qet_tb_generator-0.7.5.dist-info/METADATA
/usr/local/lib/python3.5/dist-packages/qet_tb_generator-0.7.5.dist-info/RECORD
/usr/local/lib/python3.5/dist-packages/qet_tb_generator-0.7.5.dist-info/WHEEL
/usr/local/lib/python3.5/dist-packages/qet_tb_generator-0.7.5.dist-info/entry_points.txt
/usr/local/lib/python3.5/dist-packages/qet_tb_generator-0.7.5.dist-info/metadata.json
/usr/local/lib/python3.5/dist-packages/qet_tb_generator-0.7.5.dist-info/top_level.txt
/usr/local/lib/python3.5/dist-packages/src/__init__.py
/usr/local/lib/python3.5/dist-packages/src/__pycache__/__init__.cpython-35.pyc
/usr/local/lib/python3.5/dist-packages/src/__pycache__/frmMain.cpython-35.pyc
/usr/local/lib/python3.5/dist-packages/src/__pycache__/main.cpython-35.pyc
/usr/local/lib/python3.5/dist-packages/src/frmMain.py
/usr/local/lib/python3.5/dist-packages/src/main.py
Proceed (y/n)?
rm -Rf ~/.cache/pip
https://stackoverflow.com/questions/951 … pips-cache
after cleaning and reinstall: not better
Launch program in terminal.
~$ qet_tb_generator
Avec le projet test:
qet_tb_generator
QApplication: invalid style override passed, ignoring it.
b) *borne_continuite2.elmt* : *S7 322-1HH01-OAAO.elmt*
b) *borne_continuite2.elmt* : *borne_continuite2.elmt*
c) X1:2
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/src/main.py", line 181, in create_tb
terminal_elements_in_project = qet_project.get_list_of_used_terminals()
File "/usr/local/lib/python3.5/dist-packages/src/main.py", line 749, in get_list_of_used_terminals
xRefTerminal = self._getXRef(diagram, element) # xref for the terminal
File "/usr/local/lib/python3.5/dist-packages/src/main.py", line 460, in _getXRef
return self._getXRefByCoord (diagram, element_x, element_y)
File "/usr/local/lib/python3.5/dist-packages/src/main.py", line 489, in _getXRefByCoord
% (page, col_size, row_size, element_x, element_y))
TypeError: %i format: a number is required, not str
Abandon
Hi Galexis, if you want send me the Qet project and I will check what's the problem.
My project, but all project crash. Test project of FR : https://qelectrotech.org/forum/viewtopi … 6713#p6713
Terminal block :
Terminal block :
Merci ! Ça va me dépanner... ces doubles références croisées j'arrive toujours pas à comprendre !
Chez toi ça fonctionne ? Sur Kuduntu ? Je ne pense pas que ce soit le script, mais un problème de dépendances.
C'est pour ça que je te l'ai envoyé. .-)
Oui, ça fonctionne bien sur ma Debian unstable aka sid avec plasma 5.
Non, non pas de Ubuntu sur mes machines, faut pas déconner, hein.
Seulement sur les pc de madame et du dernier (kubuntu) ..
Possible qu'il te manque un paquet, mais l'installation avec pip est en principe autonome -> /usr/local/lib/python3.5/
Normalement pour que ça fonctionne bien il te faut ces dépendances: pyqt5-dev-tools python3-pip.
Avec mes paquets normalement si tu n'as pas désactivé les recommends ils devraient être installés, d'ailleurs sans il me semble que la commande pip3 ne fonctionne point.
Debian/control
Source: qelectrotech
Section: electronics
Priority: optional
Maintainer: Laurent Trinques <scorpio@qelectrotech.org>
Build-Depends: cdbs (>= 0.4.89) , debhelper (>= 9), quilt (>= 0.48), qtbase5-dev, quilt, qt5-qmake, libqt5svg5-dev
Standards-Version: 3.9.8
Homepage: http://qelectrotech.org/
Package: qelectrotech
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Recommends: qelectrotech-examples (= ${source:Version}), qelectrotech-data (= ${source:Version}), qttranslations5-l10n, pyqt5-dev-tools, python3-pip
Description: Electric schematic editor
QElectroTech is a Qt5 application written in C++ .
This program is helps you to design electric schematics.
It includes both a schematic editor and a symbol editor.
It uses XML files to store the produced contents.
Package: qelectrotech-data
Architecture: all
Depends: ${misc:Depends}
Recommends: qelectrotech (= ${source:Version})
Description: symbols needed for qelectrotech
QElectroTech is a Qt5 application written in C++ .
This program is helps you to design electric schematics.
It includes both a schematic editor and a symbol editor.
It uses XML files to store the produced contents.
.
This package provide symbols needed for qelectrotech.
Package: qelectrotech-examples
Architecture: all
Depends: ${misc:Depends}
Recommends: qelectrotech (= ${source:Version})
Description: examples files for qelectrotech
QElectroTech is a Qt5 application written in C++ .
This program is helps you to design electric schematics.
It includes both a schematic editor and a symbol editor.
It uses XML files to store the produced contents.
.
This package provide examples files for qeletrotech.
QElectroTech → Terminal block generator → Ideas to solve Terminal Blocks creation
Powered by PunBB, supported by Informer Technologies, Inc.
Generated in 0.040 seconds (42% PHP - 58% DB) with 11 queries