Probe Basic Lathe on LinuxCNC 2.9

More
24 Dec 2021 15:00 #229892 by NoJo
I am using Linux CNC 2.9 with Python3.
I have installed QtPyVCP. With the info cmd I get:
QtPyVCP Info
        Version:        python3_master+140.gb276bee8.dirty
    Qt Info
        Qt Version:     5.11.3
        Qt API:         PyQt5
        Qt API Version: 5.11.3
I have installed the Python3 branch of Probe_Basic
When I try execute the Probe_Basic MMI I get numerous errors as follows:
        Traceback (most recent call last):
  File "/home/jono/qtpyvcp/qtpyvcp/widgets/hal_widgets/hal_label.py", line 66, in textFormat
    self.setValue(self._value)
  File "/home/jono/qtpyvcp/qtpyvcp/widgets/hal_widgets/hal_label.py", line 50, in setValue
    self.setText(f"{value:{self._fmt}}")
ValueError: Invalid format specifier

Traceback (most recent call last):
  File "/home/jono/qtpyvcp/qtpyvcp/widgets/display_widgets/vtk_backplot/vtk_backplot.py", line 411, in load_program
    for wcs_index, actor in list(self.path_actors.items()):
  File "/home/jono/.local/lib/python3.7/site-packages/vtk/qt/QVTKRenderWindowInteractor.py", line 309, in __getattr__
    " has no attribute named " + attr)
AttributeError: VTKBackPlot has no attribute named path_actors

Traceback (most recent call last):
  File "/home/jono/.local/bin/probe_basic_lathe", line 11, in <module>
    load_entry_point('probe-basic', 'gui_scripts', 'probe_basic_lathe')()
  File "/home/jono/probe_basic/probe_basic_lathe/__init__.py", line 19, in main
    qtpyvcp.run_vcp(opts, VCP_CONFIG_FILE)
  File "/home/jono/qtpyvcp/qtpyvcp/__init__.py", line 27, in run_vcp
    run(*args, **kwargs)
  File "/home/jono/qtpyvcp/qtpyvcp/app/__init__.py", line 129, in run
    launch_application(opts, config)
  File "/home/jono/qtpyvcp/qtpyvcp/app/launcher.py", line 82, in launch_application
    app.initialiseWidgets()
  File "/home/jono/qtpyvcp/qtpyvcp/app/application.py", line 251, in initialiseWidgets
    w.initialize()
  File "/home/jono/qtpyvcp/qtpyvcp/widgets/hal_widgets/hal_label.py", line 92, in initialize
    self.setValue(self._in_pin.value)
  File "/home/jono/qtpyvcp/qtpyvcp/widgets/hal_widgets/hal_label.py", line 50, in setValue
    self.setText(f"{value:{self._fmt}}")
ValueError: Invalid format specifier

I also on occasion get an error related to a task overrun.

Please could you provide insight as to whether ProbeBasic / Qyvcp / LimuxCNC2.9 are compatible? If so, how can I go about resolving these issues?
 
The following user(s) said Thank You: TurBoss

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

More
24 Dec 2021 17:03 #229904 by spumco
I can confirm that the following works:

MX21
Lcnc 2.9
Qtpyvcp
Probe Basic

Based on your post, I think you may need to do something with QT.  Here's a snippet from the thread I used to get the above working:

The important difference is that instead of installing MX Linux 19.4 we will install the 21 Release Candidate. This is to get a recent enough QT version (5.15, requirement is 5.12 and MX 19.4 comes with 5.11).

Hope that points you in a productive direction.

forum.linuxcnc.org/qtpyvcp/44000-definit...sic-and-linuxcnc-2-9

 

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

More
24 Dec 2021 18:13 - 24 Dec 2021 18:13 #229913 by TurBoss
your setup is great is just a small bug I just fixed

plz if you could run in probe_basic directory

git pull

then

qcompile .

i thin that will work

Thanks for the report
Last edit: 24 Dec 2021 18:13 by TurBoss.

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

More
25 Dec 2021 10:21 - 25 Dec 2021 11:43 #229951 by NoJo
Thanks Turboss. The change has solved the format errors I was getting.
There are two further issues I hope someone can help with.

ISSUE 1 : CRITICAL
When I select the Probe_Basic_Lathe config  under Linux CNC, I at different stages will get the error:

ERROR - Unexpected realtime delay on task  0 with period 100000
This Message will only display once per session.
Run the Latency Test and  resolve before continuing.

I sometimes get the error when the screen first loads - but linux cnc continues to execute. I can select most screens - but when I select MAIN or FILE, linux cnc shutsdown with the above error

I have done the 'runtests' functions and all passes. Also the latency Test is reasonable with QT Designer open. I do not get the error if I run any of the other simulations (eg qtaxis_lathe). 

Please indicate how I can try establish the reason for this error

ISSUE 2
When I open the Probe_Basic_Lathe.yml file in QT Designer, I get the following warnings:

The set-type property alignment could not be read.
The enumeration-type property orientation could not be read.
The enumeration-type property pinType could not be read

I am not sure if these can just be ignored, or if they are also related to a Python2 to Python3 migration? If I open the Probe_Basic.yml I one get the last one


 
Last edit: 25 Dec 2021 11:43 by NoJo. Reason: Additional analysis

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

More
30 Dec 2021 03:20 #230311 by Lcvette
2.9 and the latest PB py3 seems to be a bit buggy still i think, you may be better off using the lock down version from the installer. the realtime error is typically related to latency. what was the latency test results?

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

Moderators: KCJLcvette
Time to create page: 0.075 seconds
Powered by Kunena Forum