HOUSTON (AP) — Houston Astros pitcher Josh James has undergone hip surgery and will need six to eight months to recover. General manager James Click says the right-hander had a labral tear of his left hip repaired Friday. James initially injured his hip during an Aug. 20 game at Colorado and went on the injured list. When he returned, he had a 1.35 ERA in his final six appearances of the regular season. James also appeared in three postseason games, pitching four innings.