Thanks for the pointer towards the relevance of my observation. I was using Python code to generate the polynomial in the case when it didn't work, and copying the same code into the Sage worksheet avoids the error. I'm still a little unsure as to why the parent of the f was the univariate polynomial ring R if I'm right that this was causing the problem.
-- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.