linuxcnc-fetaures: No output generated

cnc-club.ru for English speaking users

linuxcnc-fetaures: No output generated

Сообщение James628 » 13 фев 2015, 11:36

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
James628
Новичок
 
Сообщения: 28
Зарегистрирован: 19 июн 2012, 19:55
Репутация: 0

Re: linuxcnc-fetaures: No output generated

Сообщение Nick » 13 фев 2015, 12:08

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.
Use the Console, Luke.
Аватара пользователя
Nick
Мастер
 
Сообщения: 22330
Зарегистрирован: 23 ноя 2009, 16:45
Откуда: Gatchina, Saint-Petersburg distr., Russia
Репутация: 1332
Заслуга: Developer
Медальки:

Re: linuxcnc-fetaures: No output generated

Сообщение James628 » 13 фев 2015, 13:46

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
James628
Новичок
 
Сообщения: 28
Зарегистрирован: 19 июн 2012, 19:55
Репутация: 0

Re: linuxcnc-fetaures: No output generated

Сообщение verser » 13 фев 2015, 16:55

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.
Изображение- центроискатели
Аватара пользователя
verser
Мастер
 
Сообщения: 1418
Зарегистрирован: 21 июл 2013, 22:28
Откуда: Минск
Репутация: 832
Медальки:
Настоящее имя: Сергей

Re: linuxcnc-fetaures: No output generated

Сообщение verser » 13 фев 2015, 17:05

These treatments should be added and filled at the beginning
linuxcnc-fetaures: No output generated comp1.jpg
Изображение- центроискатели
Аватара пользователя
verser
Мастер
 
Сообщения: 1418
Зарегистрирован: 21 июл 2013, 22:28
Откуда: Минск
Репутация: 832
Медальки:
Настоящее имя: Сергей

Re: linuxcnc-fetaures: No output generated

Сообщение James628 » 13 фев 2015, 22:25

Hi,

I tried to make it according to your recommendations.

Изображение

I checked several videos, but can't figure out what is wrong...
James628
Новичок
 
Сообщения: 28
Зарегистрирован: 19 июн 2012, 19:55
Репутация: 0

Re: linuxcnc-fetaures: No output generated

Сообщение verser » 13 фев 2015, 23:41

Are you want to use lathe or mill processing?
Изображение- центроискатели
Аватара пользователя
verser
Мастер
 
Сообщения: 1418
Зарегистрирован: 21 июл 2013, 22:28
Откуда: Минск
Репутация: 832
Медальки:
Настоящее имя: Сергей

Re: linuxcnc-fetaures: No output generated

Сообщение James628 » 16 фев 2015, 18:02

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
James628
Новичок
 
Сообщения: 28
Зарегистрирован: 19 июн 2012, 19:55
Репутация: 0


Вернуться в English forum

Кто сейчас на конференции

Зарегистрированные пользователи: aftaev, Alex lamaka, AlexKota19, Bing [Bot], Duhas, error101, frezeryga, Google [Bot], Igor26rus, ilya37rus, Jek-66, jimgood, Leo_1943, Leonid Vs, Majestic-12 [Bot], michael-yurov, Montis, Mr. Mass, MX_Master, niksooon, Nixon, NKS, nva-tuning, odekolon, Pavelchr, Pitstrokow, Power968, putnik, Redmn, sivolap36, sorter, stiks, Studendt, ugoaleks, ultrus, Umnik, vala, vektor_z, wenji, Yahoo [Bot], Yandex [bot]

Поделиться

Reputation System ©'