Hi all-
This is probably going to hilight my pathetic efforts to learn python, gtk, GladeVCP etc. all at the same time, but....I'm trying to put values from my tool table into various labels on a GladeVCP side panel.
I have this (among much else which is working) in a file called tools.py:
Code:
import linuxcnc as l
s = l.stat()
s.poll()
print s.tool_offset
And when this code runs I get this in the terminal that I ran linuxcnc from:
Code:
File "/usr/lib/pymodules/python2.7/gladevcp/tooledit_widget.py", line 161, in reload
self.hash_code = self.md5sum(self.toolfile)
File "/usr/lib/pymodules/python2.7/gladevcp/tooledit_widget.py", line 306, in md5sum
f = open(filename, "rb")
TypeError: coercing to Unicode: need string or buffer, NoneType found
(0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0)
The thing is that I do have offsets and stuff in my tool file (which exists and is referenced correctly in my .ini file), not the zeros- which tells me (as if the error message didn't!) that it is apparently not being read.
Any suggestions?
tnx,
Patrick