ActivityWatch / aw-watcher-vim

110 stars 14 forks source link

Unable to install aw-client due to failing aw-core requirement #4

Closed skogsbrus closed 6 years ago

skogsbrus commented 6 years ago

Hello :)

Trying to get this to work on my PC with the latest version (b8ad0e7), but am experiencing some problems. Installing aw-core works fine, but when installing aw-client I get the following error message:

Could not find a version that satisfies the requirement aw_core (from aw-client==0.3) (from versions: )

I get this error both when running the following, as per the readme:

pip3 install git+https://github.com/ActivityWatch/aw-core.git
pip3 install git+https://github.com/ActivityWatch/aw-client.git

and when installing from my local source with:

cd ~/programs/activitywatch/aw-core && pip3 install --user --editable ./
cd ~/programs/activitywatch/aw-client && pip3 install --user --editable ./

Running pip3 list shows aw-core as installed:

aw-core (0.4.1, /home/johan/programs/activitywatch/aw-core)

Running import aw_core in a Python 3.6.5 console works fine.

I'll try to find out why this occurs, but any help would be appreciated!

ahnlabb commented 6 years ago

Strange, this looks like an upstream problem but I am unable to reproduce it. Could you try uninstalling the packages:

pip3 uninstall aw-core

and checking with pip3 list that no AW packages are installed and then running the install commands with the user flag:

pip3 install git+https://github.com/ActivityWatch/aw-core.git --user
pip3 install git+https://github.com/ActivityWatch/aw-client.git --user
skogsbrus commented 6 years ago

It doesn't seem to make a difference,

$ pip3 uninstall aw-core

``` Uninstalling aw-core-0.4.1: # [locations omitted] Successfully uninstalled aw-core-0.4.1 ```

$ pip3 list

``` aniso8601 (3.0.2) appdirs (1.4.3) apturl (0.5.2) asciinema (2.0.0) asn1crypto (0.24.0) Brlapi (0.6.6) certifi (2018.8.24) chardet (3.0.4) click (6.7) command-not-found (0.3) cryptography (2.1.4) cupshelpers (1.0) defer (1.0.6) distro-info (0.18) Flask (1.0.2) Flask-Cors (3.0.6) flask-restplus (0.11.0) greenlet (0.4.12) httplib2 (0.9.2) idna (2.7) iso8601 (0.1.12) itsdangerous (0.24) Jinja2 (2.10) jsonschema (2.6.0) keyring (10.6.0) keyrings.alt (3.0) language-selector (0.1) launchpadlib (1.10.6) lazr.restfulclient (0.13.5) lazr.uri (1.0.3) lightdm-gtk-greeter-settings (1.2.2) louis (3.5.0) macaroonbakery (1.1.3) Mako (1.0.7) MarkupSafe (1.0) msgpack (0.5.6) mypy (0.620) neovim (0.2.0) oauth (1.0.1) olefile (0.45.1) peewee (2.10.2) persist-queue (0.4.0) pexpect (4.2.1) Pillow (5.1.0) pip (9.0.1) protobuf (3.0.0) pycairo (1.16.2) pycrypto (2.6.1) pycups (1.9.73) pygobject (3.26.1) pymacaroons (0.13.0) pymongo (3.7.1) PyNaCl (1.1.2) PyQt5 (5.10.1) pyRFC3339 (1.0) python-apt (1.6.2) python-debian (0.1.32) python-json-logger (0.1.9) python-xlib (0.23) pytz (2018.5) PyUserInput (0.1.12) pywal (3.1.0) pyxdg (0.25) PyYAML (3.12) reportlab (3.4.0) requests (2.19.1) requests-unixsocket (0.1.5) scour (0.36) SecretStorage (2.3.1) setuptools (40.2.0) simplejson (3.13.2) sip (4.19.8) six (1.11.0) strict-rfc3339 (0.7) system-service (0.3) systemd-python (234) TakeTheTime (0.3) typed-ast (1.1.0) typing (3.6.6) ubuntu-drivers-common (0.0.0) ufw (0.35) unattended-upgrades (0.1) urllib3 (1.23) usb-creator (0.3.3) wadllib (1.3.2) wal-steam (1.2.5) Werkzeug (0.14.1) wheel (0.30.0) xkit (0.0.0) zope.interface (4.3.2) ```

