Keras: ValueError: Input 0 is incompatible with layer lstm_1: expected ndim=3, found ndim=2
Your post is a duplicate : Here someone asked the same question.
Have a look at the answers, you can also try this link that gives a detailled explanation about how to reshape inputs for LSTM layers.