Topic: (Solved)Problem with QET_TB_GENERATOR v1.1.6

Hi! I'm happy to use qet! Congratulations!

I'm having trouble running qet_tb_generator. In the attached projects, the Alimentação_e_Moagem_19 backup starts the qet_tb_ generator. But when continuing the project Alimentação_e_Moagem project, qet_tb_generator does not start.

I identified the problem after adding the post on page 56. If you exclude qet_tb_generator it will work again.


I thank the attention!

Post's attachments

Attachment icon Alimentação e Moagem_19.zip 653.94 kb, 27 downloads since 2020-08-21 

Re: (Solved)Problem with QET_TB_GENERATOR v1.1.6

Hi, new version of qet_tb_generator plug-in fixe it.

Re: (Solved)Problem with QET_TB_GENERATOR v1.1.6

Thank you. Doing the tests.

Re: (Solved)Problem with QET_TB_GENERATOR v1.1.6

Hello guys!
After updating qet_tb to version 1.1.6 I was able to generate new terminal blocks. But at the moment I have the same problem. qet_tb_generator v1.1.6 does not start.
See attached project.

In bkp 41 qet_tb starts, but not in the project.

Thank you very much in advance.

Post's attachments

Attachment icon Alimentação e Moagem_1.zip 1.35 mb, 17 downloads since 2020-08-28 

Re: (Solved)Problem with QET_TB_GENERATOR v1.1.6

Traceback (most recent call last):
  File "/usr/local/bin/qet_tb_generator", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.8/dist-packages/src/main.py", line 851, in main
    qet_terminals = qet_project.get_list_of_used_terminals()
  File "/usr/local/lib/python3.8/dist-packages/src/qetproject.py", line 328, in get_list_of_used_terminals
    cableNum = self._getCableNum(diagram, terminalId)
  File "/usr/local/lib/python3.8/dist-packages/src/qetproject.py", line 217, in _getCableNum
    for cable in diagram.find('conductors').findall('conductor'):
AttributeError: 'NoneType' object has no attribute 'findall'
Traceback (most recent call last):
  File "qet_tb_generator.py", line 9, in <module>
  File "src/main.py", line 840, in main
  File "src/qetproject.py", line 80, in __init__
KeyError: 'folioSheetQuantity'
[10150] Failed to execute script qet_tb_generator
 
laurent@debian:/media/backup6/download$ qet_tb_generator -v
09:30:03 INFO     ** QElectrotech terminal block plug-in - v1.1.6 ** [main.main:839]
09:30:03 INFO     Using the argument passed: ['/usr/local/bin/qet_tb_generator', '-v'](2) [main.get_QET_path:769]
Traceback (most recent call last):
  File "/usr/local/bin/qet_tb_generator", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.8/dist-packages/src/main.py", line 850, in main
    qet_project = QETProject(qet_file)  # allows working with a QET XML file.
  File "/usr/local/lib/python3.8/dist-packages/src/qetproject.py", line 67, in __init__
    self._qet_tree = etree.parse(project_file)
  File "/usr/lib/python3.8/xml/etree/ElementTree.py", line 1202, in parse
    tree.parse(source, parser)
  File "/usr/lib/python3.8/xml/etree/ElementTree.py", line 584, in parse
    source = open(source, "rb")
FileNotFoundError: [Errno 2] No such file or directory: '-v'
[09:30:03] laurent@debian:/media/backup6/download$ apt-cache policy qet-tb-generator
qet-tb-generator:
  Installé : 1.1.6-2
  Candidat : 1.1.6-2
Table de version :
*** 1.1.6-2 500
        500 [url]http://debian.qelectrotech.org/qet/debian[/url] unstable/main amd64 Packages
        100 /var/lib/dpkg/status

Re: (Solved)Problem with QET_TB_GENERATOR v1.1.6

I am a simple user of qet. I don't have any programming skills.
I'm rooting for the problem to be solved.

Even so, I thank you for your attention and congratulations on your work.

Re: (Solved)Problem with QET_TB_GENERATOR v1.1.6

Hi Palhenrique and thanks for compliments.
But if you could send your project to Raul https://pypi.org/project/qet-tb-generator/

8 (edited by palhenrique 2020-08-30 01:58:22)

Re: (Solved)Problem with QET_TB_GENERATOR v1.1.6

Thank you Scorpio810! I sent him an email as suggested.
See you later.

Re: (Solved)Problem with QET_TB_GENERATOR v1.1.6

Hi,

the problem is that if a page has some terminals, must have a minimum of one cable.

The next version will fix it, but for now there are 2 solutions:

1. Draw some cable (see the image as an example)
2. For reserve terminals, there are a field in the plug-in that allows it without drawing one-by-one at the schema. The field is different for every terminal block.

Post's attachments

reserve.png, 157.43 kb, 1394 x 890
reserve.png 157.43 kb, 27 downloads since 2020-08-31 

10 (edited by palhenrique 2020-08-31 16:55:22)

Re: (Solved)Problem with QET_TB_GENERATOR v1.1.6

Hello Unalcalde!

Thank you very much.

QET has an excellent team of developers! Congratulations again.