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
linuxcnc-fetaures: No output generated
- Nick
- Мастер
- Сообщения: 22776
- Зарегистрирован: 23 ноя 2009, 16:45
- Репутация: 1735
- Заслуга: Developer
- Откуда: Gatchina, Saint-Petersburg distr., Russia
- Контактная информация:
Re: linuxcnc-fetaures: No output generated
It needs ini file to find where to put output...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
try to
and your ini must have SUBROUTINES_PATH parameter.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
-
- Новичок
- Сообщения: 28
- Зарегистрирован: 19 июн 2012, 19:55
- Репутация: 0
- Контактная информация:
Re: linuxcnc-fetaures: No output generated
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
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
- verser
- Мастер
- Сообщения: 1895
- Зарегистрирован: 21 июл 2013, 22:28
- Репутация: 1282
- Настоящее имя: Сергей
- Откуда: Тбилиси
- Контактная информация:
Re: linuxcnc-fetaures: No output generated
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.
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.
- verser
- Мастер
- Сообщения: 1895
- Зарегистрирован: 21 июл 2013, 22:28
- Репутация: 1282
- Настоящее имя: Сергей
- Откуда: Тбилиси
- Контактная информация:
Re: linuxcnc-fetaures: No output generated
These treatments should be added and filled at the beginning
-
- Новичок
- Сообщения: 28
- Зарегистрирован: 19 июн 2012, 19:55
- Репутация: 0
- Контактная информация:
Re: linuxcnc-fetaures: No output generated
Hi,
I tried to make it according to your recommendations.
I checked several videos, but can't figure out what is wrong...
I tried to make it according to your recommendations.
I checked several videos, but can't figure out what is wrong...
- verser
- Мастер
- Сообщения: 1895
- Зарегистрирован: 21 июл 2013, 22:28
- Репутация: 1282
- Настоящее имя: Сергей
- Откуда: Тбилиси
- Контактная информация:
Re: linuxcnc-fetaures: No output generated
Are you want to use lathe or mill processing?
-
- Новичок
- Сообщения: 28
- Зарегистрирован: 19 июн 2012, 19:55
- Репутация: 0
- Контактная информация:
Re: linuxcnc-fetaures: No output generated
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
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