Ryan Gosling is attached to produce and star in an adaptation of the sci-fi novel The Hail Mary, from The Martian author Andy Weir. As reported by Deadline, the project is in final negotiations at MGM, with the studio reportedly throwing down a 7-figure sum at auction to acquire it. Weir’s novel, about an astronaut trying to save the world while trapped alone in a spaceship, won’t be published until next year, although pre-publication film deals like this are nothing new. [caption id="attachment_474173" align="alignright" width="360"] Image via 20th Century Fox[/caption] The …