in reply to Failure to create user agent object
FWIW, I get the same error, using the code provided in the synopsis section of the docs. It looks like a bug to me.
the lowliest monk