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

More
19 Sep 2024 15:55 #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
19 Sep 2024 15:58 #310464 by dashy81
My machine is a Lenovo thinkcentre with M93P.

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
19 Sep 2024 16:59 #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
19 Sep 2024 17:09 #310466 by Aciera
try:
$ sudo apt install python3-opengl

you may also need:
$ 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
19 Sep 2024 17:39 #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
19 Sep 2024 17:42 #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.

More
19 Sep 2024 17:50 - 19 Sep 2024 17:52 #310470 by dashy81
Thanks Tommy, I have one working m/c did some 2 yrs back similia PC with mesa 7i96S. That was done via the direct installation of 2.8.x version. But somehow later to get it working with do'nt remember which gui, I had to do lot of stuff which I do not even remember now :-)
But basically had to switch to classic ladder from some other hal and build linuxcnc 2.9 on debian 10 as the said gui worked better in 2.9.

So this time I really want to spend more time on building and customizing lcnc and create a distribution with only the needed components.
Do'nt want the machine to look like a linux desktop but a custom professional look. Only gui starts on powerup like professional machine. No additional menu, cmd prompt or any other applications.

Yes you are right, But I am doing a Building for Run In Place build.

I still am unclear how can I generate a prempt rt image like the one you pointed and put it as a standalone install so that I can take that create a bootable usb and install it on any new computer. 
Last edit: 19 Sep 2024 17:52 by dashy81.
The following user(s) said Thank You: tommylight

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
19 Sep 2024 18:20 #310472 by tommylight
Ok, still, if you want to run machines with the image you created, you will need the RT-Preempt kernel.
Or if you want to run machines from parallel port use the RTAI kernel.
In any case, after installing said kernel, do boot into it and remove the generic kernel.
The following user(s) said Thank You: dashy81

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

More
19 Sep 2024 18:59 #310473 by dashy81
I guess somewhere I read about installing the RT kernel first to be installed and then switching to that kernel. Thats here I think:7.1. Installing on Debian Bookworm (with Preempt-RT kernel)I think To create a image similiar to the one you pointed This process shall be followed.  That shall ensure that I can have an iso image which I can take to another PC and install directly on my actual machine running LCNC.

But at the moment I am following 2nd build type to create a debian package for me to install on the system I am running:
6.4.2 Building Debian Packages

After configuring and starting build, I get below error.

Build cmd: dpkg-buildpackage --pre-clean -j4 -b -uc

D: dh_python3 fs:400: package linuxcnc-uspace details = {'requires.txt': set(), 'egg-info': set(), 'dist-info': set(), 'nsp.txt': set(), 'shebangs': {/usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3}, 'public_vers': {Version('3')}, 'private_dirs': {}, 'compile': True, 'ext_vers': {Version('3.11')}, 'ext_no_version': set()}
D: dh_python3 depends:117: generating dependencies for package linuxcnc-uspace
D: dh_python3 depends:281: D={'python3:any', 'python3 (>= 3.11~)', 'python3 (<< 3.12)'}; R=[]; S=[]; E=[], B=[]; RT=[]
make[1]: Leaving directory '/home/rkc/lcnc/linuxcnc-source-dir'
   dh_missing -O-D/home/rkc/lcnc/linuxcnc-source-dir/src
dh_missing: warning: usr/share/man/man1/millturngui.1 exists in debian/tmp but is not installed to anywhere
    The following debhelper tools have reported what they installed (with files per package)
     * dh_install: linuxcnc-uspace (259), linuxcnc-uspace-dev (13)
     * dh_installdocs: linuxcnc-uspace (2), linuxcnc-uspace-dev (0)
     * dh_installman: linuxcnc-uspace (276), linuxcnc-uspace-dev (116)
    If the missing files are installed by another tool, please file a bug against it.
    When filing the report, if the tool is not part of debhelper itself, please reference the
    "Logging helpers and dh_missing" section from the "PROGRAMMING" guide for debhelper (10.6.3+).
      (in the debhelper package: /usr/share/doc/debhelper/PROGRAMMING.gz)
    Be sure to test with dpkg-buildpackage -A/-B as the results may vary when only a subset is built
    If the omission is intentional or no other helper can take care of this consider adding the
    paths to debian/not-installed.
dh_missing: error: missing files, aborting
make: *** [debian/rules:43: binary] Error 255

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

Time to create page: 0.078 seconds
Powered by Kunena Forum