elliotf / heekscnc

Automatically exported from code.google.com/p/heekscnc
Other
1 stars 0 forks source link

'Error document empty' message when running operation #296

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I've split this from issue #275 because I believe there are two problems in 
that ticket and that this is a separate issue.

---- Repeated from Issue #275 ----
I'm getting the 'Error document empty' message as well.  I noticed that there 
are some empty files '.tap' and '.tap.nc.xml' being created in my project 
directory and some others with data being created in '/tmp'.

I'm running on Ubuntu 10.10, 64-bit Linux so this is not limited to Windows.  
Possibly a file location problem.  Could be related to the tmp directory.

I am also trying to do a pocketing operation but I get this with Adaptive 
Clearing as well.

Original issue reported on code.google.com by jcoffl...@gmail.com on 1 Apr 2011 at 10:41

GoogleCodeExporter commented 8 years ago
A little more info on the 'Error document empty' message.  This seems to be 
coming from tinyXML.  A '/tmp/<name>.tap.nc.xml' file is created but it only 
contains a single return character, thus the empty file message.

The '/tmp/<name>.tap' file is being created just fine.

I also tried running the generated python code outside of HeeksCAD and it 
seemed to run fine.

Original comment by jcoffl...@gmail.com on 1 Apr 2011 at 10:43

GoogleCodeExporter commented 8 years ago
Your fix for #275 fixed this too.  Thanks!

Original comment by jcoffl...@gmail.com on 1 Apr 2011 at 11:39

GoogleCodeExporter commented 8 years ago
I wanted to give my contribution about 'Error document empty. "
I found that this error is still returned if the postprocessor is used "Linux 
Enhanced Machine Controller". While everything works if you use the 
postprocessor "Linux Emc2 Controller-simplified"

By starting from the terminal returns:
Looking for default data in '/home/luigi'
Looking for default data in '/usr/lib'
Looking for default data in '/usr/lib/heekscnc'
  File "/tmp/post.py", line 10
    import nc.emc2
              ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "/usr/lib/heekscnc/backplot.py", line 8, in <module>
    machine_module = __import__('nc.' + machine + '_read', fromlist = ['dummy'])
ImportError: No module named emc2_read

Original comment by barbati....@gmail.com on 27 Apr 2011 at 7:32