$ pip3 install git+https://github.com/ActivityWatch/aw-core.git --user

``` Collecting git+https://github.com/ActivityWatch/aw-core.git Cloning https://github.com/ActivityWatch/aw-core.git to /tmp/pip-53i2g9nf-build Collecting jsonschema (from aw-core==0.4.1) Using cached https://files.pythonhosted.org/packages/77/de/47e35a97b2b05c2fadbec67d44cfcdcd09b8086951b331d82de90d2912da/jsonschema-2.6.0-py2.py3-none-any.whl Collecting peewee==2.* (from aw-core==0.4.1) Collecting strict-rfc3339 (from aw-core==0.4.1) Collecting appdirs>=1.4.0 (from aw-core==0.4.1) Using cached https://files.pythonhosted.org/packages/56/eb/810e700ed1349edde4cbdc1b2a21e28cdf115f9faf263f6bbf8447c1abf3/appdirs-1.4.3-py2.py3-none-any.whl Collecting iso8601 (from aw-core==0.4.1) Using cached https://files.pythonhosted.org/packages/ef/57/7162609dab394d38bbc7077b7ba0a6f10fb09d8b7701ea56fa1edc0c4345/iso8601-0.1.12-py2.py3-none-any.whl Collecting python-json-logger>=0.1.5 (from aw-core==0.4.1) Using cached https://files.pythonhosted.org/packages/3a/ed/2ba5a2dfce45fa67e0588dd6457b59ffdef7f1fdcd2c1152e085e3c9a726/python_json_logger-0.1.9-py2.py3-none-any.whl Collecting takethetime>=0.3.0 (from aw-core==0.4.1) Collecting setuptools (from python-json-logger>=0.1.5->aw-core==0.4.1) Using cached https://files.pythonhosted.org/packages/66/e8/570bb5ca88a8bcd2a1db9c6246bb66615750663ffaaeada95b04ffe74e12/setuptools-40.2.0-py2.py3-none-any.whl Collecting typing (from takethetime>=0.3.0->aw-core==0.4.1) Using cached https://files.pythonhosted.org/packages/4a/bd/eee1157fc2d8514970b345d69cb9975dcd1e42cd7e61146ed841f6e68309/typing-3.6.6-py3-none-any.whl Installing collected packages: jsonschema, peewee, strict-rfc3339, appdirs, iso8601, setuptools, python-json-logger, typing, takethetime, aw-core Running setup.py install for aw-core ... done Successfully installed appdirs-1.4.3 aw-core-0.4.1 iso8601-0.1.12 jsonschema-2.6.0 peewee-2.10.2 python-json-logger-0.1.9 setuptools-40.2.0 strict-rfc3339-0.7 takethetime-0.3 typing-3.6.6 ```

$ pip3 install git+https://github.com/ActivityWatch/aw-client.git --user

``` Collecting git+https://github.com/ActivityWatch/aw-client.git Cloning https://github.com/ActivityWatch/aw-client.git to /tmp/pip-36p2e08m-build Collecting aw-core (from aw-client==0.3) Could not find a version that satisfies the requirement aw-core (from aw-client==0.3) (from versions: ) No matching distribution found for aw-core (from aw-client==0.3) ```

ErikBjare commented 6 years ago
Could not find a version that satisfies the requirement aw_core (from aw-client==0.3) (from versions: )

That's really weird, it should say aw-core, not aw_core. Here is the error I get when installing aw-client in a clean venv without aw-core already installed:

