Summary: | app-office/taskcoach calls object.__init__ with arguments, which fails in python-2.6 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Andrey <andrey.prok> |
Component: | Current packages | Assignee: | Vlastimil Babka (Caster) (RETIRED) <caster> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
URL: | https://sourceforge.net/tracker2/?func=detail&aid=2212857&group_id=130831&atid=719134 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 230205 |
Description
Andrey
2008-10-24 08:48:36 UTC
This is a known change in python-2.6 (and isn't related to wxpython). From the "what's new in python 2.6" page: object.__init__() previously accepted arbitrary arguments and keyword arguments, ignoring them. In Python 2.6, this is no longer allowed and will result in a TypeError. This will affect __init__() methods that end up calling the corresponding method on object (perhaps through using super()). See issue 1683368 for discussion. Thanks, reported to upstream for now. I don't have python 2.6 unmasked to test. Should be fixed by upstream in 0.71.3 I just committed. Can anyone please test? (In reply to comment #3) > Should be fixed by upstream in 0.71.3 I just committed. Can anyone please test? > works for me. only shows DeprecationWarning: /usr/lib64/python2.6/site-packages/taskcoachlib/domain/date/date.py:29: DeprecationWarning: object.__init__() takes no parameters super(RealDate, self).__init__(year, month, day) though it is strange that it shows only DeprecationWarning but not TypeError now (In reply to comment #4) > /usr/lib64/python2.6/site-packages/taskcoachlib/domain/date/date.py:29: > DeprecationWarning: object.__init__() takes no parameters > super(RealDate, self).__init__(year, month, day) going off http://docs.python.org/library/datetime.html#datetime.date you probably should just assign the values to year,month and day rather than depending on a constructor. No upstream patch/bug exists Could anyone try taskcoach-0.72.3 with python 2.6 as I don't see the problematic line there anymore? (In reply to comment #6) > Could anyone try taskcoach-0.72.3 with python 2.6 as I don't see the > problematic line there anymore? > Python: 2.6.1, taskcoach: 0.72.3 Result: everything is fine, no warning line Thanks :) Closing then. |