cnc-club / linuxcnc-features Goto Github PK
View Code? Open in Web Editor NEWLinuxCNC Features
LinuxCNC Features
I get this error:
Traceback (most recent call last):
File "features.py", line 904, in refresh
f = open(PROGRAM_PREFIX + "/features.ngc","w")
IOError: [Errno 13] Permission denied: '/features.ngc'
this relates to the fix you commented on the forum:
try :
inifile = linuxcnc.ini(ini)
SUBROUTINES_PATH = inifile.find('RS274NGC', 'SUBROUTINE_PATH') or ""
PROGRAM_PREFIX = inifile.find('DISPLAY', 'PROGRAM_PREFIX') or ""
except :
print _("Warning! Problem while loading ini file!")
I managed to avoid this by hardcoding both PROGRAM_PREFIX, but SUBROUTINE_PATH still gives a later error:
Traceback (most recent call last):
File "features.py", line 906, in refresh
f.write(self.to_gcode())
File "features.py", line 888, in to_gcode
g,d = self.refresh_recursive(iter)
File "features.py", line 865, in refresh_recursive
gcode_def += f.get_definitions()
File "features.py", line 257, in get_definitions
s = self.process(self.attr["definitions"])
File "features.py", line 324, in process
s = re.sub(r"(?i)(<eval>(.*?)</eval>)", eval_callback, s)
File "/usr/lib/python2.6/re.py", line 151, in sub
return _compile(pattern, 0).sub(repl, string, count)
File "features.py", line 287, in eval_callback
return str( eval(m.group(2), {"self":self}) )
File "<string>", line 1, in <module>
File "features.py", line 274, in include_once
return self.include(src)
File "features.py", line 265, in include
f = open(search_path(SUBROUTINES_PATH,src))
TypeError: coercing to Unicode: need string or buffer, NoneType found
I am getting some problems with the subroutines ini files. After placing most of wanted files on root of subroutines I fixed all except 2 which could not find on subfolders.
These 2 relate to the probe tool l.
Warning! Problem while loading ini file!
Feature ini file probe-tool-l.ini not found in /home/cnc-virtual/linuxcnc/linuxcnc-features/subroutines:/home/cnc-virtual/linuxcnc/linuxcnc-features/subroutines:!
Warning: Error while parsing <sub name="Measure tool length" icon="images/probe-tool-l.png" src="probe-tool-l.ini"/>
...
File not found
Feature ini file probe-tool-l.ini not found in /home/cnc-virtual/linuxcnc/linuxcnc-features/subroutines:/home/cnc-virtual/linuxcnc/linuxcnc-features/subroutines:!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.