Qtvcp use with grinder

More
12 Jun 2019 08:21 #136703 by partec
Replied by partec on topic Qtvcp use with grinder
this was also my suspicion but that will be ok soon I think, thank you Chris

Peter

Please Log in or Create an account to join the conversation.

More
12 Jun 2019 11:00 #136710 by pl7i92
Replied by pl7i92 on topic Qtvcp use with grinder
im also struggeling to get qtpyvcp on 2.9 debian9
cant get vtk on the system pip will not install it and vtk6 is not what to be needed to qtpyvcp
this is different to qtvcp

lots of name confusing

Please Log in or Create an account to join the conversation.

More
12 Jun 2019 16:20 #136753 by andypugh
Replied by andypugh on topic Qtvcp use with grinder
If you are embedding in Touchy then the details of this commit might be interesting:

github.com/LinuxCNC/linuxcnc/commit/1bcd...1f714346de50bc5b6c55

It allows the embedded code in the custom tab to know that it is currently active.

Please Log in or Create an account to join the conversation.

More
13 Jun 2019 05:04 #136806 by cmorley
Replied by cmorley on topic Qtvcp use with grinder
So I found a debian Stretch version on my laptop.
I added linuxcnc's buildbot's master version of linuxcnc.

I already had qt5 designer on the computer (and it worked with the RIP version of linuxcnc)

i did the file links/coping by starting a sudo filemanger in a terminal with the command:
sudo thunar

The installed qtvcp library is in:
/usr/lib/python2.7/dist-packages/qtvcp/plugins/

I made a link for qtvcp_plugin.py by clicking the file and selecting the dropdown 'edit' and then selecting 'make link'
that leaves a link file called 'link to qtvcp_plugin.py'

I moved that file to:
/usr/lib/x86_64-linux-gnu/qt5/plugins/designer/python/
If the /python part is not there then you would need to add it first

I then started designer in a terminal with the command:

designer -qt=5

The widgets showed up.

Chris M

Please Log in or Create an account to join the conversation.

More
13 Jun 2019 05:13 #136808 by cmorley
Replied by cmorley on topic Qtvcp use with grinder

cmorley wrote: I moved that file to:
/usr/lib/x86_64-linux-gnu/qt5/plugins/designer/python/
If the /python part is not there then you would need to add it first
Chris M


I can confirm you can also put this link into:

~/.designer/plugins/python/


(for anyone jumping in I skip the part about copping libpyqt5_py2.so file - see the docs)

Chris M

Please Log in or Create an account to join the conversation.

More
14 Jun 2019 15:53 - 14 Jun 2019 17:32 #136892 by partec
Replied by partec on topic Qtvcp use with grinder
with new DVD 4.9.0-9-rt-amd64 #1 SMP PREEMPT RT Debian 4.9.168-1+deb9u2 (2019-05-13) x86_64 GNU/Linux

step by step install but no success with LinuxCNC widgets

File Attachment:

File Name: qtdefault_mmError.txt
File Size:11 KB
Attachments:
Last edit: 14 Jun 2019 17:32 by partec.

Please Log in or Create an account to join the conversation.

More
14 Jun 2019 21:27 #136914 by cmorley
Replied by cmorley on topic Qtvcp use with grinder
'is package python-pyqt5.qtsvg installed'

please install this package and try designer again.

Chris M

Please Log in or Create an account to join the conversation.

More
14 Jun 2019 21:53 #136920 by partec
Replied by partec on topic Qtvcp use with grinder
eruepe@vre:~$ sudo apt-get install python-pyqt5.qtsvg
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Die folgenden NEUEN Pakete werden installiert:
python-pyqt5.qtsvg
0 aktualisiert, 1 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
Es müssen 31.2 kB an Archiven heruntergeladen werden.
Nach dieser Operation werden 124 kB Plattenplatz zusätzlich benutzt.
Holen:1 ftp.ch.debian.org/debian stretch/main amd64 python-pyqt5.qtsvg amd64 5.7+dfsg-5 [31.2 kB]
Es wurden 31.2 kB in 0 s geholt (178 kB/s).
Vormals nicht ausgewähltes Paket python-pyqt5.qtsvg wird gewählt.
(Lese Datenbank ... 172574 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../python-pyqt5.qtsvg_5.7+dfsg-5_amd64.deb ...
Entpacken von python-pyqt5.qtsvg (5.7+dfsg-5) ...
python-pyqt5.qtsvg (5.7+dfsg-5) wird eingerichtet ...
eruepe@vre:~$

very easy Chris, thank you so much, result is great! We can try to go on now, it is wonderfull, thank you all for this things!

Please Log in or Create an account to join the conversation.

More
15 Jun 2019 05:42 #136953 by cmorley
Replied by cmorley on topic Qtvcp use with grinder
I take it you see the widgets in designer now - excellent!
If you want audio alerts and the camera alignment widget to work, you need to add these libraries too (other error messages in your post):

[QTvcp.QTVCP.LIB.AUDIO_PLAYER][[33mWARNING[0m] no audio alerts available - Is gstreamer-1.0-tools installed? (audio_player.py:39)
[QTvcp.QTVCP.WIDGETS.CAMVIEW_WIDGET][[31mERROR[0m] Qtvcp Error with camview - is python-opencv installed? (camview_widget.py:41)

Let me know how you experience building a screen goes - it's all very new code!

Chris M

Please Log in or Create an account to join the conversation.

More
15 Jun 2019 08:00 - 15 Jun 2019 08:07 #136962 by partec
Replied by partec on topic Qtvcp use with grinder
just tried CamPY setup for use on my favorite laboratory CNC
in stretch environments there is always something like

~/linuxcnc/configs/CamPY$ sudo python CamPY_setup.py
Traceback (most recent call last):
File "CamPY_setup.py", line 23, in <module>
import apt
ImportError: No module named apt

now I'm jumping to try
- Is gstreamer-1.0-tools installed?
- is python-opencv installed?

python-opencv is installed now but
gstreamer-1.0-tools was not found

but "Cam View" works already perfect in QTvcp-Screen-qt_cnc
Last edit: 15 Jun 2019 08:07 by partec.

Please Log in or Create an account to join the conversation.

Time to create page: 0.097 seconds
Powered by Kunena Forum