Create driverless print queue in Mac OS 10.12+
It's obviously (from the error) having a problem querying the server for the PPD.

As an alternative, you can specify the URL to the generic PostScript PPD:

-m drv:///sample.drv/generic.ppd


Or you can use -m raw, though it's deprecated.

Or if all else fails, leave out the -m flag altogether.