Topic: Problem with install get_tb_generator on macOS

Hi

I'm new user for QElectroTech
I have problem with install get_tb_generator

Windows 10
Python 3.11.1 (download from python website)
QElectroTech 0.90

I run : pip install get_tb_generator

ERROR : Could not find a version that .....

Plese help me. Thanks

Post's attachments

Screenshot_1.png, 8.51 kb, 818 x 58
Screenshot_1.png 8.51 kb, 80 downloads since 2023-02-04 

Re: Problem with install get_tb_generator on macOS

Hi,

maybe it is not available for python 3.11?
otherwise you have exe package here : https://download.qelectrotech.org/qet/b … generator/
Or here  https://download.qelectrotech.org/qet/b … rator_win/

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

Re: Problem with install get_tb_generator on macOS

Hi scorpio810,

Thank for your fast response but my antivirus, McAfee antivirus block exe file download from yourlink.

Re: Problem with install get_tb_generator on macOS

Hi,

uninstall python 3.11 and try with python 3.9

Just tried on macOS Ventura:

 pip3 install qet_tb_generator  
Defaulting to user installation because normal site-packages is not writeable
Collecting qet_tb_generator
  Downloading qet_tb_generator-1.3.1-py3-none-any.whl (393 kB)
     |████████████████████████████████| 393 kB 4.2 MB/s 
Requirement already satisfied: PySimpleGUI in /Library/Python/3.9/site-packages (from qet_tb_generator) (4.60.4)
Installing collected packages: qet-tb-generator
  WARNING: The script qet_tb_generator is installed in '/Users/laurent/Library/Python/3.9/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed qet-tb-generator-1.3.1
WARNING: You are using pip version 21.2.4; however, version 23.0 is available.
You should consider upgrading via the '/Applications/Xcode.app/Contents/Developer/usr/bin/python3 -m pip install --upgrade pip' command.

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

Re: Problem with install get_tb_generator on macOS

Try with pip3 command:

pip3 install qet_tb_generator

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

Re: Problem with install get_tb_generator on macOS

I success to install them but when I run QElectroTech and goto Lunch the terminal block creation plugin menu
popup error lunching qet_tb_generator plugin show
I goto directory Python..\Scripts and run qet_tb_generator.exe It can open and run ok.

Re: Problem with install get_tb_generator on macOS

What your python version?
In QET code qet_tb_generator launch path was hardcoded with python version 3.9.

https://github.com/qelectrotech/qelectr … .cpp#L2377


https://github.com/qelectrotech/qelectr … .cpp#L2433

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

8 (edited by peter_smalley94 2023-02-22 12:02:46)

Re: Problem with install get_tb_generator on macOS

I have an issue where terminal Block plug in runs seperatly from Qelectrotech but it wont run properly or thought the Qelectrotech program. I know the correct file path is being used it jsut cant search it.

Post's attachments

Screen Shot 2023-02-22 at 08.14.58.png, 105.75 kb, 578 x 372
Screen Shot 2023-02-22 at 08.14.58.png 105.75 kb, 87 downloads since 2023-02-22 

Re: Problem with install get_tb_generator on macOS

Hi Peter,

when you have installed python 3.9 bundle have you also added python PATH in your zsh profile?

BTW, for my personnal information what QET version use you, intel or arm64 version?

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

Re: Problem with install get_tb_generator on macOS

A framework /Library/Frameworks/Python.framework, which includes the Python executable and libraries. The installer adds this location to your shell path.

https://docs.python.org/3/using/mac.html

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

Re: Problem with install get_tb_generator on macOS

MacOS arm64 python 3.11 installation
get:
https://www.python.org/ftp/python/3.11. … acos11.pkg
1) Install it.

2) Click on "Update Shell Profile.command" script to add python Path in your shell.

3) Install qet_tb-generator in terminal:

laurent@mini-de-laurent ~ % pip3 install qet_tb_generator
Collecting qet_tb_generator
  Using cached qet_tb_generator-1.3.1-py3-none-any.whl (393 kB)
