(Solved) QtVCP installation errors

More
07 Oct 2021 21:44 #222495 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

Warning: Spoiler!


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!


So... any ideas?

Thanks,
Ralph

 

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

More
07 Oct 2021 22:18 - 07 Oct 2021 22:27 #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.
 
Last edit: 07 Oct 2021 22:27 by phillc54.

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

More
08 Oct 2021 01:00 #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."

 

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

More
08 Oct 2021 05:09 - 08 Oct 2021 05:58 #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.

 

File Attachment:

File Name: install_script.txt
File Size:4 KB
Attachments:
Last edit: 08 Oct 2021 05:58 by phillc54.
The following user(s) said Thank You: spumco

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

More
08 Oct 2021 20:52 - 08 Oct 2021 20:58 #222582 by spumco
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.

 

File Attachment:

File Name: install_script.txt
File Size:4 KB

 


 


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
 
Last edit: 08 Oct 2021 20:58 by spumco. Reason: Pasted error from terminal

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

More
08 Oct 2021 22:13 - 08 Oct 2021 22:17 #222590 by phillc54
Replied by phillc54 on topic QtVCP installation errors

libpyqt5_py2.so.tar.gz not found in /usr/lib/python2.7/dist-packages/qtvcp/designer/x86_64/qt5.11/

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.
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.
 
Attachments:
Last edit: 08 Oct 2021 22:17 by phillc54.

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

More
09 Oct 2021 00:57 #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 or Create an account to join the conversation.

More
09 Oct 2021 01:00 - 09 Oct 2021 01:18 #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.


 
Last edit: 09 Oct 2021 01:18 by phillc54.

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

More
09 Oct 2021 01:31 #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 or Create an account to join the conversation.

More
09 Oct 2021 01:37 #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.
 
The following user(s) said Thank You: spumco

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

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