Hi DMH78,


when you launch plugin in terminal you must see a little windows is the dialog file for selecting project.
Just tried with latest python 3.7 package on Win 10
If you dont choose and select a QET project and close this tk widget I saw this :



Microsoft Windows [version 10.0.15063]
(c) 2017 Microsoft Corporation. Tous droits réservés.

C:\Users\laurent>qet_tb_generator
Traceback (most recent call last):
  File "c:\users\laurent\appdata\local\programs\python\python37-32\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\users\laurent\appdata\local\programs\python\python37-32\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\laurent\AppData\Local\Programs\Python\Python37-32\Scripts\qet_tb_generator.exe\__main__.py", line 9, in <module>
  File "c:\users\laurent\appdata\local\programs\python\python37-32\lib\site-packages\src\main.py", line 1378, in main
    qet_project = QETProject(qet_file)  # allow working with a QET XML file.
  File "c:\users\laurent\appdata\local\programs\python\python37-32\lib\site-packages\src\main.py", line 140, in __init__
    self._qet_tree = etree.parse(project_file)
  File "c:\users\laurent\appdata\local\programs\python\python37-32\lib\xml\etree\ElementTree.py", line 1197, in parse
    tree.parse(source, parser)
  File "c:\users\laurent\appdata\local\programs\python\python37-32\lib\xml\etree\ElementTree.py", line 587, in parse
    source = open(source, "rb")
TypeError: expected str, bytes or os.PathLike object, not NoneType

  Hi DMH78,


you could also update your QET version : qelectrotech version 0.70-dev + svn5248 -> to latest  0.70-dev+svn5437 

Morganol wrote:

Is it possible to launch the appimages with some parameter or other trick to make them use different folders of symbols, templates, drawings?

Yes !

By example : If I want to use new folder "test-0.5" in my HOME QET directory, you need to add argument  --config-dir=   to your AppImage.

./QElectroTech_0.5-x86_64.AppImage --config-dir=/home/laurent/.qet/test-0.5/

Or If you want to use other common collection (--common-elements-dir argument) :

./QElectroTech_0.5-x86_64.AppImage --common-elements-dir=/home/laurent/0.5-test/




You could also extract Appimage and change QET arguments in AppRun file.
https://github.com/AppImage/AppImageKit … -AppImages

./QElectroTech_0.5-x86_64.AppImage --appimage-extract

/squashfs-root$ cat AppRun 
#! /bin/sh

cd $(dirname $(readlink -f $0))/usr/bin/
exec ./qelectrotech --common-elements-dir=../share/elements/ --common-tbt-dir=../share/titleblocks/ --lang-dir=../share/lang/ $@ 

https://github.com/AppImage/AppImageKit … irectories 

Bonjour Opus,

Je découvre et je salue cette initiative d'interopérabilité entre logiciels d'ingénierie, merci pour l'info.

http://www.dexpi.org/wp-content/uploads … ortrag.pdf

https://github.com/DEXPI/Specification/ … %201.2.pdf

https://download.qelectrotech.org/qet/forum_img/DEXPI1.png
https://download.qelectrotech.org/qet/forum_img/DEXPI.png

  On Windows and macOs OS, it is easy to launch an old version of QET such as "ReadyToUse" or bundle "dmg" to minors adjust and retouch old and big projects that we do not need or want to convert them on recent versions, from done I also sent Appimage for versions 0.5 and 0.6.


Enjoy ! nomicons/smile 




https://download.qelectrotech.org/qet/builds/AppImage/ 

Nice, thanks Dik. nomicons/smile

4,432

(554 replies, posted in News)

Salut Joshua, tu as prévu d'ajouter la même fonctionnalité dans l’éditeur d’éléments pour les primitives rectangle?
Je pense que ça serait très utile.

Nice ! Thanks for checking the appimage. nomicons/smile

I uploaded latest AppImage : QElectroTech_0.7-r5437-x86_64.AppImage

https://download.qelectrotech.org/qet/builds/AppImage/ 

  QElectroTech V 0.70-dev
Compilation: GCC 6.3.0 20170516 - built with Qt 5.7.1 - run with Qt 5.7.1 using 16 thread(s)


Debian 9 GLIBC_2.24 

  Hmm, this AppImage was built on my Debian Sid and needs to work on the most recent distributions like Ubuntu 18.04, Debian testing/Unstable, etc.
So I use a older distribution to make AppImage, or https://github.com/AppImage/AppImageKit … pGenerator
or https://github.com/wheybags/glibc_version_header

https://github.com/AppImage/AppImageKit … ase-system 

Morganol wrote:

I it possible to include more in the appimage to make it less system dependent?

Yes :

