Avoiding a .csv error with PrinterGenerator


PrinterGenerator is one of the automated scripts for adding printers to Munki.

It’s pretty cool—you just put together a .csv of your printers and their IP addresses, and then run the script on the .csv, and all the pkginfo files for the printers will generate.

I did run into one snag, though, which is using Office on a Mac to generate the .csv. I got this error:

_csv.Error: new-line character seen in unquoted field – do you need to open the file in universal-newline mode?

I found out from Stack Overflow that, apparently, saving as a .csv may generate that Python error, but if you save as a Windows Comma Separated (.csv), it works just fine.


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.