Qtvcp is missing on linuxcnc environment

More
09 Feb 2020 10:31 #156857 by prochj51
Tried it. But still the same issue.

But thank you very much anyway.
I will try to keep digging.

Jiri

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

More
09 Feb 2020 16:32 #156888 by persei8
For an installed system, the link belongs where Chris said.

jim@LCNC-dev:~$ ls -l /usr/lib/x86_64-linux-gnu/qt5/plugins/designer
total 36
-rw-r--r-- 1 root root 31648 Sep 19 18:34 libpyqt5_py2.so
drwxr-xr-x 2 root root 4096 Sep 19 13:20 python

jim@LCNC-dev:~$ ls -l /usr/lib/x86_64-linux-gnu/qt5/plugins/designer/python
total 4
lrwxrwxrwx 1 root root 62 Sep 19 13:20 qtvcp_plugin.py -> /usr/lib/python2.7/dist-packages/qtvcp/plugins/qtvcp_plugin.py

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

More
10 Feb 2020 03:39 #156929 by prochj51
Does qt designer have any log file? Maybe I can see there
why it was not loaded.

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

More
10 Feb 2020 13:25 #156948 by cmorley
Not that I know of, which makes trouble shooting difficult :(

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

More
10 Feb 2020 23:19 #156987 by BeagleBrainz
Ok I had Linux Mint 19.2 setup on the follwoing:

1: A vitrual Machine using VBox
2: A T530 laptop

Both were installed from the same custom Linux Mint install disc, ie all packages were the same, same updates applied.

I installed the Qtvcp as per the gist instructions then went to install QtPyVCP as instructions here www.qtpyvcp.com/install/quick_start.html on the VBox installation, Qtvcp designer had all the icons.

I then did the same on the T530 but did not install QyPyVCP, no icons showed up in the designer, once I did the following I had the icons showing up in designer.
sudo apt install python-pyqt5 python-dbus.mainloop.pyqt5 python-pyqt5.qtopengl python-pyqt5.qsci python-pyqt5.qtmultimedia qml-module-qtquick-controls gstreamer1.0-plugins-bad libqt5multimedia5-plugins pyqt5-dev-tools python-dev python-setuptools python-pip git python-pyqtgraph

Starting designer from terminal berfore
qt5ct: using qt5ct plugin
qt5ct: D-Bus global menu: no
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
qt5ct: D-Bus system tray: no

After
qt5ct: using qt5ct plugin
qt5ct: D-Bus global menu: no
[QtDesigner][INFO]  Logging to "/home/rmurphy/qtdesigner.log" (logger.py:88)
[QtDesigner.QTVCP.WIDGETS.MDI_HISTORY][DEBUG]  MDI History file created: /home/rmurphy/.axis_mdi_history (mdi_history.py:72)
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
qt5ct: D-Bus system tray: no

Now I am on the right track ?

Truncated log of installing packages:
$ sudo apt install python-pyqt5 python-dbus.mainloop.pyqt5 python-pyqt5.qtopengl python-pyqt5.qsci python-pyqt5.qtmultimedia qml-module-qtquick-controls gstreamer1.0-plugins-bad libqt5multimedia5-plugins pyqt5-dev-tools python-dev python-setuptools python-pip git python-pyqtgraph
Reading package lists... Done
Building dependency tree       
Reading state information... Done
git is already the newest version (1:2.17.1-1ubuntu0.5).
python-dbus.mainloop.pyqt5 is already the newest version (5.10.1+dfsg-1ubuntu2).
python-pyqt5 is already the newest version (5.10.1+dfsg-1ubuntu2).
python-pyqt5.qsci is already the newest version (2.10.2+dfsg-4).
python-pyqt5.qtopengl is already the newest version (5.10.1+dfsg-1ubuntu2).
The following additional packages will be installed:
  libass9 libbs2b0 libdca0 libde265-0 libdvdnav4 libdvdread4 libexpat1-dev
  libfaad2 libflite1 libfluidsynth1 libgstreamer-plugins-bad1.0-0
  libgupnp-igd-1.0-4 libkate1 liblilv-0-0 libmjpegutils-2.1-0 libmms0
  libmodplug1 libmpcdec6 libmpeg2encpp-2.1-0 libmplex2-2.1-0 libnice10 libofa0
  libopenal-data libopenal1 libpython-dev libpython2.7-dev libqgsttools-p1
  libqt4-dbus libqt4-declarative libqt4-designer libqt4-help libqt4-network
  libqt4-script libqt4-scripttools libqt4-sql libqt4-svg libqt4-test
  libqt4-xml libqt4-xmlpatterns libqt5multimedia5 libqt5multimediawidgets5
  libqtassistantclient4 libqtcore4 libqtdbus4 libqtgui4 libserd-0-0
  libsndio6.1 libsord-0-0 libsoundtouch1 libspandsp2 libsratom-0-0 libsrtp2-1
  libvo-aacenc0 libvo-amrwbenc0 libvulkan1 libwildmidi-config libwildmidi2
  libzbar0 python-decorator python-pip-whl python-qt4 python-scipy
  python2.7-dev python3-pyqt5 python3-sip qdbus qml-module-qtgraphicaleffects
  qml-module-qtquick-layouts qml-module-qtquick-window2 qml-module-qtquick2
  qtcore4-l10n

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

More
11 Feb 2020 17:42 #157083 by prochj51
I reinstalled my updated linuxCNC from scratch as RIP like here linuxcnc.org/docs/2.8/html/code/building-linuxcnc.html .

Installed without any problems, all tests went well.

When I want to run
designer -qt=5
it says designer not found,
so I have to give the full path to the designer, that's the first thing.

The second thing is, when I run it I get the following output and the widget are not loaded.
prochj51@debianCNC:~/linuxcnc-dev$ ./scripts/rip-environment /usr/lib/x86_64-linux-gnu/qt5/bin/designer

[QtDesigner][INFO]  Logging to "/home/prochj51/qtdesigner.log" (logger.py:88)
Traceback (most recent call last):
  File "/usr/lib/x86_64-linux-gnu/qt5/plugins/designer/python/qtvcp_plugin.py", line 22, in <module>
    from qtvcp.plugins.simplewidgets_plugin import *
  File "/home/prochj51/linuxcnc-dev/lib/python/qtvcp/plugins/simplewidgets_plugin.py", line 14, in <module>
    from qtvcp.widgets.xembed import XEmbed
  File "/home/prochj51/linuxcnc-dev/lib/python/qtvcp/widgets/xembed.py", line 10, in <module>
    from qtvcp.lib import xembed
  File "/home/prochj51/linuxcnc-dev/lib/python/qtvcp/lib/xembed.py", line 46, in <module>
    from Xlib.protocol import event
ImportError: No module named Xlib.protocol

do you know what is Xlib module ?

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

More
11 Feb 2020 17:46 - 12 Feb 2020 10:24 #157085 by prochj51
Okey, so
sudo apt-get install  python-xlib

was enough and modules are loaded.

I do not know, maybe it was also case in the previous version but previously shell
did not give me any output.

Thanks to all of you

Jiri
Last edit: 12 Feb 2020 10:24 by prochj51.

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

More
11 Feb 2020 20:30 #157095 by cmorley
Thanks I'll add that module to the required list

Chris

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

More
11 Feb 2020 21:18 #157097 by BeagleBrainz
Was that python-xli or python-xlib ?

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

More
12 Feb 2020 05:23 #157118 by cmorley
looks like python-xlib

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

Moderators: cmorley
Time to create page: 0.140 seconds
Powered by Kunena Forum