Need Help With Py Error (solved)

More
12 Jun 2014 23:08 - 12 Jun 2014 23:23 #47947 by mmt
I have been working on the digital zoom for camview. with the help of a person named Jon on here, I have everything working in standalone camview but when I integrate it into Axis it work fine without the zoom, but when I add the zoom I get a Python error.

Here is the error message and then my INI file.

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/realtime-2.6.32-122-rtai/modules/linuxcnc
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/share/linuxcnc/tcl/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.5
LINUXCNC - 2.5.0
Machine configuration directory is '/home/walson/linuxcnc/configs/Walson'
Machine configuration file is 'Walson.ini'
INIFILE=/home/walson/linuxcnc/configs/Walson/Walson.ini
PARAMETER_FILE=linuxcnc.var
TASK=milltask
HALUI=
DISPLAY=axis
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
Starting TASK program: milltask
Starting DISPLAY program: axis
Shutting down and cleaning up LinuxCNC...
Killing task linuxcncsvr, PID=2818
Killing task milltask, PID=2912
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Cleanup done

Debug file information:
Can not find -sec MOT -var MOT -num 1
Can not find -sec IO -var IO -num 1
Can not find -sec LINUXCNC -var NML_FILE -num 1
Can not find -sec EMC -var NML_FILE -num 1
Can not find -sec DISPLAY -var INTRO_GRAPHIC -num 1
Can not find -sec DISPLAY -var INTRO_TIME -num 1
Traceback (most recent call last):
File "/usr/bin/axis", line 3326, in <module>
_dynamic_tabs(inifile)
File "/usr/bin/axis", line 3182, in _dynamic_tabs
child = Popen(cmd)
File "/usr/lib/python2.6/subprocess.py", line 633, in __init__
errread, errwrite)
File "/usr/lib/python2.6/subprocess.py", line 1139, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
2818
PID TTY STAT TIME COMMAND
2912
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components

Kernel message information:
[ 1019.328418] I-pipe: Domain RTAI registered.
[ 1019.328422] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03.
[ 1019.328423] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) .
[ 1019.328447] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
[ 1019.328449] PIPELINE layers:
[ 1019.328451] fa921e20 9ac15d93 RTAI 200
[ 1019.328452] c085cb20 0 Linux 100
[ 1019.338833] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[ 1019.338933] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: <with RTAI OWN KTASKs>, kstacks pool size = 524288 bytes.
[ 1019.338937] RTAI[sched]: hard timer type/freq = APIC/6235800(Hz); default timing: periodic; linear timed lists.
[ 1019.338939] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 2893058000 hz.
[ 1019.338941] RTAI[sched]: timer setup = 999 ns, resched latency = 2943 ns.
[ 1019.338980] RTAI[usi]: enabled.
[ 1019.362505] RTAI[math]: loaded.
[ 1019.399964] config string '0x378 out 0xd030 out '
[ 1019.987193] RTAI[math]: unloaded.
[ 1020.000466] SCHED releases registered named ALIEN RTGLBH
[ 1020.031015] RTAI[malloc]: unloaded.
[ 1020.130592] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[ 1020.131869] I-pipe: Domain RTAI unregistered.
[ 1020.131903] RTAI[hal]: unmounted.





# Generated by Kent Brenneke at Wed May 7 17:14:09 2014

[EMC]
MACHINE = Walson
DEBUG = 0

[DISPLAY]
#TKPKG = Ngcgui 1.0

#NGCGUI_PREAMBLE = preamble.ngc
#NGCGUI_SUBFILE = Profile.ngc
#NGCGUI_POSTAMBLE = postamble.ngc
#NGCGUI_OPTIONS = nonew noremove noiframe

#NGCGUI_PREAMBLE = preamble.ngc
#NGCGUI_SUBFILE = Profile_Tilt.ngc
#NGCGUI_POSTAMBLE = postamble.ngc
#NGCGUI_OPTIONS = nonew noremove noiframe

