Package Details: watson 2.1.0-3

Git Clone URL: https://aur.archlinux.org/watson.git (read-only, click to copy)
Package Base: watson
Description: A wonderful CLI to track your time!
Upstream URL: https://tailordev.github.io/Watson/
Keywords: monitoring report time time-tracking tracking watson
Licenses: MIT
Submitter: loonies
Maintainer: loonies
Last Packager: loonies
Votes: 17
Popularity: 0.23
First Submitted: 2016-02-09 11:50 (UTC)
Last Updated: 2024-05-17 14:57 (UTC)

Pinned Comments

loonies commented on 2019-12-08 22:14 (UTC) (edited on 2019-12-10 07:36 (UTC) by loonies)

Prior to flagging the package out-of-date or reporting build errors please:

  • Make sure that your system is up-to-date (pacman -Syu)
  • Rebuild and reinstall dependencies (especially ones from AUR)
  • Rebuild and reinstall the package

Do not expect AUR packages to trigger rebuild or suggest bumping "pkgrel" number. This is expected behaviour and the way Arch packing is designed to work.

For more information read the official documentation and man pages.

Latest Comments

1 2 3 Next › Last »

nraleigh commented on 2024-04-30 21:05 (UTC) (edited on 2024-05-02 23:10 (UTC) by nraleigh)

Just started getting a new error as of a few days ago:

Traceback (most recent call last):
  File "/usr/lib/python3.12/importlib/metadata/__init__.py", line 397, in from_name
    return next(cls.discover(name=name))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
StopIteration

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/watson", line 33, in <module>
    sys.exit(load_entry_point('td-watson==2.1.0', 'console_scripts', 'watson')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/watson", line 22, in importlib_load_entry_point
    for entry_point in distribution(dist_name).entry_points
                       ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/importlib/metadata/__init__.py", line 862, in distribution
    return Distribution.from_name(distribution_name)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/importlib/metadata/__init__.py", line 399, in from_name
    raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: No package metadata was found for td-watson

I installed watson with paru. I could fix the issue by doing the following things:

  1. Remove watson: paru -R watson
  2. Delete cache: rm -rf ~/.cache/paru/clone/watson
  3. Reinstall watson: paru watson

Reylak commented on 2024-04-09 13:28 (UTC)

Should the proposed patch be included in this package? It applies and fixes things fine for me, with theses changes to the PKGBUILD:

diff --git a/PKGBUILD b/PKGBUILD
index a955bfe..4f3944a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@

 pkgname=watson
 pkgver=2.1.0
-pkgrel=1
+pkgrel=2
 pkgdesc='A wonderful CLI to track your time!'
 arch=('any')
 url='https://tailordev.github.io/Watson/'
@@ -17,8 +17,15 @@ depends=(
 makedepends=('python-setuptools')
 options=(!emptydirs)

-source=("$pkgname-$pkgver.tar.gz::https://github.com/TailorDev/Watson/archive/$pkgver.tar.gz")
-sha256sums=('ba0d23a1437e022f7d331c5a5923e24b3996099a4e140edeb5785f992e0b705b')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/TailorDev/Watson/archive/$pkgver.tar.gz"
+    "fix-completions.patch")
+sha256sums=('ba0d23a1437e022f7d331c5a5923e24b3996099a4e140edeb5785f992e0b705b'
+            '344a305cd2934aa5481d2da5cdb36b059bef62ce5368c0083493b7525889094a')
+
+prepare() {
+    cd "$srcdir/Watson-$pkgver"
+    patch --strip=1 --input=../fix-completions.patch
+}

 build() {
     cd "$srcdir/Watson-$pkgver"

Moxon commented on 2022-12-07 08:19 (UTC)

@j.r: great idea! I wasn't aware of that option...

j.r commented on 2022-12-07 08:11 (UTC)

@Moxon I would rather suggest only applying https://github.com/voidus/Watson/commit/9040eeb2c509bd52121c1e5de815127d62533461.patch as patch. Instead of changing the whole source to a third party fork.

Moxon commented on 2022-12-07 07:39 (UTC) (edited on 2022-12-07 07:40 (UTC) by Moxon)

Completion stopped working a while ago, but there is a fix available on https://github.com/voidus/Watson/tree/fix-completions which works for me. I uses python-click 8.1.3-1 and I needed to change PKGBUILD to this:

diff --git a/PKGBUILD b/PKGBUILD
index a955bfe..f20f979 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@

 pkgname=watson
 pkgver=2.1.0
-pkgrel=1
+pkgrel=2
 pkgdesc='A wonderful CLI to track your time!'
 arch=('any')
 url='https://tailordev.github.io/Watson/'
@@ -17,16 +17,16 @@ depends=(
 makedepends=('python-setuptools')
 options=(!emptydirs)

-source=("$pkgname-$pkgver.tar.gz::https://github.com/TailorDev/Watson/archive/$pkgver.tar.gz")
-sha256sums=('ba0d23a1437e022f7d331c5a5923e24b3996099a4e140edeb5785f992e0b705b')
+source=("git+https://github.com/voidus/Watson.git#branch=fix-completions")
+sha256sums=('SKIP')

 build() {
-    cd "$srcdir/Watson-$pkgver"
+    cd "$srcdir/Watson"
     python setup.py build
 }

 package() {
-    cd "$srcdir/Watson-$pkgver"
+    cd "$srcdir/Watson"

     install -D -m 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
     install -D -m 644 watson.completion "$pkgdir/usr/share/bash-completion/completions/$pkgname"

ab2422 commented on 2022-01-10 23:32 (UTC) (edited on 2022-01-10 23:33 (UTC) by ab2422)

@fabean here's what I did to get watson to work after the python update:

  1. Used pip to install click version 7.1.2, via pip install --user click==7.1.2 (before doing this, running pip list didn't list any version of click, since I ignore click updates to avoid the click 8.0 issue, and so updating to python3.10 did not automatically reinstall click for me)
  2. Reinstalled watson (in my case on Manjaro, using pacaur)

Perhaps this will work for you?

fabean commented on 2022-01-05 18:23 (UTC)

@drScience for me as of today, moving all python-click on my system, building it from PKGBUILD then installing watson still isn't working for me. This is really sad, been using watson for years to track all my work time, really need to get this working.

drScience commented on 2022-01-02 12:12 (UTC)

@somini since the Python 3.10 update, at least on my system, I can only get python-click working when building through makepkg (see the PKGBUILD in @loonies pinned comment). Relying on pacman will only install python-click 7.2.1 as a Python 3.9 package, and then watson complains it doesn't find click although the package dependency is satisfied.

loonies commented on 2021-12-28 16:20 (UTC)

@somini, please read the pinned comment.

somini commented on 2021-12-27 18:57 (UTC)

There was a major Python update to v3.10, this needs to be rebuild.

Please bump the package version.