For light aircraft a piston engine could drive a generator to charge the battery to power the electric motor drive
So what would the advantage of this arrangement be? You are still burning fuel, still making noise and still carrying the weight. To achieve what?
A little like this...