Gmoccapy Python issue gtkgl ?
30 Nov 2013 23:04 #41267
by tkamsker
Gmoccapy Python issue gtkgl ? was created by tkamsker
Hi,
i do have an strange issue i do have 2 systems which should be kind of same software level.
i fight spindle orientation and 12 place ATC so i start with development version 2.6pre fresh from git
it seems that when i try gmoccapy as gui that something at gtk , python (which is where i have to less experience )
Probably someone had same issoe and can forward me an link what to install or configure whatever any help aprechiated
my result looks like
as well as in the output of the shell command 'dmesg' and in the terminal
root@cncatxboard:/usr/src/build/linuxcnc-dev# linuxcnc
LINUXCNC - 2.6.0~pre
Machine configuration directory is '/usr/src/build/linuxcnc-dev/configs/sim/gmoccapy'
Machine configuration file is 'gmoccapy_4_axis.ini'
Starting LinuxCNC...
io started
halcmd loadusr io started
task pid=3734
emcTaskInit: using builtin interpreter
Traceback (most recent call last):
File "/usr/src/build/linuxcnc-dev/bin/hal_manualtoolchange", line 57, in <module>
nf.start(app); nf.makecommand(app, "_", _)
File "/usr/src/build/linuxcnc-dev/lib/python/nf.py", line 119, in start
source_lib_tcl(r, "support.tcl")
File "/usr/src/build/linuxcnc-dev/lib/python/nf.py", line 111, in source_lib_tcl
r.tk.call("source", os.path.join(tcl_libdir, f))
_tkinter.TclError: can't find package Img
Traceback (most recent call last):
File "/usr/src/build/linuxcnc-dev/bin/gscreen", line 37, in <module>
import gladevcp.makepins
File "/usr/src/build/linuxcnc-dev/lib/python/gladevcp/__init__.py", line 1, in <module>
from hal_pythonplugin import *
File "/usr/src/build/linuxcnc-dev/lib/python/gladevcp/hal_pythonplugin.py", line 24, in <module>
from hal_gremlin import HAL_Gremlin
File "/usr/src/build/linuxcnc-dev/lib/python/gladevcp/hal_gremlin.py", line 21, in <module>
import gremlin
File "/usr/src/build/linuxcnc-dev/lib/python/gremlin.py", line 22, in <module>
import gtk.gtkgl.widget
ImportError: No module named gtkgl.widget
Shutting down and cleaning up LinuxCNC...
Cleanup done
LinuxCNC terminated with an error. You can find more information in the log:
/root/linuxcnc_debug.txt
and
/root/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal
i do have an strange issue i do have 2 systems which should be kind of same software level.
i fight spindle orientation and 12 place ATC so i start with development version 2.6pre fresh from git
it seems that when i try gmoccapy as gui that something at gtk , python (which is where i have to less experience )
Probably someone had same issoe and can forward me an link what to install or configure whatever any help aprechiated
my result looks like
as well as in the output of the shell command 'dmesg' and in the terminal
root@cncatxboard:/usr/src/build/linuxcnc-dev# linuxcnc
LINUXCNC - 2.6.0~pre
Machine configuration directory is '/usr/src/build/linuxcnc-dev/configs/sim/gmoccapy'
Machine configuration file is 'gmoccapy_4_axis.ini'
Starting LinuxCNC...
io started
halcmd loadusr io started
task pid=3734
emcTaskInit: using builtin interpreter
Traceback (most recent call last):
File "/usr/src/build/linuxcnc-dev/bin/hal_manualtoolchange", line 57, in <module>
nf.start(app); nf.makecommand(app, "_", _)
File "/usr/src/build/linuxcnc-dev/lib/python/nf.py", line 119, in start
source_lib_tcl(r, "support.tcl")
File "/usr/src/build/linuxcnc-dev/lib/python/nf.py", line 111, in source_lib_tcl
r.tk.call("source", os.path.join(tcl_libdir, f))
_tkinter.TclError: can't find package Img
Traceback (most recent call last):
File "/usr/src/build/linuxcnc-dev/bin/gscreen", line 37, in <module>
import gladevcp.makepins
File "/usr/src/build/linuxcnc-dev/lib/python/gladevcp/__init__.py", line 1, in <module>
from hal_pythonplugin import *
File "/usr/src/build/linuxcnc-dev/lib/python/gladevcp/hal_pythonplugin.py", line 24, in <module>
from hal_gremlin import HAL_Gremlin
File "/usr/src/build/linuxcnc-dev/lib/python/gladevcp/hal_gremlin.py", line 21, in <module>
import gremlin
File "/usr/src/build/linuxcnc-dev/lib/python/gremlin.py", line 22, in <module>
import gtk.gtkgl.widget
ImportError: No module named gtkgl.widget
Shutting down and cleaning up LinuxCNC...
Cleanup done
LinuxCNC terminated with an error. You can find more information in the log:
/root/linuxcnc_debug.txt
and
/root/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal
Please Log in or Create an account to join the conversation.
01 Dec 2013 00:37 - 01 Dec 2013 00:40 #41268
by cncbasher
Replied by cncbasher on topic Gmoccapy Python issue gtkgl ?
run the attached file , and it will install any missing .
but i'd check the following
python-glade2
python-gnome2
python-gtkglext1
python-gtksourceview2
but i'd check the following
python-glade2
python-gnome2
python-gtkglext1
python-gtksourceview2
Last edit: 01 Dec 2013 00:40 by cncbasher.
The following user(s) said Thank You: tkamsker
Please Log in or Create an account to join the conversation.
02 Dec 2013 00:44 #41277
by tkamsker
Replied by tkamsker on topic Gmoccapy Python issue gtkgl ?
Hello
Thank you so much
the scrip run long
did install everything
now i only miss an img something
i did reinstall make clean and did an rip config
result is now
LINUXCNC - 2.6.0~pre
Machine configuration directory is '/root/linuxcnc/configs/K10A-3BEAST-NOZENDV2'
Machine configuration file is 'K10A-3BEAST-NOZENDV2.ini'
Starting LinuxCNC...
io started
halcmd loadusr io started
task pid=22578
emcTaskInit: using builtin interpreter
Traceback (most recent call last):
File "/usr/src/build/linuxcnc-dev/bin/hal_manualtoolchange", line 57, in <module>
nf.start(app); nf.makecommand(app, "_", _)
File "/usr/src/build/linuxcnc-dev/lib/python/nf.py", line 119, in start
source_lib_tcl(r, "support.tcl")
File "/usr/src/build/linuxcnc-dev/lib/python/nf.py", line 111, in source_lib_tcl
r.tk.call("source", os.path.join(tcl_libdir, f))
_tkinter.TclError: can't find package Img
Traceback (most recent call last):
File "/usr/src/build/linuxcnc-dev/bin/axis", line 123, in <module>
nf.start(root_window)
File "/usr/src/build/linuxcnc-dev/lib/python/nf.py", line 119, in start
source_lib_tcl(r, "support.tcl")
File "/usr/src/build/linuxcnc-dev/lib/python/nf.py", line 111, in source_lib_tcl
r.tk.call("source", os.path.join(tcl_libdir, f))
_tkinter.TclError: can't find package Img
Shutting down and cleaning up LinuxCNC...
Cleanup done
LinuxCNC terminated with an error. You can find more information in the log:
/root/linuxcnc_debug.txt
and
/root/linuxcnc_print.txt
and i also get it if i try axis display
so if there is anyone who has same problem
any hint welcome
thomas
Thank you so much
the scrip run long
did install everything
now i only miss an img something
i did reinstall make clean and did an rip config
result is now
LINUXCNC - 2.6.0~pre
Machine configuration directory is '/root/linuxcnc/configs/K10A-3BEAST-NOZENDV2'
Machine configuration file is 'K10A-3BEAST-NOZENDV2.ini'
Starting LinuxCNC...
io started
halcmd loadusr io started
task pid=22578
emcTaskInit: using builtin interpreter
Traceback (most recent call last):
File "/usr/src/build/linuxcnc-dev/bin/hal_manualtoolchange", line 57, in <module>
nf.start(app); nf.makecommand(app, "_", _)
File "/usr/src/build/linuxcnc-dev/lib/python/nf.py", line 119, in start
source_lib_tcl(r, "support.tcl")
File "/usr/src/build/linuxcnc-dev/lib/python/nf.py", line 111, in source_lib_tcl
r.tk.call("source", os.path.join(tcl_libdir, f))
_tkinter.TclError: can't find package Img
Traceback (most recent call last):
File "/usr/src/build/linuxcnc-dev/bin/axis", line 123, in <module>
nf.start(root_window)
File "/usr/src/build/linuxcnc-dev/lib/python/nf.py", line 119, in start
source_lib_tcl(r, "support.tcl")
File "/usr/src/build/linuxcnc-dev/lib/python/nf.py", line 111, in source_lib_tcl
r.tk.call("source", os.path.join(tcl_libdir, f))
_tkinter.TclError: can't find package Img
Shutting down and cleaning up LinuxCNC...
Cleanup done
LinuxCNC terminated with an error. You can find more information in the log:
/root/linuxcnc_debug.txt
and
/root/linuxcnc_print.txt
and i also get it if i try axis display
so if there is anyone who has same problem
any hint welcome
thomas
Please Log in or Create an account to join the conversation.
02 Dec 2013 01:22 #41281
by dgarrett
Replied by dgarrett on topic Gmoccapy Python issue gtkgl ?
probably need package libtk-img
$ sudo apt-get install libtk-img
$ sudo apt-get install libtk-img
The following user(s) said Thank You: tkamsker
Please Log in or Create an account to join the conversation.
02 Dec 2013 01:28 #41282
by tkamsker
Replied by tkamsker on topic Gmoccapy Python issue gtkgl ?
You saved my day (night )
but how did you find that sudo apt-get install libtk-img leads to Img ?
i only used Python so far for verry primitive non gui tasks at work and i tried so far to stay away but it seems that is no longer possible -
thank you so much
thomas
but how did you find that sudo apt-get install libtk-img leads to Img ?
i only used Python so far for verry primitive non gui tasks at work and i tried so far to stay away but it seems that is no longer possible -
thank you so much
thomas
Please Log in or Create an account to join the conversation.
02 Dec 2013 02:27 #41284
by dgarrett
Replied by dgarrett on topic Gmoccapy Python issue gtkgl ?
> but how did you find that sudo apt-get install libtk-img leads to Img ?
Only because i've seen it before.
from this hint:
> _tkinter.TclError: can't find package Img
try:
$ cd your_source_tree
$ cd debian
$ grep -i img control.in
tcl@TCLTK_VERSION@, tk@TCLTK_VERSION@, bwidget (>= 1.7), libtk-img (>=1.13),
Only because i've seen it before.
from this hint:
> _tkinter.TclError: can't find package Img
try:
$ cd your_source_tree
$ cd debian
$ grep -i img control.in
tcl@TCLTK_VERSION@, tk@TCLTK_VERSION@, bwidget (>= 1.7), libtk-img (>=1.13),
The following user(s) said Thank You: fire_lizard
Please Log in or Create an account to join the conversation.
- fire_lizard
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
24 Apr 2014 07:57 #46274
by fire_lizard
Replied by fire_lizard on topic Gmoccapy Python issue gtkgl ?
Thank you so much dgarett!
Please Log in or Create an account to join the conversation.
Time to create page: 0.074 seconds