Topic: qet-tb-generator install linux using python3 -m venv

Hello everybody. I am having difficulty installing the terminal module. I'm on version 0.8 on Linux Mint 22. I need help.
On terminal :

gleissonjjc@gleissonjjc-Inspiron-3481:~$ sudo pip3 install qet_tb_generator
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
    python3-xyz, where xyz is the package you are trying to
    install.
   
    If you wish to install a non-Debian-packaged Python package,
    create a virtual environment using python3 -m venv path/to/venv.
    Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
    sure you have python3-full installed.
   
    If you wish to install a non-Debian packaged Python application,
    it may be easiest to use pipx install xyz, which will manage a
    virtual environment for you. Make sure you have pipx installed.
   
    See /usr/share/doc/python3.12/README.venv for more information.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.

Re: qet-tb-generator install linux using python3 -m venv

Maybe with create your pyton virtual env?

python3 -m venv venv/ && source venv/bin/activate
pip install qet_tb_generator


laurent@debian:~$ whereis qet_tb_generator 
qet_tb_generator: /home/laurent/venv/bin/qet_tb_generator

When you need qet_tb_generator activate your virtual env before.
by

source venv/bin/activate

ps: qet_tb_generator in virtual env can't be launched by QET directly, I don't know why at this time, so you need to do in the terminal and wrote qet_tb_generator for launch it and choose where is your project and select it.


That's why I prefer the deb packages I had packaged, I think I also created them on the ubuntu PPA.
FYI qet_tb_generator need also pysimplegui with deb packages.

See https://launchpad.net/~scorpio/+archive … rotech-dev

and for the same way you if you want with pinning you can upgrade to lastest devel 0.100 versions, QET 0.8 release was now very very old.

Edit : Linux Mint 22. x is based on Ubuntu 24.04.
name is Noble.

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

Re: qet-tb-generator install linux using python3 -m venv

Uploaded qet_tb_generator and pysimplegui to Ubuntu 24.04 on my PPA.

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

Re: qet-tb-generator install linux using python3 -m venv

Oh Great ! Worked perfectly ! Tks scorpio810 !

Re: qet-tb-generator install linux using python3 -m venv

gleissoncg2 wrote:

Oh Great ! Worked perfectly ! Tks scorpio810 !

Great, thanks, what have you used python virtual env or my debs packages?

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

Re: qet-tb-generator install linux using python3 -m venv

scorpio810 wrote:
gleissoncg2 wrote:

Oh Great ! Worked perfectly ! Tks scorpio810 !

Great, thanks, what have you used python virtual env or my debs packages?

I added the ppa on my system with .deb packages. Working fine

Re: qet-tb-generator install linux using python3 -m venv

Thanks for your feed back.

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

Re: qet-tb-generator install linux using python3 -m venv

scorpio810 wrote:

Maybe with create your pyton virtual env?

python3 -m venv venv/ && source venv/bin/activate
pip install qet_tb_generator


laurent@debian:~$ whereis qet_tb_generator 
qet_tb_generator: /home/laurent/venv/bin/qet_tb_generator

When you need qet_tb_generator activate your virtual env before.

by

source venv/bin/activate
(venv) [14:20:26] laurent@debian:~$ whereis qet_tb_generator 
qet_tb_generator: /home/laurent/venv/bin/qet_tb_generator
(venv) [14:27:18] laurent@debian:~$ 

Now in the same terminal launch QET

qelectrotech

Example here
(venv) [14:20:26] laurent@debian:~$ qelectrotech



14:19:59.059 Info:  project to use for qet_tb_generator:  "/home/laurent/Qet-svn/git/qet/examples/industrial.qet" 
14:19:59.059 Info:  success so far:  false   - now searching for  "/home/laurent/.local/share/QElectroTech/QElectroTech/binary/qet_tb_generator" 
14:19:59.059 Info:  success so far:  false   - now searching for  "/home/laurent/qet_tb_generator" 
14:19:59.059 Info:  success so far:  false   - now searching for  "/home/laurent/.qet/qet_tb_generator" 
14:19:59.059 Info:  success so far:  false   - now searching for  "/home/laurent/venv/bin/qet_tb_generator" 
14:19:59.091 Info:  success so far:  true   - now searching for  "qet_tb_generator" 
14:19:59 INFO     QET Terminal Block Generator - v1.3.1 [main.main:840]

Maybe edit QET launcher to ?

source venv/bin/activate && qelectrotech %F

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

Re: qet-tb-generator install linux using python3 -m venv

source venv/bin/activate && qelectrotech %F

https://github.com/qelectrotech/qelectr … 95e9f6b74a
Thanks, plc-user. nomicons/wink

16:30:28.938 Info:  project to use for qet_tb_generator:  "/home/laurent/Qet-svn/git/qet/examples/industrial.qet" 
16:30:28.938 Info:  qet_tb_generator not found : "/home/laurent/.local/share/QElectroTech/QElectroTech/binary/qet_tb_generator" 
16:30:28.938 Info:  qet_tb_generator not found : "/home/laurent/qet_tb_generator" 
16:30:28.938 Info:  qet_tb_generator not found : "/home/laurent/.qet/qet_tb_generator" 
16:30:28.972 Info:  qet_tb_generator found here: "/home/laurent/venv/bin/qet_tb_generator" 
16:30:29 INFO     QET Terminal Block Generator - v1.3.1 [main.main:840]
16:30:29 INFO     Using the file: /home/laurent/Qet-svn/git/qet/examples/industrial.qet [main.get_QET_fullpath:189]

qet_tb_generator found here: "/home/laurent/venv/bin/qet_tb_generator

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

Re: qet-tb-generator install linux using python3 -m venv

scorpio810 wrote:

Thanks, plc-user. nomicons/wink

You're welcome!  nomicons/smile

Fragen zu QET gehören in dieses Forum und werden nicht per PM beantwortet! – Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !