- LinuxCNC
- General LinuxCNC Questions
- Problems with including comp userspace application file to LinuxCNC project
Problems with including comp userspace application file to LinuxCNC project
- smal
- Offline
- Senior Member
Less
More
- Posts: 60
- Thank you received: 4
27 Aug 2023 17:09 #279098
by smal
Replied by smal on topic Problems with including comp userspace application file to LinuxCNC project
$ sudo apt install python3-opengl helped but now I have some other error:
smal@linuxcnc:~/linuxcnc-2.9$ linuxcnc
LINUXCNC - 2.9.0~pre1
Machine configuration directory is '/home/smal/linuxcnc-2.9/configs/sim/axis'
Machine configuration file is 'axis_mm.ini'
Starting LinuxCNC...
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Note: Using POSIX non-realtime
Found file(lib): /home/smal/linuxcnc-2.9/lib/hallib/core_sim.hal
Found file(lib): /home/smal/linuxcnc-2.9/lib/hallib/sim_spindle_encoder.hal
Found file(lib): /home/smal/linuxcnc-2.9/lib/hallib/axis_manualtoolchange.hal
Found file(lib): /home/smal/linuxcnc-2.9/lib/hallib/simulated_home.hal
Found file(REL): ./cooling.hal
link (updating variable file): No such file or directory
No option 'tto_g11' in section: 'DEFAULT'
No option 'show_program' in section: 'DEFAULT'
No option 'show_rapids' in section: 'DEFAULT'
No option 'program_alpha' in section: 'DEFAULT'
No option 'show_live_plot' in section: 'DEFAULT'
No option 'show_tool' in section: 'DEFAULT'
No option 'show_extents' in section: 'DEFAULT'
No option 'show_offsets' in section: 'DEFAULT'
No option 'grid_size' in section: 'DEFAULT'
No option 'show_machine_limits' in section: 'DEFAULT'
No option 'show_machine_speed' in section: 'DEFAULT'
No option 'show_distance_to_go' in section: 'DEFAULT'
No option 'dro_large_font' in section: 'DEFAULT'
No option 'block_delete' in section: 'DEFAULT'
No option 'optional_stop' in section: 'DEFAULT'
note: MAXV max: 53.340 units/sec 3200.400 units/min
note: LJOG max: 53.340 units/sec 3200.400 units/min
note: LJOG default: 30.480 units/sec 1828.800 units/min
note: jog_order='XYZ'
note: jog_invert=set()
Traceback (most recent call last):
File "/home/smal/linuxcnc-2.9/bin/axis", line 3967, in <module>
get_coordinate_font(vars.dro_large_font.get())
File "/home/smal/linuxcnc-2.9/bin/axis", line 3845, in get_coordinate_font
glnav.use_pango_font(coordinate_font, 0, 128)
File "/home/smal/linuxcnc-2.9/lib/python/glnav.py", line 21, in use_pango_font
pango_context = PangoCairo.create_context(context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'could not find foreign type Context'
Shutting down and cleaning up LinuxCNC...
task: 1499 cycles, min=0.000013, max=0.001754, avg=0.001057, 0 latency excursions (> 10x expected cycle time of 0.001000s)
Note: Using POSIX non-realtime
LinuxCNC terminated with an error. You can find more information in the log:
/home/smal/linuxcnc_debug.txt
and
/home/smal/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal
What to do?
smal@linuxcnc:~/linuxcnc-2.9$ linuxcnc
LINUXCNC - 2.9.0~pre1
Machine configuration directory is '/home/smal/linuxcnc-2.9/configs/sim/axis'
Machine configuration file is 'axis_mm.ini'
Starting LinuxCNC...
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Note: Using POSIX non-realtime
Found file(lib): /home/smal/linuxcnc-2.9/lib/hallib/core_sim.hal
Found file(lib): /home/smal/linuxcnc-2.9/lib/hallib/sim_spindle_encoder.hal
Found file(lib): /home/smal/linuxcnc-2.9/lib/hallib/axis_manualtoolchange.hal
Found file(lib): /home/smal/linuxcnc-2.9/lib/hallib/simulated_home.hal
Found file(REL): ./cooling.hal
link (updating variable file): No such file or directory
No option 'tto_g11' in section: 'DEFAULT'
No option 'show_program' in section: 'DEFAULT'
No option 'show_rapids' in section: 'DEFAULT'
No option 'program_alpha' in section: 'DEFAULT'
No option 'show_live_plot' in section: 'DEFAULT'
No option 'show_tool' in section: 'DEFAULT'
No option 'show_extents' in section: 'DEFAULT'
No option 'show_offsets' in section: 'DEFAULT'
No option 'grid_size' in section: 'DEFAULT'
No option 'show_machine_limits' in section: 'DEFAULT'
No option 'show_machine_speed' in section: 'DEFAULT'
No option 'show_distance_to_go' in section: 'DEFAULT'
No option 'dro_large_font' in section: 'DEFAULT'
No option 'block_delete' in section: 'DEFAULT'
No option 'optional_stop' in section: 'DEFAULT'
note: MAXV max: 53.340 units/sec 3200.400 units/min
note: LJOG max: 53.340 units/sec 3200.400 units/min
note: LJOG default: 30.480 units/sec 1828.800 units/min
note: jog_order='XYZ'
note: jog_invert=set()
Traceback (most recent call last):
File "/home/smal/linuxcnc-2.9/bin/axis", line 3967, in <module>
get_coordinate_font(vars.dro_large_font.get())
File "/home/smal/linuxcnc-2.9/bin/axis", line 3845, in get_coordinate_font
glnav.use_pango_font(coordinate_font, 0, 128)
File "/home/smal/linuxcnc-2.9/lib/python/glnav.py", line 21, in use_pango_font
pango_context = PangoCairo.create_context(context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'could not find foreign type Context'
Shutting down and cleaning up LinuxCNC...
task: 1499 cycles, min=0.000013, max=0.001754, avg=0.001057, 0 latency excursions (> 10x expected cycle time of 0.001000s)
Note: Using POSIX non-realtime
LinuxCNC terminated with an error. You can find more information in the log:
/home/smal/linuxcnc_debug.txt
and
/home/smal/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal
What to do?
Please Log in or Create an account to join the conversation.
- Aciera
- Offline
- Administrator
Less
More
- Posts: 4001
- Thank you received: 1728
27 Aug 2023 18:17 #279101
by Aciera
Replied by Aciera on topic Problems with including comp userspace application file to LinuxCNC project
Try:
$ sudo apt install python3-gi-cairo
$ sudo apt install python3-gi-cairo
The following user(s) said Thank You: smal
Please Log in or Create an account to join the conversation.
- smal
- Offline
- Senior Member
Less
More
- Posts: 60
- Thank you received: 4
27 Aug 2023 18:45 #279104
by smal
Replied by smal on topic Problems with including comp userspace application file to LinuxCNC project
This works now. I was able to start LinuxCNC. Thank you very much.
Please Log in or Create an account to join the conversation.
- smal
- Offline
- Senior Member
Less
More
- Posts: 60
- Thank you received: 4
27 Aug 2023 18:50 #279105
by smal
Replied by smal on topic Problems with including comp userspace application file to LinuxCNC project
Ok, I would like to make a shortcut on the desktop but this option can not be activated in Linuc CNC Configurator Selector.
Can this somehow be corrected?
Can this somehow be corrected?
Please Log in or Create an account to join the conversation.
- smal
- Offline
- Senior Member
Less
More
- Posts: 60
- Thank you received: 4
27 Aug 2023 18:56 #279107
by smal
Replied by smal on topic Problems with including comp userspace application file to LinuxCNC project
This is also resolved now. I have a shortcut on the desktop without LinuxCNC emblem. How to add that?
Please Log in or Create an account to join the conversation.
- smal
- Offline
- Senior Member
Less
More
- Posts: 60
- Thank you received: 4
27 Aug 2023 20:12 #279111
by smal
Replied by smal on topic Problems with including comp userspace application file to LinuxCNC project
Ok. This problem is also solved.
Please Log in or Create an account to join the conversation.
- rodw
- Away
- Platinum Member
Less
More
- Posts: 10780
- Thank you received: 3551
28 Aug 2023 00:11 #279122
by rodw
Replied by rodw on topic Problems with including comp userspace application file to LinuxCNC project
Great to see you solved it. It is annoying that some dependencies are not listed when you ask for them. Sometimes you will see errors when building that alert you to a missing dependency
Please Log in or Create an account to join the conversation.
- smal
- Offline
- Senior Member
Less
More
- Posts: 60
- Thank you received: 4
28 Aug 2023 20:22 #279205
by smal
Replied by smal on topic Problems with including comp userspace application file to LinuxCNC project
Hello
With a new motherboard+processor+graphic card and old harddisk problems came again to surface:
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
Starting HAL User Interface program: halui
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Found file(lib): /home/smal/linuxcnc-2.9/lib/hallib/core_sim.hal
Found file(lib): /home/smal/linuxcnc-2.9/lib/hallib/sim_spindle_encoder.hal
Found file(lib): /home/smal/linuxcnc-2.9/lib/hallib/axis_manualtoolchange.hal
Found file(lib): /home/smal/linuxcnc-2.9/lib/hallib/simulated_home.hal
Found file(lib): /home/smal/linuxcnc-2.9/lib/hallib/check_xyz_constraints.hal
Found file(REL): ./cooling.hal
Starting TASK program: milltask
Starting DISPLAY program: axis
Shutting down and cleaning up LinuxCNC...
task: 1162 cycles, min=0.000009, max=0.001103, avg=0.001046, 0 latency excursions (> 10x expected cycle time of 0.001000s)
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Debug file information:
Note: Using POSIX realtime
note: MAXV max: 5.000 units/sec 300.000 units/min
note: LJOG max: 5.000 units/sec 300.000 units/min
note: LJOG default: 0.250 units/sec 15.000 units/min
note: jog_order='XYZ'
note: jog_invert=set()
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/OpenGL/latebind.py", line 43, in __call__
return self._finalCall( *args, **named )
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not callable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/smal/linuxcnc-2.9/bin/axis", line 3967, in <module>
get_coordinate_font(vars.dro_large_font.get())
File "/home/smal/linuxcnc-2.9/bin/axis", line 3845, in get_coordinate_font
glnav.use_pango_font(coordinate_font, 0, 128)
File "/home/smal/linuxcnc-2.9/lib/python/glnav.py", line 65, in use_pango_font
glBitmap(1, 0, 0, 0, 0, h-d, bytearray([0]*4))
File "/usr/lib/python3/dist-packages/OpenGL/latebind.py", line 47, in __call__
return self._finalCall( *args, **named )
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/OpenGL/wrapper.py", line 700, in wrapperCall
raise err
File "/usr/lib/python3/dist-packages/OpenGL/wrapper.py", line 693, in wrapperCall
result = wrappedOperation( *cArguments )
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/OpenGL/platform/baseplatform.py", line 415, in __call__
return self( *args, **named )
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/OpenGL/error.py", line 230, in glCheckError
raise self._errorClass(
OpenGL.error.GLError: GLError(
err = 1285,
description = b'out of memory',
baseOperation = glBitmap,
pyArgs = (
1,
0,
0,
0,
0,
16.0,
<OpenGL.arrays._buffers.Py_buffer object at 0x7fe90be43d10>,
),
cArgs = (
1,
0,
0,
0,
0,
16.0,
<OpenGL.arrays._buffers.Py_buffer object at 0x7fe90be43d10>,
),
cArguments = (
1,
0,
0,
0,
0,
16.0,
<OpenGL.arrays._buffers.Py_buffer object at 0x7fe90be43d10>,
)
)
3104
3161
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime
Any idea what to do?
Or is a new OS install needed with everything else when motherboard + processor changed?
With a new motherboard+processor+graphic card and old harddisk problems came again to surface:
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
Starting HAL User Interface program: halui
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Found file(lib): /home/smal/linuxcnc-2.9/lib/hallib/core_sim.hal
Found file(lib): /home/smal/linuxcnc-2.9/lib/hallib/sim_spindle_encoder.hal
Found file(lib): /home/smal/linuxcnc-2.9/lib/hallib/axis_manualtoolchange.hal
Found file(lib): /home/smal/linuxcnc-2.9/lib/hallib/simulated_home.hal
Found file(lib): /home/smal/linuxcnc-2.9/lib/hallib/check_xyz_constraints.hal
Found file(REL): ./cooling.hal
Starting TASK program: milltask
Starting DISPLAY program: axis
Shutting down and cleaning up LinuxCNC...
task: 1162 cycles, min=0.000009, max=0.001103, avg=0.001046, 0 latency excursions (> 10x expected cycle time of 0.001000s)
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Debug file information:
Note: Using POSIX realtime
note: MAXV max: 5.000 units/sec 300.000 units/min
note: LJOG max: 5.000 units/sec 300.000 units/min
note: LJOG default: 0.250 units/sec 15.000 units/min
note: jog_order='XYZ'
note: jog_invert=set()
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/OpenGL/latebind.py", line 43, in __call__
return self._finalCall( *args, **named )
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not callable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/smal/linuxcnc-2.9/bin/axis", line 3967, in <module>
get_coordinate_font(vars.dro_large_font.get())
File "/home/smal/linuxcnc-2.9/bin/axis", line 3845, in get_coordinate_font
glnav.use_pango_font(coordinate_font, 0, 128)
File "/home/smal/linuxcnc-2.9/lib/python/glnav.py", line 65, in use_pango_font
glBitmap(1, 0, 0, 0, 0, h-d, bytearray([0]*4))
File "/usr/lib/python3/dist-packages/OpenGL/latebind.py", line 47, in __call__
return self._finalCall( *args, **named )
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/OpenGL/wrapper.py", line 700, in wrapperCall
raise err
File "/usr/lib/python3/dist-packages/OpenGL/wrapper.py", line 693, in wrapperCall
result = wrappedOperation( *cArguments )
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/OpenGL/platform/baseplatform.py", line 415, in __call__
return self( *args, **named )
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/OpenGL/error.py", line 230, in glCheckError
raise self._errorClass(
OpenGL.error.GLError: GLError(
err = 1285,
description = b'out of memory',
baseOperation = glBitmap,
pyArgs = (
1,
0,
0,
0,
0,
16.0,
<OpenGL.arrays._buffers.Py_buffer object at 0x7fe90be43d10>,
),
cArgs = (
1,
0,
0,
0,
0,
16.0,
<OpenGL.arrays._buffers.Py_buffer object at 0x7fe90be43d10>,
),
cArguments = (
1,
0,
0,
0,
0,
16.0,
<OpenGL.arrays._buffers.Py_buffer object at 0x7fe90be43d10>,
)
)
3104
3161
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime
Any idea what to do?
Or is a new OS install needed with everything else when motherboard + processor changed?
Please Log in or Create an account to join the conversation.
- Aciera
- Offline
- Administrator
Less
More
- Posts: 4001
- Thank you received: 1728
29 Aug 2023 06:39 #279261
by Aciera
Replied by Aciera on topic Problems with including comp userspace application file to LinuxCNC project
Maybe pull the graphics card, and try again using the on board graphics.
Please Log in or Create an account to join the conversation.
- smal
- Offline
- Senior Member
Less
More
- Posts: 60
- Thank you received: 4
29 Aug 2023 19:47 #279309
by smal
Replied by smal on topic Problems with including comp userspace application file to LinuxCNC project
I do not have such possibility. because the processor does not support on board graphics.
Please Log in or Create an account to join the conversation.
- LinuxCNC
- General LinuxCNC Questions
- Problems with including comp userspace application file to LinuxCNC project
Time to create page: 0.070 seconds