×
Forum Header
Stepconf test axis problem
- johnybg
- Offline
- New Member
-
Less
More
- Posts: 2
- Thank you received: 0
24 Feb 2013 04:15 #30497
by johnybg
Stepconf test axis problem was created by johnybg
Hello
I installed linuxcnc on a xenomai kernel on Precise 12.04 (using instructions on the following website www.anderswallin.net/2012/12/linuxcnc-on-ubuntu-12-04lts/) The installation was succesfull up to the point where i try to use stepconf to test my axis. i get the following error message:
Stepconf encountered an error. The following information may be useful in troubleshooting:
Traceback (most recent call last):
File "./stepconf", line 1738, in on_xaxistest_clicked
def on_xaxistest_clicked(self, *args): self.test_axis('x')
File "./stepconf", line 2107, in test_axis
if not self.check_for_rt(): return
File "./stepconf", line 1282, in check_for_rt
elif hal.is_rt and not hal.kernel_version == actual_kernel:
AttributeError: 'module' object has no attribute 'kernel_version'
halmodule.cc contains the following line
#ifdef RTAPI_KERNEL_VERSION
PyModule_AddStringConstant(m, "kernel_version", RTAPI_KERNEL_VERSION);
My kernel is
root@Mpoha> uname -a
Linux Mpoha 3.2.21-xenomai+ #1 SMP PREEMPT Tue Oct 30 19:01:33 UTC 2012 i686 i686 i386 GNU/Linux
I installed linuxcnc on a xenomai kernel on Precise 12.04 (using instructions on the following website www.anderswallin.net/2012/12/linuxcnc-on-ubuntu-12-04lts/) The installation was succesfull up to the point where i try to use stepconf to test my axis. i get the following error message:
Stepconf encountered an error. The following information may be useful in troubleshooting:
Traceback (most recent call last):
File "./stepconf", line 1738, in on_xaxistest_clicked
def on_xaxistest_clicked(self, *args): self.test_axis('x')
File "./stepconf", line 2107, in test_axis
if not self.check_for_rt(): return
File "./stepconf", line 1282, in check_for_rt
elif hal.is_rt and not hal.kernel_version == actual_kernel:
AttributeError: 'module' object has no attribute 'kernel_version'
halmodule.cc contains the following line
#ifdef RTAPI_KERNEL_VERSION
PyModule_AddStringConstant(m, "kernel_version", RTAPI_KERNEL_VERSION);
My kernel is
root@Mpoha> uname -a
Linux Mpoha 3.2.21-xenomai+ #1 SMP PREEMPT Tue Oct 30 19:01:33 UTC 2012 i686 i686 i386 GNU/Linux
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
Less
More
- Posts: 7873
- Thank you received: 2127
24 Feb 2013 14:40 #30514
by cmorley
Replied by cmorley on topic Stepconf test axis problem
This is becauce Stepconf tests for a realtime kernel to know if live tests can be used.
It used to be that only a realtime kernel could run tests, not true with Xenomia.
It will need to be fixed with some other test.
Chris M
It used to be that only a realtime kernel could run tests, not true with Xenomia.
It will need to be fixed with some other test.
Chris M
Please Log in or Create an account to join the conversation.
- johnybg
- Offline
- New Member
-
Less
More
- Posts: 2
- Thank you received: 0
24 Feb 2013 15:29 #30515
by johnybg
Replied by johnybg on topic Stepconf test axis problem
If i remove the "if define" clause from halmodule.cc (#ifdef RTAPI_KERNEL_VERSION) as to always create the module parameter kernel_version and rebuild will it make a difference or is it a waist of time?
Please Log in or Create an account to join the conversation.
Time to create page: 0.049 seconds