From what I've read, in Spain there was for a long time (may still be?) pretty effective/expensive legislation against installing solar panels anywhere. Reason? Regulatory capture, with energy companies lobbying hard against anything that might weaken their position or profiteering opportunities.
I wouldn't call that necessarily incompetence. Corruption and cronyism, yes.