'module' object has no attribute 'day_abbr'

This means you have a naming conflict between the core python module calendar and another one which is taking precendence.

If you’ve got your own module called calendar, rename it…