kernel_version error in PnCConf with 7I76E

More
05 Sep 2016 22:01 #80060 by Rogla
Using this kernel:
roger@linuxcnc:~/linuxcnc/configs/millton$ uname -a
Linux linuxcnc 3.2.0-4-rt-amd64 #1 SMP PREEMPT RT Debian 3.2.81-1 x86_64 GNU/Linux

I get following error on "Test/Tune Axis" in PnCConf:
"Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/pncconf/pages.py", line 1068, in on_xaxistune_clicked
def on_xaxistune_clicked(self, *args): self.t.tune_axis('x')
File "/usr/lib/pymodules/python2.7/pncconf/tests.py", line 463, in tune_axis
if not self.a.check_for_rt():
File "/usr/bin/pncconf", line 1640, in check_for_rt
elif hal.is_rt and not hal.kernel_version == actual_kernel:
AttributeError: 'module' object has no attribute 'kernel_version'"

Any idea how to resolve this?
Add some kernel_version attribute to the ini file?

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

More
30 Sep 2016 01:58 #81095 by atrox1333
I have the same setup and I am getting the same error when I try to use PnCConf with 7i76E
The machine works fine with the numbers I put in the .ini file by hand.

When I try to use the axis tuning window button in PnCConf.
The tuning configure window never comes up and I get the same error as Rogla

Can someone give a hint to fix this?

Thanks
Attachments:

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

More
30 Sep 2016 14:02 #81109 by PCW
This has be discussed on the LinuxCNC developers list

PnCConf needs to be taught that the kernel version doesn't matter on Preempt-RT kernels

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

More
30 Sep 2016 17:14 #81114 by atrox1333
Rogla
It appears the developers are aware of this issue.

It may be issue 159
github.com/LinuxCNC/linuxcnc/issues/159

Thanks to the developers

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

More
30 Sep 2016 19:26 #81116 by Rogla
Great!
Many thanks to both of you for leting us know and for diging up the relevant thread.

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

More
01 Oct 2016 03:26 - 01 Oct 2016 03:28 #81124 by cmorley

Using this kernel:
roger@linuxcnc:~/linuxcnc/configs/millton$ uname -a
Linux linuxcnc 3.2.0-4-rt-amd64 #1 SMP PREEMPT RT Debian 3.2.81-1 x86_64 GNU/Linux

I get following error on "Test/Tune Axis" in PnCConf:
"Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/pncconf/pages.py", line 1068, in on_xaxistune_clicked
def on_xaxistune_clicked(self, *args): self.t.tune_axis('x')
File "/usr/lib/pymodules/python2.7/pncconf/tests.py", line 463, in tune_axis
if not self.a.check_for_rt():
File "/usr/bin/pncconf", line 1640, in check_for_rt
elif hal.is_rt and not hal.kernel_version == actual_kernel:
AttributeError: 'module' object has no attribute 'kernel_version'"

Any idea how to resolve this?
Add some kernel_version attribute to the ini file?


As a temporary work around you could edit your file directly:
in /usr/bin/pncconf just after line 1632
    # check for realtime kernel
    def check_for_rt(self):

add the line return True
    # check for realtime kernel
    def check_for_rt(self):
        return True

Chris M
Last edit: 01 Oct 2016 03:28 by cmorley. Reason: forgot True command
The following user(s) said Thank You: Rogla

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

More
01 Oct 2016 10:53 #81128 by Rogla
Thanks for the effort, appreciate it!

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

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