Страница 1 из 1

linuxcnc-fetaures: No output generated

Добавлено: 13 фев 2015, 11:36
James628
Hi,

I did all the steps described on the github repo when I installed the stuff.
Everything now is working, but I am unable to produce output.
Neither in standalone version, nor in axis ui embedded tab.
I suppose the reason should be quite simple and the same for both cases.

In standalone version I can save only the XML file, but not the NGC.
In axis embedded ui nothing happens when I push Refresh button.

This is the error message I get on the console:

Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/gladevcp/features.py", line 912, in refresh
f.write(self.to_gcode())
File "/usr/lib/pymodules/python2.7/gladevcp/features.py", line 894, in to_gcode
g,d = self.refresh_recursive(iter)
File "/usr/lib/pymodules/python2.7/gladevcp/features.py", line 871, in refresh_recursive
gcode_def += f.get_definitions()
File "/usr/lib/pymodules/python2.7/gladevcp/features.py", line 257, in get_definitions
s = self.process(self.attr["definitions"])
File "/usr/lib/pymodules/python2.7/gladevcp/features.py", line 324, in process
s = re.sub(r"(?i)(<eval>(.*?)</eval>)", eval_callback, s)
File "/usr/lib/python2.7/re.py", line 151, in sub
return _compile(pattern, flags).sub(repl, string, count)
File "/usr/lib/pymodules/python2.7/gladevcp/features.py", line 287, in eval_callback
return str( eval(m.group(2), globals(),{"self":self}) )
File "<string>", line 1, in <module>
File "/usr/lib/pymodules/python2.7/gladevcp/features.py", line 274, in include_once
return self.include(src)
File "/usr/lib/pymodules/python2.7/gladevcp/features.py", line 265, in include
f = open(search_path(SUBROUTINES_PATH,src))
TypeError: coercing to Unicode: need string or buffer, NoneType found


System is ubuntu 12.04, with python 2.7 (/usr/lib/pymodules/python2.7/gladevcp)
LinuxCNC is buildbot 2.7.0 master

Thank you for your help in advance.

Best regards

Re: linuxcnc-fetaures: No output generated

Добавлено: 13 фев 2015, 12:08
Nick
James628 писал(а):File "/usr/lib/pymodules/python2.7/gladevcp/features.py", line 265, in include
f = open(search_path(SUBROUTINES_PATH,src))
TypeError: coercing to Unicode: need string or buffer, NoneType found
It needs ini file to find where to put output...
try to
To use LinuxCNC Features in stand alone mode, just start them after you have started LinuxCNC providing path to your LinuxCNC ini file in --ini parameter
and your ini must have SUBROUTINES_PATH parameter.

Re: linuxcnc-fetaures: No output generated

Добавлено: 13 фев 2015, 13:46
James628
Hi,

I added SUBROUTINES_PATH to ini file in RS247NGC section, but still no luck. See the output below

I am confused, because NGCGUI requires SUBROUTINE_PATH (without "S" ). Are those stanzas the same?

cat /home/bj/linuxcnc/configs/sim.axis/axis_mm.ini | grep SUBROUTINES
SUBROUTINES_PATH = /home/bj/linuxcnc/linuxcnc-features-master/subroutines
bj@bj-t6:~/linuxcnc/linuxcnc-features-master$ ./features.py --ini=/home/bj/linuxcnc/configs/sim.axis/axis_mm.ini
Feature ini file probe-tool-l.ini not found in /home/bj/linuxcnc/linuxcnc-features-master/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/bj/linuxcnc/linuxcnc-features-master/subroutines:!
Traceback (most recent call last):
File "./features.py", line 912, in refresh
f.write(self.to_gcode())
File "./features.py", line 894, in to_gcode
g,d = self.refresh_recursive(iter)
File "./features.py", line 871, 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.7/re.py", line 151, in sub
return _compile(pattern, flags).sub(repl, string, count)
File "./features.py", line 287, in eval_callback
return str( eval(m.group(2), globals(),{"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
Traceback (most recent call last):
File "./features.py", line 934, in to_file
gcode = self.to_gcode()
File "./features.py", line 894, in to_gcode
g,d = self.refresh_recursive(iter)
File "./features.py", line 871, 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.7/re.py", line 151, in sub
return _compile(pattern, flags).sub(repl, string, count)
File "./features.py", line 287, in eval_callback
return str( eval(m.group(2), globals(),{"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

Re: linuxcnc-fetaures: No output generated

Добавлено: 13 фев 2015, 16:55
verser
Simply displayed g-code file is not generated as expected.
This is due to the fact that the global variables in processing are not initialized
Try to start the most simple processing - the circle or hexagon.

Re: linuxcnc-fetaures: No output generated

Добавлено: 13 фев 2015, 17:05
verser
These treatments should be added and filled at the beginning
comp1.jpg (11728 просмотров) <a class='original' href='./download/file.php?id=43079&mode=view' target=_blank>Загрузить оригинал (392.3 КБ)</a>

Re: linuxcnc-fetaures: No output generated

Добавлено: 13 фев 2015, 22:25
James628
Hi,

I tried to make it according to your recommendations.

Изображение

I checked several videos, but can't figure out what is wrong...

Re: linuxcnc-fetaures: No output generated

Добавлено: 13 фев 2015, 23:41
verser
Are you want to use lathe or mill processing?

Re: linuxcnc-fetaures: No output generated

Добавлено: 16 фев 2015, 18:02
James628
Hi,

I downloaded the latest linuxcnc-features, installed it and now it works.
I don't know what I messed up with the 2-3 month old previous version.

Thank you very much for your effert you tried to find out the cause of my issue.
Also big thank for the great linuxcnc-features tool.

Best regards:
Janos