Coder Social home page Coder Social logo

linuxcnc-features's Introduction

cnc-club

linuxcnc-features's People

Contributors

awigen avatar cnc-club avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

linuxcnc-features's Issues

features.ngc not found

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

ini files not 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:!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.