kernel_version error in PnCConf with 7I76E

More
10 years 1 month ago #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 to join the conversation.

More
10 years 1 month ago #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

Please Log in to join the conversation.

More
10 years 1 month ago #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 to join the conversation.

More
10 years 1 month ago #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 to join the conversation.

More
10 years 1 month ago #81116 by Rogla
Great!
Many thanks to both of you for leting us know and for diging up the relevant thread.

Please Log in to join the conversation.

More
10 years 4 weeks ago #81124 by cmorley

Rogla wrote: 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
Code:
# check for realtime kernel def check_for_rt(self):

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

Chris M

Please Log in to join the conversation.

More
10 years 4 weeks ago #81128 by Rogla
Thanks for the effort, appreciate it!

Please Log in to join the conversation.

Time to create page: 0.088 seconds
Powered by Kunena Forum