[Scribus] Update on Calendar Script

chris lee clee
Wed Nov 24 23:21:41 CET 2004


On Wed, 2004-11-24 at 15:57 -0500, Henry Hartley wrote:
> >> -----Original Message-----
> >> From: chris lee
> >> Sent: Wednesday, November 24, 2004 3:37 PM
> >> 
> >> The script gave me the following error, I'm a newbie to scripting
> >> so a clue how to troubleshoot would be a appreciated
> >> 
> >> Traceback (most recent call last):
> >>   File "<string>", line 4, in ?
> >>   File "/home/clee/calendar.py", line 23, in ?
> >>     import calendar
> >>   File "/home/clee/calendar.py", line 80, in ?
> >>     calendar.setfirstweekday(calendar.SUNDAY)
> >> AttributeError: 'module' object has no attribute 'setfirstweekday'
> 
> Try naming the file something other than calendar.py (e.g. capitalize
> the filename) so that it doesn't get confused when you try to import
> the standard calendar module.  I've also renamed the script on my
> site to help avoid this problem.  The file is now:
> 
> http://www.dotrose.com/misc/computer/Calendar-Large.py

Tried that ... script looks in the right place now but returns this
error

Traceback (most recent call last):
  File "<string>", line 4, in ?
  File "/home/clee/Calendar_big.py", line 23, in ?
    import calendar
  File "/usr/lib/python2.3/calendar.py", line 80, in ?
    def isleap(year):
AttributeError: 'module' object has no attribute 'setfirstweekday'






More information about the scribus mailing list