[Bug] KineticNCBeamicon2 postprocessor fails (regression)

Here's the place for discussion related to CAM/CNC and the development of the Path module.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
gringusboii123421
Posts: 13
Joined: Mon Sep 12, 2022 12:44 am

[Bug] KineticNCBeamicon2 postprocessor fails (regression)

Post by gringusboii123421 »

Hello. When pressing post process, I get the error shown below and no GCODE file is generated. Please let me know if you need any other info. Thank you for your help!

OS: Windows 10
FreeCAD version 0.20.1



19:31:51 post: KineticNCBeamicon2(P:/FreeCAD 0.20/bin/test.nc, )
19:31:51 Show editor = 1
19:31:51 postprocessing...
19:31:51 Running the Python command 'Path_Post' failed:
Traceback (most recent call last):
File "P:\FreeCAD 0.20\Mod\Path\PathScripts\PathPost.py", line 437, in Activated
(fail, rc, filename) = self.exportObjectsWith(slist, job)
File "P:\FreeCAD 0.20\Mod\Path\PathScripts\PathPost.py", line 216, in exportObjectsWith
gcode = processor.export(objs, filename, postArgs)
File "P:\FreeCAD 0.20\Mod\Path\PathScripts\PathPostProcessor.py", line 105, in export
return self.script.export(obj, filename, args)
File "P:\FreeCAD 0.20/Mod/Path/PathScripts/post\KineticNCBeamicon2_post.py", line 227, in export
job = PathUtils.findParentJob(obj)
File "P:\FreeCAD 0.20\Mod\Path\PathScripts\PathUtils.py", line 405, in findParentJob
for i in obj.InList:

'_TempObject' object has no attribute 'InList'
Last edited by Kunda1 on Tue Sep 13, 2022 2:55 pm, edited 1 time in total.
Reason: Updated thread title to be less generic
chrisb
Veteran
Posts: 54207
Joined: Tue Mar 17, 2015 9:14 am

Re: New to FreeCAD, path failed

Post by chrisb »

Hi and welcome to the forum!

Please try with a recent 0.21 version and attach the file.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
mlampert
Veteran
Posts: 1772
Joined: Fri Sep 16, 2016 9:28 pm

Re: New to FreeCAD, path failed

Post by mlampert »

Could you attach your freecad file which generates the error so we can have look?
gringusboii123421
Posts: 13
Joined: Mon Sep 12, 2022 12:44 am

Re: New to FreeCAD, path failed

Post by gringusboii123421 »

Here is the file. I tried looking for a 0.21 version, but the website just has 0.20
Attachments
Lappys Mead.FCStd
(80.77 KiB) Downloaded 26 times
mlampert
Veteran
Posts: 1772
Joined: Fri Sep 16, 2016 9:28 pm

Re: New to FreeCAD, path failed

Post by mlampert »

hm - same post processor as in POST PROCESSOR Confusion. I'm not familiar with the post processor.

I do get a valid g-code though when post processing with that post processor with v0.21. When you run the post processing - make sure to select the Job when you activate the post process tool.

@Samu - are there any known restrictions in v0.20 with this post processor?
chrisb
Veteran
Posts: 54207
Joined: Tue Mar 17, 2015 9:14 am

Re: New to FreeCAD, path failed

Post by chrisb »

gringusboii123421 wrote: Tue Sep 13, 2022 2:08 am Here is the file. I tried looking for a 0.21 version, but the website just has 0.20
0.21 is here: https://github.com/FreeCAD/FreeCAD-AppI ... kly-builds.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
GeneFC
Veteran
Posts: 5373
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: New to FreeCAD, path failed

Post by GeneFC »

I tried the file using 0.20.0, 0.20.1, and 0.21.xxxxx (very recent).

Did not work on either version 0.20.x, with the same error message as above. Worked fine on 0.21.

Edit: I went back and verified that KineticNCBeamicon2_post.py is the same in all cases.

Gene
gringusboii123421
Posts: 13
Joined: Mon Sep 12, 2022 12:44 am

Re: [Bug] KineticNCBeamicon2 postprocessor fails (regression)

Post by gringusboii123421 »

Wow you guys are all wonderful. The 0.21 version seemed to work. Thank you for your help!
Samu
Posts: 51
Joined: Fri Jan 29, 2021 2:16 pm

Re: New to FreeCAD, path failed

Post by Samu »

mlampert wrote: Tue Sep 13, 2022 5:13 am hm - same post processor as in POST PROCESSOR Confusion. I'm not familiar with the post processor.

I do get a valid g-code though when post processing with that post processor with v0.21. When you run the post processing - make sure to select the Job when you activate the post process tool.

@Samu - are there any known restrictions in v0.20 with this post processor?
Sorry for the late reply.

I know this bug and I've been trying to fix it for some time now with no success. The postprocessor is based on a pretty old version of the linuxcnc_post and all the 'businesslogic' is basically untouched. I will just make a rewrite with the newest version of the linuxcnc_post and make a PR.
Post Reply