AttributeError: 'NoneType' object has no attribute 'split'
Hello, i’m trying to make a pcb, i have gerber created eith autodesk eagle, when i try to generate a cncjob object i have this error:
[ERROR] An internal error has occurred. See shell.
Object (cncjob) failed because: 'NoneType' object has no attribute 'split'
Traceback (most recent call last):
File "D:\1.DEV\FlatCAM_beta\FlatCAMApp.py", line 2803, in new_object
File "D:\1.DEV\FlatCAM_beta\flatcamObjects\FlatCAMGeometry.py", line 1812, in job_init_single_geometry
File "D:\1.DEV\FlatCAM_beta\camlib.py", line 3965, in generate_from_geometry_2
AttributeError: 'NoneType' object has no attribute 'split'
what can i do? thank you!
Comments (17)
-
-
reporter of course, here are the files: https://mega.nz/folder/f9BnEARR#AtaD2RoW4WyWR4SQQvb1LQ
but i think the problem was mine, i didn’t set the end move x,y parameter
the “split object“ error is maybe because the software splits by the “,” the x,y coordinates
-
That is fixed in my working copy. Actually, if no value is provided then there is no move on the X,Y plane after finishing the job.
-
reporter well, i had this roblem, but now it seems to be solved. i have one more issue now, i use Candle to milling the pcb, i can’t set the z-axis depth properly, it cuts too mutch, also if i set 0.05mm it goes too deeper, how can i fix this? maybe i should use a z-probe to let it set its height automatically?
-
I think that 8.992 may have a problem there. I just fixed today a problem with the Z_cut in my working copy but I did not verified if it was also in the 8.992 because I thought that the extensive changes I made are responsible.
In that case you should use the 8.991 version … there is nothing you can do. -
reporter so what is the best stable version? 8.991?
-
That’s not easy to say. It’s try and see. The application is now too complex for me to have the time to thoroughly check all the features. And it is too much in flux to have a framework for testing.
Between 8.991 and 8.992 there were a lot of structural changes. Just like my current working copy is changing things in structure, too.
Whenever there are structural changes there is a high possibility to have bugs and breaking changes.
I put a lot of time lately (since January) in FlatCAM. An insane amount of time which I know that I can’t simply continue due of life having it’s requirements on me. So I am trying to finish things up.
I had a lot of things in my my mind to add as features to FlatCAM and in part I succeeded. Those features were not easy to add but here we are and FlatCAM is what it is.
Versions 8.993 and 8.994 will be also with new features.
Versions 8.995, 8.996 will be made with optimizations in mind.
Version 8.997 will be with bug fixes.
And hopefully at that moment I can release a almost bug free version 9.0. -
reporter ok! thanks for your work and support, i will try the 991 and hope it will work fine! thanks again and good job!
-
reporter ok, the 991 crashes when i add the alignement drill coordinates
-
reporter could it be a 64 bit/32bit problem?
-
It should not be the case, but you could try. One of the usual fixes is to delete the preferences files and try again.
-
reporter hello, no, it was not the proble, with the 991 solved the z depth issue, but it crashes when try to add the alignment drills for double side pcb. now, in this video i can see the guy with the 913 version, i’ll try with it and hope it works for my case
thank you
-
Hi,
Between versions, the defaults files change and sometime the changes are breaking when going from lower version to higher version or from higher version to lower version.Delete the preferences files and try again.
Open program, open Preferences (Edit → Preferences), open the Pref Folder (button in the lower part of the window), in the Explorer widow that is opened delete all the files there.Restart FlatCAM.
There are no issues with the Double Sided Tool. -
reporter ok, now it seems to work, thank you!
-
- changed status to resolved
Solved in v 8.993
-
The AttributeError is an exception thrown when an object does not have the attribute you tried to access. 'NoneType' object has no attribute 'split' often indicates that the attribute you are trying to split is Null, meaning there is no value in it to split. So, you need to check the attribute is not Null before splitting. Something like..
if val is not None:
# ...
-
@Rahul Kumar and your point is?
This issue has been solved a while back. As for how to deal with the exceptions there are a couple of ways to do that and the most pythonic one is by using the try - except clause. - Log in to comment
Hi Giuseppe,
What version of FlatCAM are you using? 8.992?
LE: Can you post the Gerber file and the steps to reproduce the issue? Thanks. You can post a Dropbox/Mega/Google Drive link or you can upload to https://filedropper.com and post the link here.