Menu

#1618 Task Coach 1.4.3 does not start under Ubuntu 16.04 LTS

closed
nobody
None
linux
2026-01-20
2016-05-04
Ernst R.
No

Used to work on the previous version of Ubuntu, 2015.10. Moved to 2016.04 for LTS reasons now, but TC crashes with this error when I try to open my .tsk file:

Error when reading from [...].tsk:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/taskcoachlib/gui/iocontroller.py", line 125, in open
breakLock=breakLock)
File "/usr/lib/python2.7/dist-packages/taskcoachlib/persistence/taskfile.py", line 660, in load
self.acquire_lock(filename)
File "/usr/lib/python2.7/dist-packages/taskcoachlib/persistence/taskfile.py", line 638, in acquire_lock
self.lock = self.__createLockFile(filename)
File "/usr/lib/python2.7/dist-packages/taskcoachlib/persistence/taskfile.py", line 623, in __createLockFile
return lockfile.MkdirFileLock(filename)
File "/usr/lib/python2.7/dist-packages/lockfile/__init
.py", line 301, in MkdirFileLock
args, kwds)
File "/usr/lib/python2.7/dist-packages/lockfile/init.py", line 279, in _fl_helper
return cls(
args, **kwds)
TypeError: init() takes at least 2 arguments (1 given)

An assistant will now open to recover an older verion of this file.

Of course, I do not want to open an older version and the file is perfectly fine.

Note: I am opening my task file from a network share (SFTP) to enable non-parallel usage on multiple machines, maybe this makes a difference. It seems that TC only uses lockfiles when on filesystems it believes to be remote and then this bug is triggered. When I copy the file to /dev/shm/ for testing purposes, it works fine.

Please fix the above-mentioned number of parameters bug. Thanks.

Discussion

  • Ernst R.

    Ernst R. - 2016-05-04

    By the way, I am using package python-lockfile version 0.12.2-1. It seems that the parameters for MkdirFileLock have changed recently to require one more parameter.

    The required change seems to be rather small.

    Note that according to the package info, the lockfile package is deprecated by the maintainer.

     

    Last edit: Ernst R. 2016-05-04
  • Jérome Laheurte

    This kind of things is why we embed our own, fixed version of lockfile... But the official Debian package does not IIRC; do you still have the problem if you install the .deb from taskcoach.org ?

     
  • Ernst R.

    Ernst R. - 2016-05-26

    I tried installing from the tackcoach.org Ubuntu PPA. But found:

    1) that there is no xenial series package yet

    2) when I try installing the wily series package, then I get:

    Dependency is not satisfiable: python-wxgtk2.8 (>= 2.8.9.2).

     
  • Jérome Laheurte

    Yes, Task Coach works with wx 2.8 but Ubuntu 16.x ships 3.x. The Xenial PPA will be available with the next release. Can you force the install ? If you have wxPython 3.x installed it should work nonetheless, hopefully.

     
  • R. WIgle

    R. WIgle - 2017-03-07

    I also can't get Taskcoach to run under Ubuntu 16.04 but the errors I am getting follow

    (taskcoach:7330): Gtk-CRITICAL **: IA__gtk_widget_set_size_request: assertion 'height >= -1' failed

    (taskcoach:7330): Gtk-CRITICAL **: IA__gtk_widget_set_size_request: assertion 'width >= -1' failed

    (taskcoach:7330): Gtk-CRITICAL **: IA__gtk_widget_set_size_request: assertion 'width >= -1' failed

    (taskcoach:7330): Gdk-CRITICAL **: IA__gdk_window_get_origin: assertion 'GDK_IS_WINDOW (window)' failed
    taskcoach: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
    Killed

    After this error taskcoach just hangs.

    python-wxgtk3.0 is installed.

     
    • Aaron Wolf

      Aaron Wolf - 2017-03-07

      R. Wigle — that seems an unrelated issue that should be solved by clearing (or editing if you want to actually somehow find the problem bit, not recommended) your .ini file https://answers.launchpad.net/taskcoach/+faq/1061

      (I am using a 16.04 system essentially, no problems here)

       
  • R. WIgle

    R. WIgle - 2017-03-14

    @Aaron --- You are correct. I trashed the old ini file and all seems well now. Thank you.

     
  • Aaron Wolf

    Aaron Wolf - 2018-12-06
    • status: open --> closed
     

Log in to post a comment.

Auth0 Logo