Linux CNC Errors when starting gmoccapy

More
13 Dec 2022 06:29 #259300 by RyanB
Hi, I've been trying to get linux cnc running on a nuc I5 for a bit now and I keep running into issues.
Just to be thorough, the steps I take is to install bookworm onto the nuc, add myself to the sudo usergroup, install linuxcnc, and then sudo apt update. Unfortunatly I am getting an error when I try to start up gmoccapy. The error log is below.

Error report created by /usr/lib/tcltk/linuxcnc/show_errors.tcl:

Print file information:
RUN_IN_PLACE=no
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/usr/lib/linuxcnc/modules
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/lib/tcltk/linuxcnc/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.6
LINUXCNC - 2.9.0~pre0+git20221105.ffb6bda926
Machine configuration directory is '/home/cncrouter/linuxcnc/configs/sim.gmoccapy'
Machine configuration file is 'gmoccapy.ini'
INIFILE=/home/cncrouter/linuxcnc/configs/sim.gmoccapy/gmoccapy.ini
VERSION=1.1

check_config:
  Unexpected multiple values [JOINT_0]HOME: 0.000 10
  Unexpected multiple values [JOINT_1]HOME: 0.000 10
  Unexpected multiple values [JOINT_2]HOME: 0.0 -10

PARAMETER_FILE=sim.var
TPMOD=
HOMEMOD=
TASK=milltask
HALUI=halui
DISPLAY=gmoccapy
COORDINATES=X Y Z
KINEMATICS=trivkins coordinates=xyz
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(REL): ./core_sim.hal
Found file(REL): ./spindle_sim.hal
Found file(REL): ./simulated_home.hal
Starting TASK program: milltask
Starting DISPLAY program: gmoccapy
Shutting down and cleaning up LinuxCNC...
task: 649 cycles, min=0.000005, max=0.003438, avg=0.001015, 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
Traceback (most recent call last):
  File "/usr/bin/gmoccapy", line 43, in <module>
    import gladevcp.makepins   # needed for the dialog"s calculator widget
  File "/usr/lib/python3/dist-packages/gladevcp/__init__.py", line 1, in <module>
    from .hal_pythonplugin import *
  File "/usr/lib/python3/dist-packages/gladevcp/hal_pythonplugin.py", line 30, in <module>
    from .hal_gremlin import HAL_Gremlin
  File "/usr/lib/python3/dist-packages/gladevcp/hal_gremlin.py", line 36, in <module>
    import gremlin
  File "/usr/lib/python3/dist-packages/gremlin.py", line 49, in <module>
    from OpenGL.GLUT import *
  File "/usr/lib/python3/dist-packages/OpenGL/GLUT/__init__.py", line 5, in <module>
    from OpenGL.GLUT.fonts import *
  File "/usr/lib/python3/dist-packages/OpenGL/GLUT/fonts.py", line 20, in <module>
    p = platform.getGLUTFontPointer( name )
  File "/usr/lib/python3/dist-packages/OpenGL/platform/baseplatform.py", line 350, in getGLUTFontPointer
    raise NotImplementedError(
NotImplementedError: Platform does not define a GLUT font retrieval function
35661
35705
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime



Info report created by linuxcnc_info:
The file:    /tmp/linuxcnc_info.txt
can be posted to a forum or a web site like:
     pastebin.com
in order to provide information about the linuxcnc
system and configuration.

                Date: Mon Dec 12 10:36:49 PM MST 2022
            UTC Date: Tue Dec 13 05:36:49 AM UTC 2022
        this program: /usr/bin/linuxcnc_info
              uptime: 22:36:49 up 20 min, 1 user, load average: 4.92, 5.97, 4.88
     lsb_release -sa: Debian Debian GNU/Linux bookworm/sid n/a bookworm
            linuxcnc: /usr/bin/linuxcnc
                 pwd: /home/cncrouter/linuxcnc/configs/sim.gmoccapy
                USER: cncrouter
             LOGNAME: cncrouter
                HOME: /home/cncrouter
              EDITOR:
              VISUAL:
            LANGUAGE:
                TERM: dumb
           COLORTERM:
             DISPLAY: :0
             DESKTOP: gnome
        display size: 1920x1080 pixels (508x286 millimeters)
                PATH: /usr/bin:/home/cncrouter/linuxcnc/configs/sim.gmoccapy/bin:/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games

uname items:
         nodename -n: cncrouter
      kernel-name -s: Linux
      kernel-vers -v: #1 SMP PREEMPT_RT Debian 6.0.10-1 (2022-11-26)
          machine -m: x86_64
        processor -p: unknown
         platform -i: unknown
      oper system -o: GNU/Linux

/proc items:
             cmdline: BOOT_IMAGE=/boot/vmlinuz-6.0.0-5-rt-amd64 root=UUID=987c2582-467d-464f-96c1-64c01cf22b45 ro quiet, isolcpus=7
          model name: 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
               cores: 4
             cpu MHz: 2140.934
             parport:
              serial:

Versions:
/usr/bin/linuxcnc_info: line 154: gcc: command not found
                 gcc:
              python: Python 3.10.9
                 git: not_in_PATH
          git commit: NA
                 tcl: 8.6
                  tk: 8.6
               glade: not_in_PATH

linuxcnc_var all:

     LINUXCNCVERSION: 2.9.0~pre0+git20221105.ffb6bda926
LINUXCNC_AUX_GLADEVCP: /usr/share/linuxcnc/aux_gladevcp
LINUXCNC_AUX_EXAMPLES: /usr/share/linuxcnc/aux_examples
            REALTIME: /usr/lib/linuxcnc/realtime
                 RTS: uspace
          HALLIB_DIR: /usr/share/linuxcnc/hallib
              PYTHON: /usr/bin/python3

dpkg -l '*linuxcnc*':
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name            Version                               Architecture Description
+++-===============-=====================================-============-=====================================================================
un  linuxcnc        <none>                                <none>       (no description available)
un  linuxcnc-doc    <none>                                <none>       (no description available)
ii  linuxcnc-doc-en 2.9.0~pre0+git20221105.ffb6bda926-1.2 all          motion controller for CNC machines and robots (English documentation)
un  linuxcnc-doc-es <none>                                <none>       (no description available)
un  linuxcnc-doc-fr <none>                                <none>       (no description available)
un  linuxcnc-sim    <none>                                <none>       (no description available)
ii  linuxcnc-uspace 2.9.0~pre0+git20221105.ffb6bda926-1.2 amd64        motion controller for CNC machines and robots

My limited understanding is that there is an issue with the python library linuxcnc is trying to reference. Is there a way to fix this or am I looking at another linux reinstall?

 

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

More
13 Dec 2022 08:56 #259304 by rodw
Try using tasksel to install xfce and select it from the logon screen

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

More
13 Dec 2022 20:20 #259353 by RyanB
Could you elaborate on how using XFCE will help?

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

More
13 Dec 2022 20:22 #259354 by HansU
I installed Bookworm only with XFCE. When I try to run Gmoccapy, I get this

 

independent whether I login as default Xsession or Xfce session.
Attachments:

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

More
13 Dec 2022 20:27 #259358 by HansU
He might want to exclude that it is an issue with the Wayland window system.
For Bullseye at least switching to Xfce helped, see here: forum.linuxcnc.org/gmoccapy/47566-gmoccapy-found-an-error
But I suspect that it is something other here.

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

More
13 Dec 2022 20:38 #259361 by rodw
This exists in bullseye but not showing in bookworm
sudo apt-get install freeglut3-dev
The linuxcnc dependencies seem to need updating if that works.

Wayland is a different graphical system to the original xorg. Gnome runs on wayland, xfce runs on xorg
Recently linuxcnc sopped running on wayland but using xfce fixed it.
It must be something to do with this issue.

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

More
13 Dec 2022 20:41 #259362 by rodw
In bookworm, I think  its
sudo apt-get install libghc-glut-dev
The following user(s) said Thank You: tommylight

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

More
13 Dec 2022 21:06 #259367 by HansU
Both didn't fix it for Bookworm unfortunately. My search pointed out that maybe the python package PyOpenGl_accelerate is needed. But this fails to install.

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

More
13 Dec 2022 23:27 #259375 by mwc
I know that when I tried Bookworm, I got as far as working out it was likely something to do with Python and/or OpenGL, but I'm far from a Linux expert.

My solution was to use an older motherboard/processor that didn't need Bookworm, and hope somebody finds a solution before I get my next machine built.

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

More
13 Dec 2022 23:58 #259378 by RyanB
Rodw, I did a fresh install of debian bookworm, selecting xfce and basic utilities, unselecting the desktop environment the installer selects by default. I ran the commands to install linuxcnc and the command you mentioned for libghc. These 2 error windows are popping up, with the second popping up twice when starting gmoccopy:    .
Attachments:

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

Time to create page: 0.129 seconds
Powered by Kunena Forum