Next generation of aircraft are intended to be pilotless, just look to the developments in military aircraft
The easiest form of transport to make driverless is a train. There are plenty of examples around the world but not many as a percentage of overall train numbers.
If the travelling public do not want/accept/embrace driverless trains they are not going to accept pilotless aircraft. Even though it is technically possible.
The travelling public see good sense in having someone up the front who has a direct and personal
interest in the vehicle arriving safely. After all the pilot and train driver both arrive at the scene of the crash first.
If we have aircraft without pilots who will sleep with the FAs and whine about their miserable pay and conditions?