I am having similar issue to #277 on windows 10

Issue #370 resolved
Bert Bronson created an issue

[ERROR_NOTCL] An internal error has occurred. See shell.
Object (cncjob) failed because: '16'

Traceback (most recent call last):
File "D:\1.DEV\FlatCAM_beta\FlatCAMApp.py", line 4207, in new_object
File "D:\1.DEV\FlatCAM_beta\FlatCAMObj.py", line 3363, in job_init
File "D:\1.DEV\FlatCAM_beta\camlib.py", line 2808, in generate_from_excellon_by_tool
File "D:\1.DEV\FlatCAM_beta\camlib.py", line 2616, in create_data_array
KeyError: '16'

This is trying to run an excellon drill file with default settings. This on beta 8.991 and was also on the version I downloaded 6 weeks ago (8.8…something). Unlike issue #277, I am having this problem just using the general gui (not the shell - new to this program). I will attach the excellon file if you want to see it. Gerber routing seems to work fine so far.

Comments (12)

  1. Marius Stanciu

    Hi Bert,
    I can’t see the reported issue. I have deleted the defaults files so the app is in pristine condition and then loaded your file without issues in FlatCAM beta 8.991 x64.
    Are you using the x86 version or perhaps you made some changes in Preferences?
    What are the steps you do to load the Excellon file?

  2. Bert Bronson reporter

    Actually, I logged in to downgrade the issue… I found that I was confused and didnt have a tool selected (wasnt clear that that was required), but it is still a bug, just it needs to be pointed out that it was due to not having a tool selected from the list instead of the cryptic message I got (minor issue lol). I was going to downgrade it to low priority due to this… otherwise this seems to be a pretty cool program.

    I figured the issue out after dicking with it for a long time and finally getting a different error message which indicated the absence of tools in the excellon file by the way… so I got lucky by clicking that list I noticed it highlight, from there I could run it (which due to the checkmarks I thought all those toole WERE selected).

    I knew I should have made a video of it then this would have been obvious to you, just wasnt sure I could post it or a link to it here or not.

    Cheers.

  3. Marius Stanciu

    The application has Tooltips.
    If you had kept the mouse hovering over the header of the column with the checkbox's you would have seen a message telling you that the P column does not select tools. Other than that, it’s the same as with every other application: you need to learn how it works and then it works. 🙂

    Yet, the error you’ve got has nothing to do with tools selected or not. If you tried to generate the CNCJob (thorough ‘Create Drills GCode’ button) without a tool selected then the app will have displayed an error saying that: “Please select one or more tools from the list and try again.” written in RED.

    What did you do to get the above mentioned error: KeyError: '16'?

  4. Mark Schuurman

    I have used the drill file creator often before, allways with splendid results.

    Lately I had the same error as Bert and several others. I have dived into the code and first I thought it had something to do with the re.match() definitions.

    I couldn’t work it out, so I decided to continue my trial and error-session on the Excellion and came to this conclusion: the clue is in the usage of ‘slots’.

    The object for this PCB is my first one ever creating slots. Hence the error was new to me. When not selected the slots-job; the Gcode is created flawlessly:

    When the slots-job (tool 1) is selected, the “KeyError” gets thrown, in my case “1”.

    Easiest workaround for now would be imho to change the slots to holes (they’re round-shaped as far as I know). If possible at all; where to do this?

    I hope at least this gives a clue to what’s going on.

  5. Marius Stanciu

    Hi Mark,

    It is a bit unclear: did you created the Excellon file that include slots from an ECAD software or you created directly in FlatCAM, more specific in the Excellon Editor?

  6. Marius Stanciu

    Also, could you please share the Excellon file that creates the problem and then enumerate step by step what you click to generate this error?

  7. Mark Schuurman

    Hi Marius,

    The Excellon is created while ZIPping an EasyEDA Gerber-file. You should be able to find the file here (not certain whether I’ve set the right privileges to the file).

    What I do with this file is:

    • Import it into my FlatCam project
    • Activate the layer
    • On tab ‘Selected’ : select all tools (here: 8 tools, 77 drills, 10 slots)
    • Set depth (-1.7), travel (1.0), tool change etc
    • Checkbox ‘Toolchange’ is ticked ‘on’
    • Press 'Create Drills GCode'

    BTW: my deepest respect to you and yours for this excellent piece of software! I hope to be helpfull in a way…

    Cheers, Mark

  8. Marius Stanciu

    It may be better to share the FlatCAM project. This way we get many other things out of the way. I’ve sent a request for access, on the other hand, if you create your own issue then you’ll be able to attach the file here.

  9. Mark Schuurman

    I’ll create my own issue and share the project. Have to find out how, but that shouldn’t be too hard.

    TIA.

  10. Marius Stanciu

    Ok, I got the error and I see where is coming from. Thanks for the report it is really helpful. And since now I’m quarantined (had to do a quick travel to Milano and back …) there is time for FlatCAM, too 🙂

  11. Log in to comment