- Posts: 2180
- Thank you received: 0
(Solved) QtVCP installation errors
5 years 3 weeks ago #222495
by spumco
QtVCP installation errors was created by spumco
[carried over from QtPyVCP thread...]
Error attempting to install QtVCP using the 2.8 script from Phil.
LCNC 2.8.2
Python2 appears to be the default:
MILL@MILL:~
$ python --version
Python 2.7.16
Terminal error when script is run:
MILL@MILL:~/Downloads
$ ./qtvcp.exe
I would like to have the QT designer, but it's not critical. I selected option 3 to reproduce the error.
If I select option 1, I get:
Installation complete, QtVCP screens are now available.
However, when I attempt to run LCNC and select a QtVCP GUI, I get this:
So... any ideas?
Thanks,
Ralph
Error attempting to install QtVCP using the 2.8 script from Phil.
LCNC 2.8.2
Python2 appears to be the default:
MILL@MILL:~
$ python --version
Python 2.7.16
Terminal error when script is run:
MILL@MILL:~/Downloads
$ ./qtvcp.exe
Warning: Spoiler!
installing common base packages [sudo] password for MILL: Reading package lists... Done Building dependency tree Reading state information... Done espeak is already the newest version (1.48.04+dfsg-7+deb10u1). espeak-ng is already the newest version (1.49.2+dfsg-
. gstreamer1.0-tools is already the newest version (1.14.4-1). sound-theme-freedesktop is already the newest version (0.8-2). 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. installing base packages for python3 Reading package lists... Done Building dependency tree Reading state information... Done python3-dbus is already the newest version (1.2.8-3). python3-opencv is already the newest version (3.2.0+dfsg-6). python3-cairo is already the newest version (1.16.2-1+b1). python3-gi-cairo is already the newest version (3.30.4-1). python3-opengl is already the newest version (3.1.0+dfsg-2). python3-dbus.mainloop.pyqt5 is already the newest version (5.11.3+dfsg-1+b3). python3-pyqt5 is already the newest version (5.11.3+dfsg-1+b3). python3-pyqt5.qtopengl is already the newest version (5.11.3+dfsg-1+b3). python3-pyqt5.qtsvg is already the newest version (5.11.3+dfsg-1+b3). python3-pyqt5.qtwebkit is already the newest version (5.11.3+dfsg-1+b3). python3-espeak is already the newest version (0.5-1+b6). python3-numpy is already the newest version (1:1.16.2-1). python3-xlib is already the newest version (0.23-2). python3-pyqt5.qsci is already the newest version (2.10.4+dfsg-2.1). 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. Do you wish to install Qt Designer for creating or modifying a GUI 1 = No, exit 2 = Yes, for a Run In Place installation 3 = Yes, for a package installation Selection? 3 installing common tools Reading package lists... Done Building dependency tree Reading state information... Done qttools5-dev is already the newest version (5.11.3-4). qttools5-dev-tools is already the newest version (5.11.3-4). 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. installing python3 tools Reading package lists... Done Building dependency tree Reading state information... Done pyqt5-dev-tools is already the newest version (5.11.3+dfsg-1+b3). libpython3-dev is already the newest version (3.7.3-1). 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. not found in /usr/lib/python3/dist-packages/qtvcp/plugins/ cannot continue designer installation MILL@MILL:~/Downloads
I would like to have the QT designer, but it's not critical. I selected option 3 to reproduce the error.
If I select option 1, I get:
Installation complete, QtVCP screens are now available.
However, when I attempt to run LCNC and select a QtVCP GUI, I get this:
Warning: Spoiler!
Traceback (most recent call last): File "/usr/bin/qtvcp", line 377, in APP = QTVCP() File "/usr/bin/qtvcp", line 214, in __init__ self.panel = qt_makepins.QTPanel(self.hal, PATH, window, opts.debug) File "/usr/lib/python2.7/dist-packages/qtvcp/qt_makepins.py", line 72, in __init__ widget.hal_init() File "/usr/lib/python2.7/dist-packages/qtvcp/widgets/widget_baseclass.py", line 58, in hal_init self._hal_init() File "/usr/lib/python2.7/dist-packages/qtvcp/widgets/screen_options.py", line 145, in _hal_init self.init_message_dialog() File "/usr/lib/python2.7/dist-packages/qtvcp/widgets/screen_options.py", line 446, in init_message_dialog from qtvcp.widgets.dialog_widget import LcncDialog File "/usr/lib/python2.7/dist-packages/qtvcp/widgets/dialog_widget.py", line 31, in from qtvcp.widgets.macro_widget import MacroTab File "/usr/lib/python2.7/dist-packages/qtvcp/widgets/macro_widget.py", line 86, in class CustomSVG(QtSvg.QSvgWidget): NameError: name 'QtSvg' is not defined
So... any ideas?
Thanks,
Ralph
Please Log in to join the conversation.
5 years 3 weeks ago #222498
by phillc54
Replied by phillc54 on topic QtVCP installation errors
Something is obviously wrong there, it is installing python3 packages rather than python2.
Are you using the LinuxCNC Buster ISO?
EDIT: A quick look at Git shows that the install_script does not exist in 2.8 branch. I will try to get to this later today.
Are you using the LinuxCNC Buster ISO?
EDIT: A quick look at Git shows that the install_script does not exist in 2.8 branch. I will try to get to this later today.
Please Log in to join the conversation.
5 years 3 weeks ago #222506
by spumco
Replied by spumco on topic QtVCP installation errors
So it's not me? That'd be a first.
FYI - using MX per Snowgoer's instructions. Stopped at the buildbot step and substituted "2.8-rtpreempt" for "master."
FYI - using MX per Snowgoer's instructions. Stopped at the buildbot step and substituted "2.8-rtpreempt" for "master."
Please Log in to join the conversation.
5 years 3 weeks ago #222520
by phillc54
Replied by phillc54 on topic QtVCP installation errors
How did you run the Qt install_script?
EDIT: Attached is an untested script that will hopefully work on 2.8. I don't have a machine setup to test it on so let me know how it goes, if it fails then I will make a machine to test it on. You will need to remove the .txt extesion and make it executable.
EDIT: Attached is an untested script that will hopefully work on 2.8. I don't have a machine setup to test it on so let me know how it goes, if it fails then I will make a machine to test it on. You will need to remove the .txt extesion and make it executable.
Attachment not found
Please Log in to join the conversation.
5 years 3 weeks ago #222582
by spumco
I ran it by clicking the link in the installation guide, copying the script text, and pasting it in to a blank file. Then changed permissionts to run as executable and changed extension to .exe.
Then ran $./Downloads/qtvcp.exe from the command line.
I'll have a go at the new script right now. BRB.
EDIT - I'm back.
So... good news, bad news. QtVCP screens are now loading.
But an error again when trying to install the designer:
Selection? 3
installing common tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
qttools5-dev is already the newest version (5.11.3-4).
qttools5-dev-tools is already the newest version (5.11.3-4).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
installing python2 tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
pyqt5-dev-tools is already the newest version (5.11.3+dfsg-1+b3).
libpython-dev is already the newest version (2.7.16-1).
libpython-dev set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
libpyqt5_py2.so.tar.gz not found in /usr/lib/python2.7/dist-packages/qtvcp/designer/x86_64/qt5.11/
cannot continue designer installation
Any thoughts? I can live with this as-is, but it'd be nice to eventually be able to edit stuff.
-R
Replied by spumco on topic QtVCP installation errors
How did you run the Qt install_script?
EDIT: Attached is an untested script that will hopefully work on 2.8. I don't have a machine setup to test it on so let me know how it goes, if it fails then I will make a machine to test it on. You will need to remove the .txt extesion and make it executable.
Attachment not found
I ran it by clicking the link in the installation guide, copying the script text, and pasting it in to a blank file. Then changed permissionts to run as executable and changed extension to .exe.
Then ran $./Downloads/qtvcp.exe from the command line.
I'll have a go at the new script right now. BRB.
EDIT - I'm back.
So... good news, bad news. QtVCP screens are now loading.
But an error again when trying to install the designer:
Selection? 3
installing common tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
qttools5-dev is already the newest version (5.11.3-4).
qttools5-dev-tools is already the newest version (5.11.3-4).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
installing python2 tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
pyqt5-dev-tools is already the newest version (5.11.3+dfsg-1+b3).
libpython-dev is already the newest version (2.7.16-1).
libpython-dev set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
libpyqt5_py2.so.tar.gz not found in /usr/lib/python2.7/dist-packages/qtvcp/designer/x86_64/qt5.11/
cannot continue designer installation
Any thoughts? I can live with this as-is, but it'd be nice to eventually be able to edit stuff.
-R
Please Log in to join the conversation.
5 years 3 weeks ago #222590
by phillc54
There is a copy of the required file attached if you want to try copying it to:/usr/lib/python2.7/dist-packages/qtvcp/designer/x86_64/qt5.11/ then running the script again.
Replied by phillc54 on topic QtVCP installation errors
This indicates that libpyqt5_py2.so.tar.gz was not installed. That should be installed by the LinuxCNC package, it does show up here on a MX19 machine that I ran up.libpyqt5_py2.so.tar.gz not found in /usr/lib/python2.7/dist-packages/qtvcp/designer/x86_64/qt5.11/
There is a copy of the required file attached if you want to try copying it to:/usr/lib/python2.7/dist-packages/qtvcp/designer/x86_64/qt5.11/ then running the script again.
Please Log in to join the conversation.
5 years 3 weeks ago #222615
by spumco
Replied by spumco on topic QtVCP installation errors
I don't seem to have a 5.11 folder. I've got qt5.5, 5.7, and 5.9, but no 5.11.
Please Log in to join the conversation.
5 years 3 weeks ago #222616
by phillc54
Replied by phillc54 on topic QtVCP installation errors
Hmm, that is strange, it is there in the source:
github.com/LinuxCNC/linuxcnc/tree/2.8/li...tvcp/designer/x86_64
EDIT: I can see why, it need to be added to the Makefile after lines 669 and 687
github.com/LinuxCNC/linuxcnc/blob/2.8/src/Makefile
EDIT2: I have pushed the changes so when Buildbot is finished you should be good to go.
github.com/LinuxCNC/linuxcnc/tree/2.8/li...tvcp/designer/x86_64
EDIT: I can see why, it need to be added to the Makefile after lines 669 and 687
github.com/LinuxCNC/linuxcnc/blob/2.8/src/Makefile
EDIT2: I have pushed the changes so when Buildbot is finished you should be good to go.
Please Log in to join the conversation.
5 years 3 weeks ago #222618
by spumco
Replied by spumco on topic QtVCP installation errors
Thanks for the help. So I should run the script again as-is, or is there some other prerequisite I need to get 5.11 before I do the script?
Please Log in to join the conversation.
5 years 3 weeks ago #222619
by phillc54
Replied by phillc54 on topic QtVCP installation errors
You can either wait until the buildbot finishes, do an update/upgrade then run the new script which should be installed.
or
Create a 5.11 directory (as sudo) then copy the .gz file (as sudo) I posted earlier then run the script you ran earlier.
or
Create a 5.11 directory (as sudo) then copy the .gz file (as sudo) I posted earlier then run the script you ran earlier.
Please Log in to join the conversation.
Time to create page: 0.727 seconds
