Building Machinekit from source - TypeError: get_interpreter() returned NULL / OpenGL TK issues?

36 views
Skip to first unread message

Simon S

unread,
Aug 8, 2019, 3:37:36 PM8/8/19
to Machinekit
Hi!

I am trying to build my own machinekit from source.
I use the standard debian stretch with my custom build 3.8.13-xenomai-rt kernel
and the xenomai 2.6.3 userspace utils.
I want to replicate the exact same software stack as I run on my jessie box.
(see my other thread for the reason why: https://groups.google.com/forum/#!topic/machinekit/Qp64ft_ueGo)

Machinekit builds fine with xenomai enabled.

However when I try to start it I encounter this error:

>tinyBEE.hal:234: Pin 'bb_gpio.p9.out-17' linked to signal 'spindle-rev'
>tinyBEE.hal:235: Pin 'motion.spindle-forward' linked to signal 'fake-fwd'
>tinyBEE.hal:237: Pin 'motion.spindle-speed-out-abs' linked to signal 'spindle-speed-cmd'
>tinyBEE.hal:237: Pin 'spindle-vfd.speed-command' linked to signal 'spindle-speed-cmd'
>tinyBEE.hal:238: Pin 'motion.spindle-on' linked to signal 'spindle-on'
>tinyBEE.hal:238: Pin 'bb_gpio.p9.out-16' linked to signal 'spindle-on'
>tinyBEE.hal:239: Pin 'motion.spindle-on' linked to signal 'spindle-on'
>tinyBEE.hal:239: Pin 'spindle-vfd.spindle-on' linked to signal 'spindle-on'
>tinyBEE.hal:240: Pin 'motion.spindle-at-speed' linked to signal 'spindle-at-speed'
>tinyBEE.hal:240: Pin 'spindle-vfd.spindle-at-speed' linked to signal 'spindle-at-speed'
><commandline>:0: Realtime threads started
>task pid=25382
>emcTaskInit: using builtin interpreter
>Traceback (most recent call last):
>  File "/home/machinekit/src/machinekit/bin/axis", line 3215, in <module>
>    o = MyOpengl(widgets.preview_frame, width=400, height=300, double=1, depth=1)
>  File "/home/machinekit/src/machinekit/bin/axis", line 373, in __init__
>    Opengl.__init__(self, *args, **kw)
>  File "/home/machinekit/src/machinekit/lib/python/rs274/OpenGLTk.py", line 164, in __init__
>    apply(RawOpengl.__init__, (self, master, cnf), kw)
>  File "/home/machinekit/src/machinekit/lib/python/rs274/OpenGLTk.py", line 112, in __init__
>    Togl.__init__(self, master, cnf, **kw)
>  File "/home/machinekit/src/machinekit/lib/python/rs274/OpenGLTk.py", line 37, in __init__
>    _togl.install(master.tk)
>TypeError: get_interpreter() returned NULL
>Exception AttributeError: "MyOpengl instance has no attribute '_dlists'" in <bound method MyOpengl.__del__ of <__main__.MyOpengl instance at >0xb4baef30>> ignored
>Shutting down and cleaning up Machinekit...
><commandline>:0: Realtime threads stopped
><commandline>:0: Realtime module 'hal_bb_gpio' unloaded

It looks like something GL related goes wrong but I can not figure out what exactly.
Any hints?

Regards,
Simon

Simon S

unread,
Aug 9, 2019, 2:37:32 PM8/9/19
to Machinekit

Hi,

I traced it back to some python togl instantiation.
See my bug ticket here:
For now I have no proper workaround even though my "fix" seems to work...
I do not know where the issue comes from at first place.

Simon
Reply all
Reply to author
Forward
0 new messages