The time is: ....

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.

Thanks in advance!

http://old.nabble.com/file/p27723602/Screen%2Bshot%2B2010-02-26%2Bat%2B1.27.18%2BPM.jpeg

···


View this message in context: http://old.nabble.com/The-time-is%3A-…-tp27723602p27723602.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

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