Menu

#464 AttributeError get_name in lockfile.py on python 2.6

Release_0.72.5
closed
Linux (158)
1
2012-09-15
2009-04-14
No

This occurs when trying to load or save a .tsk file on python 2.6:
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/taskcoachlib/gui/uicommand.py", line 139, in onCommandActivate
self.doCommand(event)
File "/usr/lib/python2.6/site-packages/taskcoachlib/gui/uicommand.py", line 471, in doCommand
self.iocontroller.saveas()
File "/usr/lib/python2.6/site-packages/taskcoachlib/gui/iocontroller.py", line 152, in saveas
if self._saveSave(self.taskFile, showerror, filename):
File "/usr/lib/python2.6/site-packages/taskcoachlib/gui/iocontroller.py", line 183, in _saveSave
file.saveas(filename)
File "/usr/lib/python2.6/site-packages/taskcoachlib/persistence/taskfile.py", line 289, in saveas
return super(LockedTaskFile, self).saveas(filename)
File "/usr/lib/python2.6/site-packages/taskcoachlib/persistence/taskfile.py", line 210, in saveas
self.save()
File "/usr/lib/python2.6/site-packages/taskcoachlib/persistence/taskfile.py", line 283, in save
self.acquire_lock(self.filename())
File "/usr/lib/python2.6/site-packages/taskcoachlib/persistence/taskfile.py", line 265, in acquire_lock
self.
lock = lockfile.FileLock(filename)
File "/usr/lib/python2.6/site-packages/taskcoachlib/thirdparty/lockfile/lockfile.py", line 166, in init
tname = "%s-" % threading.current_thread().get_name()
AttributeError: '_MainThread' object has no attribute 'get_name'

Fix mentioned here helped (did not test older python versions though)
http://code.google.com/p/django-mailer/issues/detail?id=21

Also there seems to be a updated fixed lockfile 0.8 (taskcoach has 0.7)
http://pypi.python.org/pypi/lockfile/0.8

Discussion

  • Frank Niessink

    Frank Niessink - 2009-04-14

    Hi Vlastimil,

    Release 0.72.6 will ship with lockfile 0.8 so that should fix this issue.

    Cheers, Frank

     
  • Frank Niessink

    Frank Niessink - 2009-04-14

    A fix was made and checked into the source code repository of Task Coach. The fix will be part of the next release. You will get another notification when that release is available with the request to install the new release and confirm that your issue has indeed been fixed.

    Because a fix has been made for this bug report, the priority of this report has been lowered to 1 and its resolution has been set to 'Fixed'.

    Thanks,

    Task Coach development team

     
  • Frank Niessink

    Frank Niessink - 2009-04-18

    This bug should be fixed in the latest release of Task Coach. Can
    you please install the latest release of Task Coach and confirm
    that this bug has indeed been fixed?

    Thanks,

    Task Coach development team

     
  • Vlastimil Babka

    Vlastimil Babka - 2009-04-18

    0.72.6 indeed works, thanks.

     

Log in to post a comment.