I think that "from ta import macd" needs to change to "from ta.trend import macd" because of an update.