DISPLAY = axis
EDITOR = gedit
POSITION_OFFSET = RELATIVE
POSITION_FEEDBACK = ACTUAL
MAX_FEED_OVERRIDE = 2.0
MAX_SPINDLE_OVERRIDE = 2.0

PROGRAM_PREFIX = /home/walson/linuxcnc/nc_files
INCREMENTS = 5mm 1mm .5mm .1mm .05mm .01mm .005mm
OPEN_FILE = /home/walson/linuxcnc/nc_files/start.ngc

EMBED_TAB_NAME = Camera
#EMBED_TAB_COMMAND = camview-emc -C camviewcfg -w {XID}
EMBED_TAB_COMMAND = ./camview-emc-float.py -C camviewcfg -w {XID}

[FILTER]
PROGRAM_EXTENSION = .ngc,.NGC,.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 = /home/walson/linuxcnc/nc_files/subroutine:/home/walson/linuxcnc/nc_files/preamble:/home/walson/linuxcnc/nc_files/postamble

[EMCMOT]
EMCMOT = motmod
COMM_TIMEOUT = 1.0
COMM_WAIT = 0.010
BASE_PERIOD = 50000
SERVO_PERIOD = 1000000

[HAL]
HALFILE = Walson.hal
HALFILE = custom.hal
POSTGUI_HALFILE = custom_postgui.hal

[TRAJ]
AXES = 4
COORDINATES = X Y Z A
MAX_ANGULAR_VELOCITY = 180.00
DEFAULT_ANGULAR_VELOCITY = 18.00
LINEAR_UNITS = mm
ANGULAR_UNITS = degree
CYCLE_TIME = 0.010
DEFAULT_VELOCITY = 10.17
MAX_LINEAR_VELOCITY = 101.73

[EMCIO]
EMCIO = io
CYCLE_TIME = 0.100
TOOL_TABLE = tool.tbl

[AXIS_0]
TYPE = LINEAR
HOME = 0.0
MAX_VELOCITY = 90
MAX_ACCELERATION = 400.0
STEPGEN_MAXACCEL = 625.0
SCALE = 76.876875
FERROR = 1
MIN_FERROR = .25
MIN_LIMIT = -170
MAX_LIMIT = .25
HOME_OFFSET = 3
HOME_SEARCH_VEL = -3
HOME_LATCH_VEL = -.50
HOME_SEQUENCE = 2

[AXIS_1]
TYPE = LINEAR
HOME = 0.0
MAX_VELOCITY = 90
MAX_ACCELERATION = 400.0
STEPGEN_MAXACCEL = 625.0
SCALE = 76.876875
FERROR = 1
MIN_FERROR = .25
MIN_LIMIT = -.25
MAX_LIMIT = 250
HOME_OFFSET = -3
HOME_SEARCH_VEL = 3
HOME_LATCH_VEL = .50
HOME_SEQUENCE = 1

[AXIS_2]
TYPE = LINEAR
HOME = 0.0
MAX_VELOCITY = 15
MAX_ACCELERATION = 15
STEPGEN_MAXACCEL = 62.5
SCALE = 1193.8631
FERROR = 1
MIN_FERROR = .25
MIN_LIMIT = -170
MAX_LIMIT = .25
HOME_OFFSET = 3
HOME_SEARCH_VEL = -3
HOME_LATCH_VEL = .50
HOME_SEQUENCE = 0

[AXIS_3]
TYPE = ANGULAR
HOME = 0.0
MAX_VELOCITY = 90
MAX_ACCELERATION = 90
STEPGEN_MAXACCEL = 450.0
SCALE = 153.6
FERROR = 1
MIN_FERROR = .25
MIN_LIMIT = -90.0
MAX_LIMIT = 270.0
HOME_OFFSET = 0
Last edit: 12 Jun 2014 23:23 by mmt. Reason: Problem solved

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

Time to create page: 0.135 seconds
Powered by Kunena Forum