Topic: Error running qet_tb_generator after generating terminal blocks

First of all, thanks for your great electrical drawing program.

I more or less finish my drawing and decided to generate the terminal block, which worked well.
After reopening the drawing and doing a Save within qet, the tb generator does work any more and generates the message below.

Traceback (most recent call last):
  File "C:\Users\Hermanita\AppData\Local\Programs\Python\Python38-32\Scripts\qet_tb_generator-script.py", line 11, in <module>
    load_entry_point('qet-tb-generator==1.1.5', 'console_scripts', 'qet_tb_generator')()
  File "c:\users\hermanita\appdata\local\programs\python\python38-32\lib\site-packages\src\main.py", line 840, in main
    qet_project = QETProject(qet_file)  # allows working with a QET XML file.
  File "c:\users\hermanita\appdata\local\programs\python\python38-32\lib\site-packages\src\qetproject.py", line 66, in __init__
    self._qet_tree = etree.parse(project_file)
  File "c:\users\hermanita\appdata\local\programs\python\python38-32\lib\xml\etree\ElementTree.py", line 1202, in parse
    tree.parse(source, parser)
  File "c:\users\hermanita\appdata\local\programs\python\python38-32\lib\xml\etree\ElementTree.py", line 595, in parse
    self._root = parser._parse_whole(source)
xml.etree.ElementTree.ParseError: unbound prefix: line 7, column 20

I did some testing and the problem appears after saving a drawing within Qet when terminal blocks are generated.

Any clues to resolve this?
Do you need any logs/files to diagnose this problem?

Regards Herman

Re: Error running qet_tb_generator after generating terminal blocks

Hi,
see this :
https://qelectrotech.org/forum/viewtopi … 8385#p8385
https://qelectrotech.org/forum/viewtopi … 112#p12112

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

Re: Error running qet_tb_generator after generating terminal blocks

Thanks for the response.

If I remove the xml blocks <logos> for the qet file it works again.
Can you indicate why get_tb_generator does not accept those xml parts?

Regards

Herman

Re: Error running qet_tb_generator after generating terminal blocks

I don't know, I suppose isn't a logo xml parts issue in QET because plugin work with logo in titlebock the first time.

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