LinuxCNC Features - a kind of NGCGUI

More
04 Jun 2014 02:39 #47665 by mariusl
Done that now but I am still having some problems. I can add settings feature. The gcode is updated in axis but as soon as I add a face cut it gives n error "Named parameter #<_z>not defined" Nothing works after that.

Regards
Marius


www.bluearccnc.com

Please Log in or Create an account to join the conversation.

More
09 Jun 2014 13:21 #47796 by phillc54
I cannot do item 6 from the readme
cd /usr/share/locale/<<<YOUR LOCALE>>>/LC_MESSAGES
sudo ln /<full path to features sourse>/locale/<<<YOUR LOCALE>>>/LC_MESSAGES/linuxcnc-features.mo -s
as there are no locale files other than ru

I have got 'features' appearing in 'axis' but I cannot update 'axis' from 'features', I get the following:
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

Any help would be appreciated.

Cheers, Phill

Please Log in or Create an account to join the conversation.

More
09 Jun 2014 20:11 #47809 by Nick

as there are no locale files other than ru

you can skip this step... currently there are no translations except Russian.

Can you attach your ini file. It seems it does not have SUBROUTINES_PATH parameter...

Please Log in or Create an account to join the conversation.

More
10 Jun 2014 15:52 #47837 by phillc54
Attached is my ini file.

If I do only a facing function it will refresh to 'axis'.
If I do multiple facing functions it will refresh to 'axis'.
If I do a od-simple function it errors as per my previous post.

If I try to open a file it errors as follows:
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/gladevcp/features.py", line 1279, in load
    filter.set_name("XML")
AttributeError: 'builtin_function_or_method' object has no attribute 'set_name'

Please Log in or Create an account to join the conversation.

More
10 Jun 2014 16:49 - 10 Jun 2014 16:50 #47842 by mariusl
I concur with Phill, I can do a face action but as soon as I do an OD, the system no longer works. See my previous post about the variable #<_z> not being present. It would seem that there are uninitialized variables under certain conditions.

Regards
Marius


www.bluearccnc.com

Last edit: 10 Jun 2014 16:50 by mariusl.

Please Log in or Create an account to join the conversation.

More
10 Jun 2014 17:18 #47843 by andypugh

See my previous post about the variable #<_z> not being present. It would seem that there are uninitialized variables under certain conditions.


#<_z> is a convenience variable but only defined in 2.6 / master.
www.linuxcnc.org/docs/devel/html/gcode/o...d_named_parameters_a

Please Log in or Create an account to join the conversation.

More
10 Jun 2014 18:27 #47847 by phillc54
I am currently using 2.6.0-pre3-37-gd131cf1.

Please Log in or Create an account to join the conversation.

More
10 Jun 2014 20:39 #47850 by andypugh

I am currently using 2.6.0-pre3-37-gd131cf1.


Do the other named parameters exist?

(You can test in the MDI window with (debug, #<_motion_mode>) for example. You need the brackets and braces, and no space before the comma)

Please Log in or Create an account to join the conversation.

More
11 Jun 2014 16:16 #47881 by phillc54
Yes, they appear to exist. ( I tested using your example plus #<_x>, #<_y> & #<_z>)

More version numbers if it helps (or hinders...)
phill@lcnc:~$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 12.04.4 LTS
Release:	12.04
Codename:	precise
phill@lcnc:~$ uname -a
Linux lcnc 3.4.55-rtai-2 #1 SMP PREEMPT Sun Dec 15 23:40:48 MST 2013 i686 i686 i386 GNU/Linux
phill@lcnc:~$ 

Please Log in or Create an account to join the conversation.

More
11 Jun 2014 18:39 #47890 by andypugh
I think we have become confused.
Mariusl said that #<_z> didn't exist, then Phillc54 said that it did.
Both could be true.

Please Log in or Create an account to join the conversation.

Time to create page: 0.111 seconds
Powered by Kunena Forum