My take on it, technically it wouldn't be any problems to remove pilots.
BUT, there is no way the A/C manufacturers would like the human factor to totally disappear from the F/D.
Who would it be to blame after an accident?
Always the producer?
It could become very expensive for Boeing, Airbus etc, when A/C starts falling from the skies due to technical/software malfunctions.