Probe Basic Lathe on LinuxCNC 2.9
24 Dec 2021 15:00 #229892
by NoJo
Probe Basic Lathe on LinuxCNC 2.9 was created 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?
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.
24 Dec 2021 17:03 #229904
by spumco
Replied by spumco on topic Probe Basic Lathe on LinuxCNC 2.9
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
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.
24 Dec 2021 18:13 - 24 Dec 2021 18:13 #229913
by TurBoss
Replied by TurBoss on topic Probe Basic Lathe on LinuxCNC 2.9
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
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.
25 Dec 2021 10:21 - 25 Dec 2021 11:43 #229951
by NoJo
Replied by NoJo on topic Probe Basic Lathe on LinuxCNC 2.9
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
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.
30 Dec 2021 03:20 #230311
by Lcvette
Replied by Lcvette on topic Probe Basic Lathe on LinuxCNC 2.9
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.
- geostein8888
- Offline
- Junior Member
Less
More
- Posts: 29
- Thank you received: 0
18 Nov 2023 11:45 #285822
by geostein8888
Replied by geostein8888 on topic Probe Basic Lathe on LinuxCNC 2.9
Hello,
i have the same problem in lathe mode, but i installed probe_basic with the deb packages so i do not have a git repo in to make a pull
do you have a tip for me how to solve the problem
File "/usr/lib/python3/dist-packages/yaml/scanner.py", line 577, in fetch_value
raise ScannerError(None, None,
yaml.scanner.ScannerError: mapping values are not allowed here
in "<unicode string>", line 331, column 63:
... stance from spindle toolchange:
Thanks
Georg
i have the same problem in lathe mode, but i installed probe_basic with the deb packages so i do not have a git repo in to make a pull
do you have a tip for me how to solve the problem
File "/usr/lib/python3/dist-packages/yaml/scanner.py", line 577, in fetch_value
raise ScannerError(None, None,
yaml.scanner.ScannerError: mapping values are not allowed here
in "<unicode string>", line 331, column 63:
... stance from spindle toolchange:
Thanks
Georg
Please Log in or Create an account to join the conversation.
18 Nov 2023 12:27 #285824
by rodw
Replied by rodw on topic Probe Basic Lathe on LinuxCNC 2.9
Please note the linuxcnc 2.9 ISO download includes the qtpyvcp repos set up for apt for covenience. you just need to do the usual sudo apt install per the qtpyvcp web site.
This also implies thet if qtpyvcp updates their repos, sudo apt upgrade will get the latest published version...
This also implies thet if qtpyvcp updates their repos, sudo apt upgrade will get the latest published version...
Please Log in or Create an account to join the conversation.
- geostein8888
- Offline
- Junior Member
Less
More
- Posts: 29
- Thank you received: 0
18 Nov 2023 13:30 #285826
by geostein8888
Replied by geostein8888 on topic Probe Basic Lathe on LinuxCNC 2.9
unfortunately apt install python3-qtpyvcp tells me that i already have installed the latest version
root@siridrill:/usr/lib/python3/dist-packages/probe_basic# apt install python3-qtpyvcp
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
python3-qtpyvcp ist schon die neueste Version (4.0-35.dev).
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
root@siridrill:/usr/lib/python3/dist-packages/probe_basic# apt install python3-qtpyvcp
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
python3-qtpyvcp ist schon die neueste Version (4.0-35.dev).
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
Please Log in or Create an account to join the conversation.
- geostein8888
- Offline
- Junior Member
Less
More
- Posts: 29
- Thank you received: 0
18 Nov 2023 13:43 #285827
by geostein8888
Replied by geostein8888 on topic Probe Basic Lathe on LinuxCNC 2.9
here the info qtpyvcp
root@siridrill:/usr/lib/python3/dist-packages/probe_basic# qtpyvcp -i
QtPyVCP Info
Version: 0+unknown
LinuxCNC Info
Version: 2.9.1
Qt Info
Qt Version: 5.15.8
Qt API: PyQt5
Qt API Version: 5.15.9
System Info
Description: Debian GNU/Linux 12 (bookworm)
Kernel: 6.1.0-13-rt-amd64
Version: #1 SMP PREEMPT_RT Debian 6.1.55-1 (2023-09-29)
Ram: 16 GB
CPU Info
Vendor ID: Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz
Architecture:
Physical Cores: 4
Logical Cores: 4
root@siridrill:/usr/lib/python3/dist-packages/probe_basic# qtpyvcp -i
QtPyVCP Info
Version: 0+unknown
LinuxCNC Info
Version: 2.9.1
Qt Info
Qt Version: 5.15.8
Qt API: PyQt5
Qt API Version: 5.15.9
System Info
Description: Debian GNU/Linux 12 (bookworm)
Kernel: 6.1.0-13-rt-amd64
Version: #1 SMP PREEMPT_RT Debian 6.1.55-1 (2023-09-29)
Ram: 16 GB
CPU Info
Vendor ID: Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz
Architecture:
Physical Cores: 4
Logical Cores: 4
Please Log in or Create an account to join the conversation.
19 Nov 2023 23:26 #285972
by Lcvette
Replied by Lcvette on topic Probe Basic Lathe on LinuxCNC 2.9
run the uninstall commands below, then follow the installation section from the link below to install the apt version. easy peasy just did this on my machines the other day works perfectly, be sure to rename your config files something other than probe basic so they do not get overwritten during the update. never a bad idea to keep a backup copy somewhere also before running updates just to be safe!
uninstall existing deb installation, run each in terminal in order below to remove without dependency errors:
sudo dpkg -P python3-probe-basic
sudo dpkg -P python3-qtpyvcp
sudo dpkg -P python3-hiyapyco
Next, follow the short instructions here to setup apt:
kcjengr.github.io/probe_basic/quick_start_apt.html
uninstall existing deb installation, run each in terminal in order below to remove without dependency errors:
sudo dpkg -P python3-probe-basic
sudo dpkg -P python3-qtpyvcp
sudo dpkg -P python3-hiyapyco
Next, follow the short instructions here to setup apt:
kcjengr.github.io/probe_basic/quick_start_apt.html
Please Log in or Create an account to join the conversation.
Time to create page: 0.116 seconds