That tool is not checking to make sure that what you've entered is compliant with KiCad restrictions. Note that the file format is space-delimited, and you have used spaces in pin names. That's illegal. Change "LE ED1" and "OE ED2" to LE_ED1 and OE_ED2 or similar and it works. (You'll notice that KiCad automatically changes space to underscore in pin names.)
The fact that it waits until the very end to barf is proof of what I've suspected for a long time: nobody working on KiCad knows how to write a damn parser...
What was wrong with the pin spacing? Do you mean the spacing between pins and names? That's the quite poorly documented "skew" field in the Component Properties box.