[Tutor] Calendar module

John Carmona jeannot18 at hotmail.com
Wed Mar 30 19:50:08 CEST 2005

Hi guys, I have typed this programme from the Josh Cogliati manual

import calendar

year = input("Type in the year number: ")

I get this error message

Traceback (most recent call last):
  File "C:/Python24/Example/cal.py", line 1, in -toplevel-
    import calendar
  File "C:\Python24\Example\calendar.py", line 4, in -toplevel-
AttributeError: 'module' object has no attribute 'prcal'

And for some reason it does not work. I saved it as cal.py and it is running 
from the same folder that hold Python 2.4 (I run XP)

any reason why it is not working (I managed to make it work at my workplace 
by the way.


More information about the Tutor mailing list