Collecting PySimpleGUI
  Downloading PySimpleGUI-4.60.4-py3-none-any.whl (509 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 510.0/510.0 kB 7.1 MB/s eta 0:00:00
Installing collected packages: PySimpleGUI, qet_tb_generator
Successfully installed PySimpleGUI-4.60.4 qet_tb_generator-1.3.1

[notice] A new release of pip available: 22.3.1 -> 23.0.1
[notice] To update, run: pip3 install --upgrade pip
laurent@mini-de-laurent ~ % 

Test if launch:

laurent@mini-de-laurent ~ % /Library/Frameworks/Python.framework/Versions/3.11/bin/qet_tb_generator
15:02:21 INFO     QET Terminal Block Generator - v1.3.1 [main.main:840]
15:02:28 INFO     Using the file: None [main.get_QET_fullpath:189]
laurent@mini-de-laurent ~ % 

macOs arm64 ok:

QElectroTech V 0.100.0-dev
Compilation : CLANG 14.0.0 (clang-1400.0.29.202)
Built with Qt 5.15.8 - arm64 - Date : Feb 22 2023 : 17:30:28
Git Revision : 78644a35245a4c658bcaa350d17130092d31b05b
Run with Qt 5.15.8 using 8 thread(s)
CPU : Apple M2
RAM Total : 8 GB

GPU :
GPU RAM :
OS : darwin - arm64 - Version : macOS 13.2 - Kernel : 22.3.0
*** Qt screens ***
( 1 : 3840 x 2160 )

https://download.qelectrotech.org/qet/forum_img_2/qet_tb-generator-arm64_python3.11.png

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

Re: Problem with install get_tb_generator on macOS

I dont think i have added the python PATH in your zsh profile how would you do this?

My Version is:

QElectroTech V 0.90 rc7891bc4c
Compilation : CLANG 14.0.0 (clang-1400.0.29.202)
Built with Qt 5.15.6 - x86_64 - Date : Jan 6 2023 : 13:09:17
Run with Qt 5.15.6 using 4 thread(s)
CPU : Intel(R) Core(TM) i5 CPU M 540 @ 2.53GHz
RAM Total : 8 GB

GPU :
GPU RAM :
OS : darwin - x86_64 - Version : macOS High Sierra (10.13) - Kernel : 17.7.0
*** Qt screens ***
( 1 : 1920 x 1200 )

Re: Problem with install get_tb_generator on macOS

for 0.90 QET version only use python 3.9
When you install python bundle at end is show a windows with more scripts, double click on "Update Shell Profile.command" script in the windows list to add python Path in your shell.

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

Re: Problem with install get_tb_generator on macOS

cat .zprofile
# Setting PATH for Python 3.11
# The original version is saved in .zprofile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.11/bin:${PATH}"
export PATH

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

Re: Problem with install get_tb_generator on macOS

Modify PATH to your python 3.9 version.

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

Re: Problem with install get_tb_generator on macOS

I have updated the verison of qelectrotech to the same as you and put on python 3.11 run the shellprofile.command file and made sure everything is up to date and it still comes up with the same error when i try and run the terminal builder in the program

Re: Problem with install get_tb_generator on macOS

You don't have forgot to install
pip3 install qet_tb_generator

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

Re: Problem with install get_tb_generator on macOS

Try to launch qet_tb_generator with QElectroTech open with industrial.qet example provided.

Or get it here: https://github.com/qelectrotech/qelectr … strial.qet

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

Re: Problem with install get_tb_generator on macOS

When i install the pip3 it says that is is already satisfied:

pip3 install qet_tb_generator
Requirement already satisfied: qet_tb_generator in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (1.3.1)
Requirement already satisfied: PySimpleGUI in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from qet_tb_generator) (4.60.4)

This still isnt working

Re: Problem with install get_tb_generator on macOS

QET version 0.100.0 use hardcoded python 3.11 path only for macOS.

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

Re: Problem with install get_tb_generator on macOS

I have python 3.11 and i am running QET version 0.100.0. I have run the shell profile too. I am not sure why it isnt working can you please give me some information to look for

Re: Problem with install get_tb_generator on macOS

Try this command in your terminal:

/Library/Frameworks/Python.framework/Versions/3.11/bin/qet_tb_generator

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

Re: Problem with install get_tb_generator on macOS

Command qet_tb_generator on terminal work too.

Last login: Sun Mar 19 11:15:52 on ttys000
laurent@mini-de-laurent-1 ~ % qet_tb_generator
11:34:34 INFO     QET Terminal Block Generator - v1.3.1 [main.main:840]

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

Re: Problem with install get_tb_generator on macOS

When i put the command in my terminal this comes up:

Post's attachments

Screen Shot 2023-04-27 at 16.19.26.png, 90.89 kb, 906 x 632
Screen Shot 2023-04-27 at 16.19.26.png 90.89 kb, 70 downloads since 2023-04-27 

Re: Problem with install get_tb_generator on macOS

When i run the terminal block generator this way i get this code:

Post's attachments

Attachment icon Screen Shot 2023-04-27 at 16.41.55.png 169.88 kb, 27 downloads since 2023-04-27