Python 2.8 - image as plane problem
Enable the addon

Go to the user preferences and enable the addon "Import Images as Planes" to make the operator registered and available to scripts.



Related

Can an add-on be automatically installed and enabled?