Try running each line, one by one. That should help narrow down the issue. The error you're showing says error at line 6 but you only have 4 lines of code that I can see.
-- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/ea22fc34-8066-4706-b362-cc13547519c2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