↪ ➤➤➤ python3 -m venv venv_test
↪ ➤➤➤ source venv_test/bin/activate.fish
(venv_test) ↪ ➤➤➤ pip3 install ./aw-client
Processing ./aw-client
Collecting aw-core (from aw-client==0.3)
  Could not find a version that satisfies the requirement aw-core (from aw-client==0.3) (from versions: )
No matching distribution found for aw-core (from aw-client==0.3)
You are using pip version 10.0.1, however version 18.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

I can install both packages just fine in succession. Running Python 3.7.0 and pip 10.0.1, what are you running? (check with python3 -V && pip3 -V)

One thing that should work is to specify the -r requirements.txt argument, since it will then fetch aw-core from git.

(venv_test) ↪ ➤➤➤ pip3 install ./aw-client -r ./aw-client/requirements.txt
Processing ./aw-client
Collecting aw-core from git+https://github.com/ActivityWatch/aw-core.git@master#egg=aw-core (from -r ./aw-client/requirements.txt (line 1))
  Cloning https://github.com/ActivityWatch/aw-core.git (to revision master) to /tmp/pip-install-158y6pi_/aw-core
Collecting requests (from -r ./aw-client/requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/65/47/7e02164a2a3db50ed6d8a6ab1d6d60b69c4c3fdf57a284257925dfc12bda/requests-2.19.1-py2.py3-none-any.whl
Collecting persist-queue==0.3.5 (from -r ./aw-client/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/9e/ed/4eabf54fb37d066dc90a2ca005befb4b380516cb944d8c31b75a00fe017e/persist_queue-0.3.5-py2.py3-none-any.whl
Collecting jsonschema (from aw-core->-r ./aw-client/requirements.txt (line 1))
  Using cached https://files.pythonhosted.org/packages/77/de/47e35a97b2b05c2fadbec67d44cfcdcd09b8086951b331d82de90d2912da/jsonschema-2.6.0-py2.py3-none-any.whl
Collecting peewee==2.* (from aw-core->-r ./aw-client/requirements.txt (line 1))
  Using cached https://files.pythonhosted.org/packages/7a/bc/aafce76cae9362dccf70e35c16a6cc11d114ebb640bbb86d76255be5c0d6/peewee-2.10.2.tar.gz
Collecting strict-rfc3339 (from aw-core->-r ./aw-client/requirements.txt (line 1))
  Using cached https://files.pythonhosted.org/packages/56/e4/879ef1dbd6ddea1c77c0078cd59b503368b0456bcca7d063a870ca2119d3/strict-rfc3339-0.7.tar.gz
Collecting appdirs>=1.4.0 (from aw-core->-r ./aw-client/requirements.txt (line 1))
  Using cached https://files.pythonhosted.org/packages/56/eb/810e700ed1349edde4cbdc1b2a21e28cdf115f9faf263f6bbf8447c1abf3/appdirs-1.4.3-py2.py3-none-any.whl
Collecting iso8601 (from aw-core->-r ./aw-client/requirements.txt (line 1))
  Using cached https://files.pythonhosted.org/packages/ef/57/7162609dab394d38bbc7077b7ba0a6f10fb09d8b7701ea56fa1edc0c4345/iso8601-0.1.12-py2.py3-none-any.whl
Collecting python-json-logger>=0.1.5 (from aw-core->-r ./aw-client/requirements.txt (line 1))
  Using cached https://files.pythonhosted.org/packages/3a/ed/2ba5a2dfce45fa67e0588dd6457b59ffdef7f1fdcd2c1152e085e3c9a726/python_json_logger-0.1.9-py2.py3-none-any.whl
Collecting takethetime>=0.3.0 (from aw-core->-r ./aw-client/requirements.txt (line 1))
  Using cached https://files.pythonhosted.org/packages/ab/86/7afde9b4350c6efd2ea8848790544a936a3bdde0fbc015cbef1b04d08fc6/TakeTheTime-0.3.tar.gz
Collecting certifi>=2017.4.17 (from requests->-r ./aw-client/requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/df/f7/04fee6ac349e915b82171f8e23cee63644d83663b34c539f7a09aed18f9e/certifi-2018.8.24-py2.py3-none-any.whl
Collecting chardet<3.1.0,>=3.0.2 (from requests->-r ./aw-client/requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl
Collecting urllib3<1.24,>=1.21.1 (from requests->-r ./aw-client/requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/bd/c9/6fdd990019071a4a32a5e7cb78a1d92c53851ef4f56f62a3486e6a7d8ffb/urllib3-1.23-py2.py3-none-any.whl
Collecting idna<2.8,>=2.5 (from requests->-r ./aw-client/requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/4b/2a/0276479a4b3caeb8a8c1af2f8e4355746a97fab05a372e4a2c6a6b876165/idna-2.7-py2.py3-none-any.whl
Requirement already satisfied: setuptools in ./venv_test/lib/python3.7/site-packages (from python-json-logger>=0.1.5->aw-core->-r ./aw-client/requirements.txt (line 1)) (39.0.1)
Collecting typing (from takethetime>=0.3.0->aw-core->-r ./aw-client/requirements.txt (line 1))
  Using cached https://files.pythonhosted.org/packages/4a/bd/eee1157fc2d8514970b345d69cb9975dcd1e42cd7e61146ed841f6e68309/typing-3.6.6-py3-none-any.whl
Installing collected packages: jsonschema, peewee, strict-rfc3339, appdirs, iso8601, python-json-logger, typing, takethetime, aw-core, certifi, chardet, urllib3, idna, requests, persist-queue, aw-client
  Running setup.py install for peewee ... done
  Running setup.py install for strict-rfc3339 ... done
  Running setup.py install for takethetime ... done
  Running setup.py install for aw-core ... done
  Running setup.py install for aw-client ... done
Successfully installed appdirs-1.4.3 aw-client-0.3 aw-core-0.4.1 certifi-2018.8.24 chardet-3.0.4 idna-2.7 iso8601-0.1.12 jsonschema-2.6.0 peewee-2.10.2 persist-queue-0.3.5 python-json-logger-0.1.9 requests-2.19.1 strict-rfc3339-0.7 takethetime-0.3 typing-3.6.6 urllib3-1.23
You are using pip version 10.0.1, however version 18.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

Also I think the --user needs to go before the URL (i know that --editable has to), but not sure.

What does pip3 list show in full? What is printed by the pip3 uninstall aw-core? There must be something weird going on with an already installed package, I have no other explanation.

skogsbrus commented 6 years ago

I have the following versions:

Python 3.6.5
pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6)

aw_core seems to be a typo I made when removing/readding the requirement from aw-client/setup.py in a desperate attempt to get it working... Sorry about that.

Below are my results when trying different installation methods. aw-core/aw-client was (if installed) uninstalled from pip before each installation attempt. The first two fails for aw-client, but the third succeeds.

Installing from Github with --user flag

[I] ➜  ~ pip3 install --user git+https://github.com/ActivityWatch/aw-core.git
Collecting git+https://github.com/ActivityWatch/aw-core.git
  Cloning https://github.com/ActivityWatch/aw-core.git to /tmp/pip-mxy8wmqi-build
Collecting jsonschema (from aw-core==0.4.1)
  Using cached https://files.pythonhosted.org/packages/77/de/47e35a97b2b05c2fadbec67d44cfcdcd09b8086951b331d82de90d2912da/jsonschema-2.6.0-py2.py3-none-any.whl
Collecting peewee==2.* (from aw-core==0.4.1)
Collecting strict-rfc3339 (from aw-core==0.4.1)
Collecting appdirs>=1.4.0 (from aw-core==0.4.1)
  Using cached https://files.pythonhosted.org/packages/56/eb/810e700ed1349edde4cbdc1b2a21e28cdf115f9faf263f6bbf8447c1abf3/appdirs-1.4.3-py2.py3-none-any.whl
Collecting iso8601 (from aw-core==0.4.1)
  Using cached https://files.pythonhosted.org/packages/ef/57/7162609dab394d38bbc7077b7ba0a6f10fb09d8b7701ea56fa1edc0c4345/iso8601-0.1.12-py2.py3-none-any.whl
Collecting python-json-logger>=0.1.5 (from aw-core==0.4.1)
  Using cached https://files.pythonhosted.org/packages/3a/ed/2ba5a2dfce45fa67e0588dd6457b59ffdef7f1fdcd2c1152e085e3c9a726/python_json_logger-0.1.9-py2.py3-none-any.whl
Collecting takethetime>=0.3.0 (from aw-core==0.4.1)
Collecting setuptools (from python-json-logger>=0.1.5->aw-core==0.4.1)
  Using cached https://files.pythonhosted.org/packages/66/e8/570bb5ca88a8bcd2a1db9c6246bb66615750663ffaaeada95b04ffe74e12/setuptools-40.2.0-py2.py3-none-any.whl
Collecting typing (from takethetime>=0.3.0->aw-core==0.4.1)
  Using cached https://files.pythonhosted.org/packages/4a/bd/eee1157fc2d8514970b345d69cb9975dcd1e42cd7e61146ed841f6e68309/typing-3.6.6-py3-none-any.whl
Installing collected packages: jsonschema, peewee, strict-rfc3339, appdirs, iso8601, setuptools, python-json-logger, typing, takethetime, aw-core
  Running setup.py install for aw-core ... done
Successfully installed appdirs-1.4.3 aw-core-0.4.1 iso8601-0.1.12 jsonschema-2.6.0 peewee-2.10.2 python-json-logger-0.1.9 setuptools-40.2.0 strict-rfc3339-0.7 takethetime-0.3 typing-3.6.6
[I] ➜  ~ pip3 install --user git+https://github.com/ActivityWatch/aw-client.git
Collecting git+https://github.com/ActivityWatch/aw-client.git
  Cloning https://github.com/ActivityWatch/aw-client.git to /tmp/pip-bcoujctd-build
Collecting aw-core (from aw-client==0.3)
  Could not find a version that satisfies the requirement aw-core (from aw-client==0.3) (from versions: )
No matching distribution found for aw-core (from aw-client==0.3)
[I] ➜  ~ 

Installing from local source with --user --editable flag

[I] ➜  ~ cd programs/activitywatch/
[I] ➜  activitywatch git:(master) ✗ pip3 install --user --editable ./aw-core
Obtaining file:///home/johan/programs/activitywatch/aw-core
Collecting jsonschema (from aw-core==0.4.1)
  Using cached https://files.pythonhosted.org/packages/77/de/47e35a97b2b05c2fadbec67d44cfcdcd09b8086951b331d82de90d2912da/jsonschema-2.6.0-py2.py3-none-any.whl
Collecting peewee==2.* (from aw-core==0.4.1)
Collecting strict-rfc3339 (from aw-core==0.4.1)
Collecting appdirs>=1.4.0 (from aw-core==0.4.1)
  Using cached https://files.pythonhosted.org/packages/56/eb/810e700ed1349edde4cbdc1b2a21e28cdf115f9faf263f6bbf8447c1abf3/appdirs-1.4.3-py2.py3-none-any.whl
Collecting iso8601 (from aw-core==0.4.1)
  Using cached https://files.pythonhosted.org/packages/ef/57/7162609dab394d38bbc7077b7ba0a6f10fb09d8b7701ea56fa1edc0c4345/iso8601-0.1.12-py2.py3-none-any.whl
Collecting python-json-logger>=0.1.5 (from aw-core==0.4.1)
  Using cached https://files.pythonhosted.org/packages/3a/ed/2ba5a2dfce45fa67e0588dd6457b59ffdef7f1fdcd2c1152e085e3c9a726/python_json_logger-0.1.9-py2.py3-none-any.whl
Collecting takethetime>=0.3.0 (from aw-core==0.4.1)
Collecting setuptools (from python-json-logger>=0.1.5->aw-core==0.4.1)
  Using cached https://files.pythonhosted.org/packages/66/e8/570bb5ca88a8bcd2a1db9c6246bb66615750663ffaaeada95b04ffe74e12/setuptools-40.2.0-py2.py3-none-any.whl
Collecting typing (from takethetime>=0.3.0->aw-core==0.4.1)
  Using cached https://files.pythonhosted.org/packages/4a/bd/eee1157fc2d8514970b345d69cb9975dcd1e42cd7e61146ed841f6e68309/typing-3.6.6-py3-none-any.whl
Installing collected packages: jsonschema, peewee, strict-rfc3339, appdirs, iso8601, setuptools, python-json-logger, typing, takethetime, aw-core
  Running setup.py develop for aw-core
Successfully installed appdirs-1.4.3 aw-core iso8601-0.1.12 jsonschema-2.6.0 peewee-2.10.2 python-json-logger-0.1.9 setuptools-40.2.0 strict-rfc3339-0.7 takethetime-0.3 typing-3.6.6
[I] ➜  activitywatch git:(master) ✗ pip3 install --user --editable ./aw-client
Obtaining file:///home/johan/programs/activitywatch/aw-client
Collecting aw-core (from aw-client==0.3.1)
  Could not find a version that satisfies the requirement aw-core (from aw-client==0.3.1) (from versions: )
No matching distribution found for aw-core (from aw-client==0.3.1)
[I] ➜  activitywatch git:(master) ✗ 

Installing from aw-client from local source and aw-core from Github

[I] ➜  ~ cd programs/activitywatch/
[I] ➜  activitywatch git:(master) ✗ 
pip3 install --user --editable ./aw-client -r ./aw-client/requirements.txt
Obtaining file:///home/johan/programs/activitywatch/aw-client
Collecting aw-core from git+https://github.com/ActivityWatch/aw-core.git@master#egg=aw-core (from -r ./aw-client/requirements.txt (line 1))
  Cloning https://github.com/ActivityWatch/aw-core.git (to master) to /tmp/pip-build-tb32q888/aw-core
Collecting requests (from -r ./aw-client/requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/65/47/7e02164a2a3db50ed6d8a6ab1d6d60b69c4c3fdf57a284257925dfc12bda/requests-2.19.1-py2.py3-none-any.whl
Collecting persist-queue==0.3.5 (from -r ./aw-client/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/9e/ed/4eabf54fb37d066dc90a2ca005befb4b380516cb944d8c31b75a00fe017e/persist_queue-0.3.5-py2.py3-none-any.whl
Collecting jsonschema (from aw-core->-r ./aw-client/requirements.txt (line 1))
  Using cached https://files.pythonhosted.org/packages/77/de/47e35a97b2b05c2fadbec67d44cfcdcd09b8086951b331d82de90d2912da/jsonschema-2.6.0-py2.py3-none-any.whl
Collecting peewee==2.* (from aw-core->-r ./aw-client/requirements.txt (line 1))
Collecting strict-rfc3339 (from aw-core->-r ./aw-client/requirements.txt (line 1))
Collecting appdirs>=1.4.0 (from aw-core->-r ./aw-client/requirements.txt (line 1))
  Using cached https://files.pythonhosted.org/packages/56/eb/810e700ed1349edde4cbdc1b2a21e28cdf115f9faf263f6bbf8447c1abf3/appdirs-1.4.3-py2.py3-none-any.whl
Collecting iso8601 (from aw-core->-r ./aw-client/requirements.txt (line 1))
  Using cached https://files.pythonhosted.org/packages/ef/57/7162609dab394d38bbc7077b7ba0a6f10fb09d8b7701ea56fa1edc0c4345/iso8601-0.1.12-py2.py3-none-any.whl
Collecting python-json-logger>=0.1.5 (from aw-core->-r ./aw-client/requirements.txt (line 1))
  Using cached https://files.pythonhosted.org/packages/3a/ed/2ba5a2dfce45fa67e0588dd6457b59ffdef7f1fdcd2c1152e085e3c9a726/python_json_logger-0.1.9-py2.py3-none-any.whl
Collecting takethetime>=0.3.0 (from aw-core->-r ./aw-client/requirements.txt (line 1))
Collecting chardet<3.1.0,>=3.0.2 (from requests->-r ./aw-client/requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl
Collecting certifi>=2017.4.17 (from requests->-r ./aw-client/requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/df/f7/04fee6ac349e915b82171f8e23cee63644d83663b34c539f7a09aed18f9e/certifi-2018.8.24-py2.py3-none-any.whl
Collecting idna<2.8,>=2.5 (from requests->-r ./aw-client/requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/4b/2a/0276479a4b3caeb8a8c1af2f8e4355746a97fab05a372e4a2c6a6b876165/idna-2.7-py2.py3-none-any.whl
Collecting urllib3<1.24,>=1.21.1 (from requests->-r ./aw-client/requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/bd/c9/6fdd990019071a4a32a5e7cb78a1d92c53851ef4f56f62a3486e6a7d8ffb/urllib3-1.23-py2.py3-none-any.whl
Collecting setuptools (from python-json-logger>=0.1.5->aw-core->-r ./aw-client/requirements.txt (line 1))
  Using cached https://files.pythonhosted.org/packages/66/e8/570bb5ca88a8bcd2a1db9c6246bb66615750663ffaaeada95b04ffe74e12/setuptools-40.2.0-py2.py3-none-any.whl
Collecting typing (from takethetime>=0.3.0->aw-core->-r ./aw-client/requirements.txt (line 1))
  Using cached https://files.pythonhosted.org/packages/4a/bd/eee1157fc2d8514970b345d69cb9975dcd1e42cd7e61146ed841f6e68309/typing-3.6.6-py3-none-any.whl
Installing collected packages: jsonschema, peewee, strict-rfc3339, appdirs, iso8601, setuptools, python-json-logger, typing, takethetime, aw-core, chardet, certifi, idna, urllib3, requests, persist-queue, aw-client
  Running setup.py install for aw-core ... done
  Running setup.py develop for aw-client
Successfully installed appdirs-1.4.3 aw-client aw-core-0.4.1 certifi-2018.8.24 chardet-3.0.4 idna-2.7 iso8601-0.1.12 jsonschema-2.6.0 peewee-2.10.2 persist-queue-0.4.0 python-json-logger-0.1.9 requests-2.19.1 setuptools-40.2.0 strict-rfc3339-0.7 takethetime-0.3 typing-3.6.6 urllib3-1.23
[I] ➜  activitywatch git:(master) ✗ pip3 list
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
aniso8601 (3.0.2)
appdirs (1.4.3)
apturl (0.5.2)
asciinema (2.0.0)
asn1crypto (0.24.0)
aw-client (0.3.1, /home/johan/programs/activitywatch/aw-client)
aw-core (0.4.1)
Brlapi (0.6.6)
certifi (2018.8.24)
chardet (3.0.4)
click (6.7)
command-not-found (0.3)
cryptography (2.1.4)
cupshelpers (1.0)
defer (1.0.6)
distro-info (0.18)
Flask (1.0.2)
Flask-Cors (3.0.6)
flask-restplus (0.11.0)
greenlet (0.4.12)
httplib2 (0.9.2)
idna (2.7)
iso8601 (0.1.12)
itsdangerous (0.24)
Jinja2 (2.10)
jsonschema (2.6.0)
keyring (10.6.0)
keyrings.alt (3.0)
language-selector (0.1)
launchpadlib (1.10.6)
lazr.restfulclient (0.13.5)
lazr.uri (1.0.3)
lightdm-gtk-greeter-settings (1.2.2)
louis (3.5.0)
macaroonbakery (1.1.3)
Mako (1.0.7)
MarkupSafe (1.0)
msgpack (0.5.6)
mypy (0.620)
neovim (0.2.0)
oauth (1.0.1)
olefile (0.45.1)
peewee (2.10.2)
persist-queue (0.4.0)
pexpect (4.2.1)
Pillow (5.1.0)
pip (9.0.1)
protobuf (3.0.0)
pycairo (1.16.2)
pycrypto (2.6.1)
pycups (1.9.73)
pygobject (3.26.1)
pymacaroons (0.13.0)
pymongo (3.7.1)
PyNaCl (1.1.2)
PyQt5 (5.10.1)
pyRFC3339 (1.0)
python-apt (1.6.2)
python-debian (0.1.32)
python-json-logger (0.1.9)
python-xlib (0.23)
pytz (2018.5)
PyUserInput (0.1.12)
pywal (3.1.0)
pyxdg (0.25)
PyYAML (3.12)
reportlab (3.4.0)
requests (2.19.1)
requests-unixsocket (0.1.5)
scour (0.36)
SecretStorage (2.3.1)
setuptools (40.2.0)
simplejson (3.13.2)
sip (4.19.8)
six (1.11.0)
strict-rfc3339 (0.7)
system-service (0.3)
systemd-python (234)
TakeTheTime (0.3)
typed-ast (1.1.0)
typing (3.6.6)
ubuntu-drivers-common (0.0.0)
ufw (0.35)
unattended-upgrades (0.1)
urllib3 (1.23)
usb-creator (0.3.3)
wadllib (1.3.2)
wal-steam (1.2.5)
Werkzeug (0.14.1)
wheel (0.30.0)
xkit (0.0.0)
zope.interface (4.3.2)
[I] ➜  activitywatch git:(master) ✗  

As can be seen, the third installation attempt succeeds! But when starting nvim, the following error is thrown:

['Traceback (most recent call last):', '  File "/home/johan/.config/nvim/plugged/aw-watcher-vim/plugin/v
imwatcher.py", line 57, in <module>', '    main()', '  File "/home/johan/.config/nvim/plugged/aw-watcher
-vim/plugin/vimwatcher.py", line 53, in main', '    aw.heartbeat(bucketname, event, pulsetime=pulsetime,
 queued=True, commit_interval=3)', 'TypeError: heartbeat() got an unexpected keyword argument ''commit_i
nterval''', '']
Press ENTER or type command to continue

If I press Enter and then press any key (or click), the following error is thrown:

Error detected while processing function <SNR>20_Poke[1]..<SNR>20_Send:
line    4:
E900: Invalid channel id
Press ENTER or type command to continue

aw-watcher-vim was installed with vim-plug and shows up as an alternative in the editor tab in ActivityWatch's web UI, but with no data.

The following aw-related programs are running:

[I] ➜  ~ ps -A | grep aw
 2084 ?        00:00:01 aw-qt
 2225 ?        00:00:07 aw-server
 2227 ?        00:00:15 aw-watcher-afk
 2228 ?        00:00:05 aw-watcher-wind
[I] ➜  ~ 

My installation is built from source in a virtual environment.

Since the crash doesn't seem related to the installation issue, should I move this to a new issue?

Thanks for all the help :)

ErikBjare commented 6 years ago

Ah yes, I get the same issue heartbeat() got an unexpected keyword argument 'commit_interval'. That's for another issue though.

Np, nice you got it working :clap: