2010/2/26 jamgood96 <jamgood96@...287...>:
Each time I try to run a script, it just keeps printing, "The time is: The
time is: Fri Feb 26 13:27:08 2010". over and over. I believe I installed all
the packages correctly, but honesty was a bit overwhelmed. I've tried
attaching a screen shot of what is happening.
I wonder why in your py2.6 lib/.../calendar.py on line 6 there is a statement:
if prev_time != the_time:
In my calendar.py the file starts:
"""Calendar printing functions
Note when comparing these calendars to the ones printed by cal(1): By
default, these calendars have Monday as the first day of the week, and
Sunday as the last (the European convention). Use setfirstweekday() to
set the first day of the week (0=Monday, 6=Sunday)."""
import sys
import datetime
import locale as _locale
__all__ = ["IllegalMonthError", "IllegalWeekdayError", "setfirstweekday",
"firstweekday", "isleap", "leapdays", "weekday", "monthrange",
"monthcalendar", "prmonth", "month", "prcal", "calendar",
"timegm", "month_name", "month_abbr", "day_name", "day_abbr"]
?
The thing happens when you import matplotlib.pyplot, which imports
matplotlib's cores, which imports calendar from lib/.../site-packages.
I can only guess that this calendar.py has been placed there for some
reason, overwriting Python's original calendar.py?
Friedrich