LCNC 2.9.3 and Debian Bookworm Error : No module named 'OpenGL

More
2 years 1 month ago #310463 by dashy81
I am trying to build LCNC version 2.9.3 from source on Debian Bookworm.
Facing below issue seems related to OPENGL. Checked a few threads but the issue as per them shall have been fixed by now.
Just wondering if I am missing something obvious.

- Configured for ./configure --with-realtime=uspace

- All build deps are satisfied.

- No issues during build .

Here's the logs on running LCNC from cmdline.

rkc@debian:~/lcnc/linuxcnc-source-dir/bin$ linuxcnc
LINUXCNC - 2.9.3
Machine configuration directory is '/home/rkc/lcnc/linuxcnc-source-dir/configs/sim/axis/ngcgui'
Machine configuration file is 'ngcgui.ini'
Starting LinuxCNC...
libnml/buffer/shmem.cc 320: Shared memory buffers toolCmd and toolCmd may conflict. (key=1004(0x3EC))
libnml/buffer/shmem.cc 320: Shared memory buffers toolSts and toolSts may conflict. (key=1005(0x3ED))
libnml/buffer/shmem.cc 320: Shared memory buffers emcError and emcError may conflict. (key=1003(0x3EB))
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Note: Using POSIX non-realtime
Found file(LIB): /home/rkc/lcnc/linuxcnc-source-dir/lib/hallib/basic_sim.tcl
setup_kins: cmd=loadrt trivkins
Traceback (most recent call last):
  File "/home/rkc/lcnc/linuxcnc-source-dir/bin/axis", line 24, in <module>
    from OpenGL.GL import *
ModuleNotFoundError: No module named 'OpenGL'
Shutting down and cleaning up LinuxCNC...
link (updating variable file): No such file or directory
task: 140 cycles, min=0.000008, max=0.001132, avg=0.000969, 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/rkc/linuxcnc_debug.txt
and
    /home/rkc/linuxcnc_print.txt

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

More
2 years 1 month ago #310464 by dashy81
My machine is a Lenovo thinkcentre with M93P.

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

More
2 years 1 month ago #310465 by tommylight
Did you try the official ISO from here:
www.linuxcnc.org/iso/linuxcnc_2.9.3-amd64.hybrid.iso
-
You also do not have the real time kernel installed, so even if you get OpenGL to work, you can not use it to run a machine.
Usually OpenGL issues are related to graphic cards, so if you have one as an add on, remove it and try again.

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

More
2 years 1 month ago #310466 by Aciera
try:
Code:
$ sudo apt install python3-opengl

you may also need:
Code:
$ sudo apt install python3-gi-cairo
The following user(s) said Thank You: tommylight, dashy81

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

More
2 years 1 month ago #310468 by dashy81
Awesome !!!!python3-opengl install made it to work !!

Thanks... Do I need python3-gi-cairo as well ?

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

More
2 years 1 month ago #310469 by Aciera
No, if everything works now then you do not need it.
The following user(s) said Thank You: dashy81

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

Time to create page: 0.252 seconds
Powered by Kunena Forum