Installing QtVCP

More
22 Oct 2021 04:39 #223876 by nhanpham
Replied by nhanpham on topic Installing QtVCP
hi all,
I installed the Master brand of linuxcnc. It's using python3..
I built runandplace.

after I changed :

ln -s  /home/mycom/linuxcnc/lib/python/qtvcp/plugins/qtvcp_plugin.py /usr/lib/x86_64-linux-gnu/qt5/plugins/designer/python
 

and run 

/home/mycom/linuxcnc/scripts/rip-environment designer -qt=5

 But have error:

Qtvcp python plugin found:', '/usr/lib/x86_64-linux-gnu/qt5/plugins/designer/python/qtvcp_plugin.py')
Traceback (most recent call last):
  File "/usr/lib/x86_64-linux-gnu/qt5/plugins/designer/python/qtvcp_plugin.py", line 23, in <module>
    from qtvcp.plugins.simplewidgets_plugin import *
  File "/home/mycom/linuxcnc/lib/python/qtvcp/plugins/simplewidgets_plugin.py", line 5, in <module>
    from qtvcp.widgets.simple_widgets import PushButton
  File "/home/mycom/linuxcnc/lib/python/qtvcp/widgets/simple_widgets.py", line 17, in <module>
    from qtvcp.widgets.widget_baseclass import (_HalWidgetBase,
  File "/home/mycom/linuxcnc/lib/python/qtvcp/widgets/widget_baseclass.py", line 19, in <module>
    import hal
  File "/home/mycom/linuxcnc/lib/python/hal.py", line 30, in <module>
    import _hal
ImportError: /home/mycom/linuxcnc/lib/python/_hal.so: undefined symbol: _Py_FalseStruct

Can you help me check it?

thank all

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

More
22 Oct 2021 06:12 #223880 by cmorley
Replied by cmorley on topic Installing QtVCP
That last line is a typical error of a python2/3 version problem.

Are you sure you compiled for python3?
The following user(s) said Thank You: nhanpham

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

More
22 Oct 2021 08:34 - 22 Oct 2021 08:50 #223889 by nhanpham
Replied by nhanpham on topic Installing QtVCP
ok, i rebuild, link to direct again

ln -s  /home/mycom/linuxcnc/lib/python/qtvcp/plugins/qtvcp_plugin.py /usr/lib/x86_64-linux-gnu/qt5/plugins/designer/python```

I can load to qt designer now.But I don't see linuxcnc widgets in the QT designer.
I have libpyqt5_py2.so in 

/usr/lib/x86_64-linux-gnu/qt5/plugins/designer folder.

QT Designer  worked with V2.8.

 thank you so much
Last edit: 22 Oct 2021 08:50 by nhanpham.

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

More
22 Oct 2021 08:44 - 22 Oct 2021 22:37 #223890 by phillc54
Replied by phillc54 on topic Installing QtVCP
libpyqt5_py2.so is the python2 file, for master branch you need the default python3 file, libpyqt5.so which should have already existed.

​​​​​
Last edit: 22 Oct 2021 22:37 by phillc54. Reason: Wrong python version

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

More
23 Apr 2022 17:47 - 23 Apr 2022 17:48 #241009 by ajsinfotech
Replied by ajsinfotech on topic Installing QtVCP
Hi phillc54,

I am working on a RPi4.
I manage to build and run Qt5/PyQt5 from source but I get the following:
 
 

Where can I find the libpyqt5_py2.so pluging binary for RPi4?
If not, where can a find the source and build instructions to build a brand new libpyqt5_py2.so plugin for RPi4?

I think it is a platform conflict, so it seems making a rebuild for RPi could be work. 

Thanks!
Attachments:
Last edit: 23 Apr 2022 17:48 by ajsinfotech.

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

More
23 Apr 2022 23:43 #241039 by phillc54
Replied by phillc54 on topic Installing QtVCP
I seem to recall that there was an issue with the python-opengl module that prevents QtVCP being used on a Pi. I think it was built using OpenGL ES and QtVCP requires OpenGL Desktop. I have no clue as to whether this has changed recently.

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

More
24 Apr 2022 10:33 #241057 by rodw
Replied by rodw on topic Installing QtVCP

I seem to recall that there was an issue with the python-opengl module that prevents QtVCP being used on a Pi. I think it was built using OpenGL ES and QtVCP requires OpenGL Desktop. I have no clue as to whether this has changed recently.

Funny you say that. I mucked about with a pi today trying to use the linuxcnc-uspace  package from testing branch. I thought I had it working until I tried to run qtplasmac and it failed with a missing python3-gst1.0 dependency which does not exist in testing branch.

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

More
24 Apr 2022 10:36 #241058 by cmorley
Replied by cmorley on topic Installing QtVCP
Can you post the failure? GST should not be required to run qtvcp

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

More
24 Apr 2022 11:01 #241062 by phillc54
Replied by phillc54 on topic Installing QtVCP

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

More
24 Apr 2022 19:55 #241102 by rodw
Replied by rodw on topic Installing QtVCP
Ahh, the error message that printed while opening qtplasmac I think was malformed and missing a hyphen so I could not find it on a package search
I suspect it was a red herring anyway.
Phill's mention of opengl is more likely the issue.

Sorry but I've blown away that version on the pi (along with 20 others while playing.....) so can't share it
And besides I was also using apt-pinning to get to the bookworm packages

Despite the amazing latency I got from the pi using this thread
forum.linuxcnc.org/9-installing-linuxcnc...cnc?start=130#238020
They are not terribly useful for me becasue at present:
1. they can't run qtplasmac and;
2 I can't install ethercat master.

I think Item 2 is related to the odd kernel 5.15 the Pi uses which is in between bullseye and bookworm. I was going to try installing it on a plain non preempt_rt version of the pi.  But I don't understand how to make the pi load the preempt_rt image in Debian once its installed.

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

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