- Posts: 8
- Thank you received: 0
NGCGUI causes error and linuxcnc shuts down
- willburrrr2003
- Topic Author
- Offline
- New Member
-
Less
More
13 years 5 months ago #34856
by willburrrr2003
NGCGUI causes error and linuxcnc shuts down was created by willburrrr2003
Good Morning All,
This weekend I upgraded my software from EMC 2.4.6 to Linuxcnc 2.5.0 . Once the upgrade was finished, I put my config files into their directory, and edited for txt changes (EMC-> Linuxcnc).
When I ran my setup, everything would pop up on the screen, then immediately close, and show the error report screen. If I comment out all the NGCGUI info, my setup runs. I have pasted error, and INI file below...Any help would be appreciated. I tried changing the NGCGUI to be the same as in the examples in the sim directory , as the format in the INI was different then it was in the EMC2.4.6...but that made no difference...
The error is as follows:
ngcgui_app_init: Supstituting ngcgui.tcl for /usr/lib/tcltk/linuxcnc/ngcgui.tcl Traceback (most recent call last):
File "/usr/bin/axis", line 3217, in <module>
root_window.tk.call ("package", "require", *pkg)
_tkinter.TclError: expected integer but got "normal"
My INI file is:
# Generated by stepconf at Sun May 29 08:18:16 2011
# If you make changes to this file, they will be
# overwritten when you run stepconf again
[EMC]
MACHINE = lathetest
DEBUG = 0
[RS274NGC]
PARAMETER_FILE = linuxcnc.var
SUBROUTINE_PATH = ../../../nc_files/ngcgui_lib:../../../nc_files/ngcgui_lib/utilitysubs
USER_M_PATH = ../../../nc_files/ngcgui_lib/mfiles
[DISPLAY]
PROGRAM_PREFIX = ../../../nc_files
# Note: TKPKG (one or more) specifies tcl/tk apps to embed in axis tab pages
TKPKG = Ngcgui 1.0
# for startup NGCGUI_PREAMBLE, NGCGUI_SUBFILE, NGCGUI_POSTAMBLE, TTT_PREAMBLE
# items, specifly:
# a) absolute filename (start with /)
# b) relative filename: search directories specified by
# [DISPLAY]PROGRAM_PREFIX and [RS274NGC]SUBROUTINE_PATH
NGCGUI = ngcgui.tcl
NGCGUI_FONT = Courier-10 normal
NGCGUI_PREAMBLE = /home/will/linuxcnc/nc_files/lathe_std.ngc
NGCGUI_SUBFILE=/home/will/linuxcnc/nc_files/face.ngc
NGCGUI_SUBFILE=/home/will/linuxcnc/nc_files/finish.ngc
NGCGUI_SUBFILE=/home/will/linuxcnc/nc_files/odprofile.ngc
NGCGUI_SUBFILE=/home/will/linuxcnc/nc_files/th-od.ngc
NGCGUI_SUBFILE=/home/will/linuxcnc/nc_files/taper-od.ngc
NGCGUI_SUBFILE=/home/will/linuxcnc/nc_files/od.ngc
NGCGUI_SUBFILE=/home/will/linuxcnc/nc_files/id.ngc
NGCGUI_SUBFILE=/home/will/linuxcnc/nc_files/backlash.ngc
NGCGUI_SUBFILE= ""
DISPLAY = axis
EDITOR = gedit
POSITION_OFFSET = RELATIVE
POSITION_FEEDBACK = ACTUAL
MAX_FEED_OVERRIDE = 1.2
INTRO_GRAPHIC = linuxcnc.gif
INTRO_TIME = 5
PROGRAM_PREFIX = /home/will/linuxcnc/nc_files
INCREMENTS = .1in .05in .01in .005in .001in .0005in .0001in
LATHE = 1
[FILTER]
PROGRAM_EXTENSION = .png,.gif,.jpg Greyscale Depth Image
PROGRAM_EXTENSION = .py Python Script
png = image-to-gcode
gif = image-to-gcode
jpg = image-to-gcode
py = python
[TASK]
TASK = milltask
CYCLE_TIME = 0.010
[RS274NGC]
PARAMETER_FILE = linuxcnc.var
SUBROUTINE_PATH = ../../../nc_files/ngcgui_lib:../../../nc_files/ngcgui_lib/utilitysubs
USER_M_PATH = ../../../nc_files/ngcgui_lib/mfiles
[EMCMOT]
EMCMOT = motmod
COMM_TIMEOUT = 1.0
COMM_WAIT = 0.010
BASE_PERIOD = 36258
SERVO_PERIOD = 1000000
[HAL]
HALFILE = lathetest.hal
HALFILE = custom.hal
POSTGUI_HALFILE = custom_postgui.hal
[TRAJ]
AXES = 3
COORDINATES = X Z
LINEAR_UNITS = inch
ANGULAR_UNITS = degree
CYCLE_TIME = 0.010
DEFAULT_VELOCITY = 0.10
MAX_LINEAR_VELOCITY = 1.00
[EMCIO]
EMCIO = io
CYCLE_TIME = 0.100
TOOL_TABLE = tool.tbl
[AXIS_0]
TYPE = LINEAR
HOME = 2.8
MAX_VELOCITY = 0.25
MAX_ACCELERATION = 1.0
STEPGEN_MAXACCEL = 3
SCALE = 10156.0
FERROR = 0.05
MIN_FERROR = 0.01
MIN_LIMIT = 0.0
MAX_LIMIT = 2.85
HOME_OFFSET = 2.8500000
HOME_SEARCH_VEL = 0.050000
HOME_LATCH_VEL = -0.049232
HOME_IGNORE_LIMITS = YES
HOME_SEQUENCE = 0
BACKLASH = .0028
[AXIS_2]
TYPE = LINEAR
HOME = 0.0
MAX_VELOCITY = 0.25
MAX_ACCELERATION = 3.0
STEPGEN_MAXACCEL = 3.75
SCALE = 6400.0
FERROR = 0.05
MIN_FERROR = 0.01
MIN_LIMIT = -10.0
MAX_LIMIT = 1.0
HOME_OFFSET = 1.000000
HOME_SEARCH_VEL = 0.050000
HOME_LATCH_VEL = -0.050000
HOME_IGNORE_LIMITS = YES
HOME_SEQUENCE = 1
BACKLASH=.0386
Regards,
Will Riddle, Seattle, WA.
This weekend I upgraded my software from EMC 2.4.6 to Linuxcnc 2.5.0 . Once the upgrade was finished, I put my config files into their directory, and edited for txt changes (EMC-> Linuxcnc).
When I ran my setup, everything would pop up on the screen, then immediately close, and show the error report screen. If I comment out all the NGCGUI info, my setup runs. I have pasted error, and INI file below...Any help would be appreciated. I tried changing the NGCGUI to be the same as in the examples in the sim directory , as the format in the INI was different then it was in the EMC2.4.6...but that made no difference...
The error is as follows:
ngcgui_app_init: Supstituting ngcgui.tcl for /usr/lib/tcltk/linuxcnc/ngcgui.tcl Traceback (most recent call last):
File "/usr/bin/axis", line 3217, in <module>
root_window.tk.call ("package", "require", *pkg)
_tkinter.TclError: expected integer but got "normal"
My INI file is:
# Generated by stepconf at Sun May 29 08:18:16 2011
# If you make changes to this file, they will be
# overwritten when you run stepconf again
[EMC]
MACHINE = lathetest
DEBUG = 0
[RS274NGC]
PARAMETER_FILE = linuxcnc.var
SUBROUTINE_PATH = ../../../nc_files/ngcgui_lib:../../../nc_files/ngcgui_lib/utilitysubs
USER_M_PATH = ../../../nc_files/ngcgui_lib/mfiles
[DISPLAY]
PROGRAM_PREFIX = ../../../nc_files
# Note: TKPKG (one or more) specifies tcl/tk apps to embed in axis tab pages
TKPKG = Ngcgui 1.0
# for startup NGCGUI_PREAMBLE, NGCGUI_SUBFILE, NGCGUI_POSTAMBLE, TTT_PREAMBLE
# items, specifly:
# a) absolute filename (start with /)
# b) relative filename: search directories specified by
# [DISPLAY]PROGRAM_PREFIX and [RS274NGC]SUBROUTINE_PATH
NGCGUI = ngcgui.tcl
NGCGUI_FONT = Courier-10 normal
NGCGUI_PREAMBLE = /home/will/linuxcnc/nc_files/lathe_std.ngc
NGCGUI_SUBFILE=/home/will/linuxcnc/nc_files/face.ngc
NGCGUI_SUBFILE=/home/will/linuxcnc/nc_files/finish.ngc
NGCGUI_SUBFILE=/home/will/linuxcnc/nc_files/odprofile.ngc
NGCGUI_SUBFILE=/home/will/linuxcnc/nc_files/th-od.ngc
NGCGUI_SUBFILE=/home/will/linuxcnc/nc_files/taper-od.ngc
NGCGUI_SUBFILE=/home/will/linuxcnc/nc_files/od.ngc
NGCGUI_SUBFILE=/home/will/linuxcnc/nc_files/id.ngc
NGCGUI_SUBFILE=/home/will/linuxcnc/nc_files/backlash.ngc
NGCGUI_SUBFILE= ""
DISPLAY = axis
EDITOR = gedit
POSITION_OFFSET = RELATIVE
POSITION_FEEDBACK = ACTUAL
MAX_FEED_OVERRIDE = 1.2
INTRO_GRAPHIC = linuxcnc.gif
INTRO_TIME = 5
PROGRAM_PREFIX = /home/will/linuxcnc/nc_files
INCREMENTS = .1in .05in .01in .005in .001in .0005in .0001in
LATHE = 1
[FILTER]
PROGRAM_EXTENSION = .png,.gif,.jpg Greyscale Depth Image
PROGRAM_EXTENSION = .py Python Script
png = image-to-gcode
gif = image-to-gcode
jpg = image-to-gcode
py = python
[TASK]
TASK = milltask
CYCLE_TIME = 0.010
[RS274NGC]
PARAMETER_FILE = linuxcnc.var
SUBROUTINE_PATH = ../../../nc_files/ngcgui_lib:../../../nc_files/ngcgui_lib/utilitysubs
USER_M_PATH = ../../../nc_files/ngcgui_lib/mfiles
[EMCMOT]
EMCMOT = motmod
COMM_TIMEOUT = 1.0
COMM_WAIT = 0.010
BASE_PERIOD = 36258
SERVO_PERIOD = 1000000
[HAL]
HALFILE = lathetest.hal
HALFILE = custom.hal
POSTGUI_HALFILE = custom_postgui.hal
[TRAJ]
AXES = 3
COORDINATES = X Z
LINEAR_UNITS = inch
ANGULAR_UNITS = degree
CYCLE_TIME = 0.010
DEFAULT_VELOCITY = 0.10
MAX_LINEAR_VELOCITY = 1.00
[EMCIO]
EMCIO = io
CYCLE_TIME = 0.100
TOOL_TABLE = tool.tbl
[AXIS_0]
TYPE = LINEAR
HOME = 2.8
MAX_VELOCITY = 0.25
MAX_ACCELERATION = 1.0
STEPGEN_MAXACCEL = 3
SCALE = 10156.0
FERROR = 0.05
MIN_FERROR = 0.01
MIN_LIMIT = 0.0
MAX_LIMIT = 2.85
HOME_OFFSET = 2.8500000
HOME_SEARCH_VEL = 0.050000
HOME_LATCH_VEL = -0.049232
HOME_IGNORE_LIMITS = YES
HOME_SEQUENCE = 0
BACKLASH = .0028
[AXIS_2]
TYPE = LINEAR
HOME = 0.0
MAX_VELOCITY = 0.25
MAX_ACCELERATION = 3.0
STEPGEN_MAXACCEL = 3.75
SCALE = 6400.0
FERROR = 0.05
MIN_FERROR = 0.01
MIN_LIMIT = -10.0
MAX_LIMIT = 1.0
HOME_OFFSET = 1.000000
HOME_SEARCH_VEL = 0.050000
HOME_LATCH_VEL = -0.050000
HOME_IGNORE_LIMITS = YES
HOME_SEQUENCE = 1
BACKLASH=.0386
Regards,
Will Riddle, Seattle, WA.
Please Log in to join the conversation.
13 years 5 months ago #34865
by BigJohnT
Replied by BigJohnT on topic NGCGUI causes error and linuxcnc shuts down
I have the following commented out in my ini file:
I don't see the last one on the upgrade page ...
JT
Code:
#TKAPP = ngcgui_app.tcl
#TKAPP = ngcgui_ttt.tcl
#TKAPP = calc.tcl
#NGCGUI = ngcgui.tcl
I don't see the last one on the upgrade page ...
JT
Please Log in to join the conversation.
- willburrrr2003
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 8
- Thank you received: 0
13 years 5 months ago #34866
by willburrrr2003
Replied by willburrrr2003 on topic NGCGUI causes error and linuxcnc shuts down
John, are you refering to the #NGCGUI = ngcgui.tcl ? I can try commenting that out tonight when I get home from work.
Regards,
Will
Regards,
Will
Please Log in to join the conversation.
13 years 5 months ago #34869
by BigJohnT
Replied by BigJohnT on topic NGCGUI causes error and linuxcnc shuts down
Yep, for some reason I have that commented out in my CHNC ini file.
JT
JT
Please Log in to join the conversation.
- willburrrr2003
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 8
- Thank you received: 0
13 years 5 months ago #34871
by willburrrr2003
Replied by willburrrr2003 on topic NGCGUI causes error and linuxcnc shuts down
Ok John, I will give that a shot when I get home.
Regards,
Will
Regards,
Will
Please Log in to join the conversation.
13 years 5 months ago #34874
by dgarrett
Replied by dgarrett on topic NGCGUI causes error and linuxcnc shuts down
John is correct I think.
The lines like:
#TKAPP = ngcgui_app.tcl
#TKAPP = ngcgui_ttt.tcl
#NGCGUI = ngcgui.tcl
were needed when installing developmental versions of ngcgui from a tar file for linuxcnc version 2.4.x
ngcgui was included in 2.5 and is specified with:
TKPKG = Ngcgui 1.0
Similarly, the ngcgui truetype tracer helper application gui is specified with:
TKPKG = Ngcguittt 1.0
(ithis line, if used, must follow not precede the spec for Ngcgui 1.0)
Including the line NGCGUI = ngcgui.tcl attempts to load your older version from an old tar file install. You should probably delete any occurrences of ngcgui.tcl and/or ngcgui_ttt.tcl in your configuration directories when using 2.5.x and specify with the lines for TKPKG
The sim configs in configs/sim/ngcgui correctly use the TKPKG method
The lines like:
#TKAPP = ngcgui_app.tcl
#TKAPP = ngcgui_ttt.tcl
#NGCGUI = ngcgui.tcl
were needed when installing developmental versions of ngcgui from a tar file for linuxcnc version 2.4.x
ngcgui was included in 2.5 and is specified with:
TKPKG = Ngcgui 1.0
Similarly, the ngcgui truetype tracer helper application gui is specified with:
TKPKG = Ngcguittt 1.0
(ithis line, if used, must follow not precede the spec for Ngcgui 1.0)
Including the line NGCGUI = ngcgui.tcl attempts to load your older version from an old tar file install. You should probably delete any occurrences of ngcgui.tcl and/or ngcgui_ttt.tcl in your configuration directories when using 2.5.x and specify with the lines for TKPKG
The sim configs in configs/sim/ngcgui correctly use the TKPKG method
Please Log in to join the conversation.
- willburrrr2003
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 8
- Thank you received: 0
13 years 5 months ago #34876
by willburrrr2003
Replied by willburrrr2003 on topic NGCGUI causes error and linuxcnc shuts down
Ok, that makes sense dgarrett... by leaving that line in I am confusing the system trying to use outdated routines...also, I need to delete the files as you specified, they are in my config directory for my lathe.
Regards,
Will
Regards,
Will
Please Log in to join the conversation.
- willburrrr2003
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 8
- Thank you received: 0
13 years 5 months ago #34878
by willburrrr2003
Replied by willburrrr2003 on topic NGCGUI causes error and linuxcnc shuts down
Guys, I really appreciate you taking the time to offer help and advice ! I did read lots for my upgrade, but missed a few things from the looks of it. I will have to read slower next time
. I hope to be able to help others like this someday.
Regards,
Will
Regards,
Will
Please Log in to join the conversation.
Time to create page: 0.245 seconds