qelectrotech/usr/plugins$ tree
.
|-- bearer
|   |-- libqconnmanbearer.so
|   |-- libqgenericbearer.so
|   `-- libqnmbearer.so
|-- iconengines
|   `-- libqsvgicon.so
|-- imageformats
|   |-- kimg_eps.so
|   |-- kimg_exr.so
|   |-- kimg_kra.so
|   |-- kimg_ora.so
|   |-- kimg_pcx.so
|   |-- kimg_pic.so
|   |-- kimg_psd.so
|   |-- kimg_ras.so
|   |-- kimg_rgb.so
|   |-- kimg_tga.so
|   |-- kimg_xcf.so
|   |-- libqgif.so
|   |-- libqicns.so
|   |-- libqico.so
|   |-- libqjpeg.so
|   |-- libqmng.so
|   |-- libqsvg.so
|   |-- libqtga.so
|   |-- libqtiff.so
|   |-- libqwbmp.so
|   `-- libqwebp.so
|-- platforminputcontexts
|   |-- libcomposeplatforminputcontextplugin.so
|   |-- libibusplatforminputcontextplugin.so
|   `-- libqtvirtualkeyboardplugin.so
|-- platforms
|   `-- libqxcb.so
|-- printsupport
|   `-- libcupsprintersupport.so
|-- sqldrivers
|   |-- libqsqlite.so
|   |-- libqsqlmysql.so
|   `-- libqsqlpsql.so
`-- xcbglintegrations
    |-- libqxcb-egl-integration.so
    `-- libqxcb-glx-integration.so


8 directories, 35 files 

I just tried with Linuxdeployqt, isn't finished, but if you could try it, thanks.





QElectroTech V 0.70-dev
Compilation : GCC 7.3.0 - built with Qt 5.10.1 - run with Qt 5.10.1 using 16 thread(s) 

Well, thanks.
First version is based on ubuntu Xenial, the last to Bionic.

Hi,

thanks for your feedback, I updated in the AppImage GCC et Qt libs versions and uploaded new version.
FYI, I use pkg2appimage, I'm having  some troubles with linuxdeployqt for linking element collection, titleblock, etc  at this time.





QElectroTech V 0.70-dev+svn5435

Compilation : GCC 7.3.0 - built with Qt 5.9.5 - run with Qt 5.9.5 using 16 thread(s) 

If you could try it..

[size=4]QElectroTech V 0.70-dev+svn5428
Compilation : GCC 5.4.0 20160609 - built with Qt 5.5.1 - run with Qt 5.5.1 using 16 thread(s)

For me I think is a good idea to add in future of plugin version "cable type" and "cross section" on table, and perhaps it can help to generate cable part list in future, what do you think?
https://qelectrotech.org/forum/viewtopi … 8327#p8327
https://qelectrotech.org/forum/viewtopic.php?id=1207 

Calypso wrote:

Hello scorpio810,
I installed it witch this command "sudo apt-get install python3-tk" and try a little

Best regards

Stebo

I think you have removed in the pass theses dependancy needed by old plugin:
https://qelectrotech.org/forum/viewtopi … 8030#p8030

apt-rdepends python3-tk
Reading package lists... Done
Building dependency tree        
Reading state information... Done
python3-tk
  Depends: blt (>= 2.4z-9)
  Depends: libc6 (>= 2.4)
  Depends: libtcl8.6 (>= 8.6.0)
  Depends: libtk8.6 (>= 8.6.0)
  Depends: libx11-6
  Depends: python3 (<< 3.8)
  Depends: tk8.6-blt2.5 (>= 2.5.3)
blt
  Depends: tk8.6-blt2.5 (= 2.5.3+dfsg-4)
tk8.6-blt2.5
  Depends: libc6 (>= 2.14)
  Depends: libtcl8.6 (>= 8.6.0)
  Depends: libtk8.6 (>= 8.6.0)
  Depends: libx11-6

  Hi Stebo,


thanks, I will add this dependance on future packages. 

Hi Stebo,

which package did you install to fix the problem? 

Hello,

if you use 0.7-dev version see this howto :

Calypso wrote:

import tkinteras tk
ModuleNotFoundError:No module named 'tkinter'
stebo@stebo-VirtualBox:~$


Try to add python3-tk


sudo apt-get install python3-tk 

If always same error install tk tix

sudo apt-get install tk tix

Tix :
library for Tk -- runtime package 
 
The Tix library for Tk extends Tk with new widgets like:

  • panned windows,

  • hierarchical lists,

  • folders,

  • combo boxes,

  • help balloons,

  • and many others.

python3-tk  :
Tkinter - Writing Tk applications with Python 3.x 
 
A module for writing portable GUI applications with Python 3.x using Tk.
Also known as Tkinter.


Tk :
Toolkit for Tcl and X11 (default version) - windowing shell 
 
Tk is a cross-platform graphical toolkit which provides the Motif
look-and-feel and is implemented using the Tcl scripting language.


This package is a dependency package, which depends on Debian's default
Tk version (currently 8.6). 

Hello Stebo,
to check if the plugin is correctly installed, open a terminal and put this command:

qet_tb_generator

Is open a  file dialog to choice your project.

If ok you could open your project  with QET and in menu project clic on entry "launch terminal block creation plugin"

Hi Stebo,

if you use my PPA just uninstall old pip3 plugin install by

sudo pip3 uninstall qet_tb_generator


and install deb package by

sudo apt-get install qet-tb-generator

  Hi,
uploaded version 1.0.14 deb packages. 

4,450

(554 replies, posted in News)

  Well, I decided now to only provide packages with latest Qt 5.11.1 and moving to  GCC 8 compiler for Win 7 to Win 10, and stopping to provide packages for Windows XP/Vista (Qt 5.7.1).


https://github.com/mxe/mxe/issues/2121

Strange I checked some recent Xp packages compiled with GCC7 and shows this problem now:
"The procedure entry point inet_pton could not be located in the dynamic link library WS2_32.dll."


the function inet_pton is available only since windows VISTA and not for Windows XP