Installing QtVCP

More
22 Oct 2021 04:39 #223876 by annhandt09
Replied by annhandt09 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: annhandt09

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

More
22 Oct 2021 08:34 - 22 Oct 2021 08:50 #223889 by annhandt09
Replied by annhandt09 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 annhandt09.

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.

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