activitywatch: JSONDecodeError during build or can't start downloaded zip

  • [ X ] I am on the latest ActivityWatch version.
  • [ X ] I have searched the issues of this repo and believe that this is not a duplicate.
  • OS name and version: Linux Mint 20.2 (Ubuntu 20.04 LTS based)
  • ActivityWatch version: don’t know - the very latest, from the source code / from the side

Describe the bug

I can’t start ZIP downloaded from the site, neither can compile the app.

To Reproduce

make build as per instruction from the site or ./aw-qt

Expected behavior

Documentation

$ ./aw-qt
[345866] mod is NULL - structTraceback (most recent call last):
  File "struct.py", line 14, in <module>
ImportError: cannot import name '_clearcache' from '_struct' (unknown location)
[345866] mod is NULL - pyimod02_archiveTraceback (most recent call last):
  File "PyInstaller/loader/pyimod02_archive.py", line 30, in <module>
ModuleNotFoundError: No module named 'struct'
[345866] mod is NULL - pyimod03_importersTraceback (most recent call last):
  File "PyInstaller/loader/pyimod03_importers.py", line 26, in <module>
ModuleNotFoundError: No module named 'pyimod02_archive'
Traceback (most recent call last):
  File "PyInstaller/loader/pyiboot01_bootstrap.py", line 17, in <module>
ModuleNotFoundError: No module named 'pyimod03_importers'
[345866] Failed to execute script pyiboot01_bootstrap

or

$ make build
if [ -e "aw-core/.git" ]; then \
	echo "Submodules seem to already be initialized, continuing..."; \
else \
	git submodule update --init --recursive; \
fi
Submodules seem to already be initialized, continuing...
pip install 'setuptools>49.1.1'
Requirement already satisfied: setuptools>49.1.1 in ./venv/lib/python3.8/site-packages (58.4.0)
make --directory=aw-core build
make[1]: Entering directory '/home/alex/Applications/activitywatch/aw-core'
poetry install
Installing dependencies from lock file

Package operations: 0 installs, 2 updates, 0 removals

  • Updating coverage (5.5 -> 6.0.2)
  • Updating python-json-logger (0.1.11 -> 2.0.2): Failed

  JSONDecodeError

  Expecting value: line 1 column 1 (char 0)

  at ~/.local/lib/python3.8/site-packages/simplejson/decoder.py:400 in raw_decode
      396│             if ord0 == 0xfeff:
      397│                 idx += 1
      398│             elif ord0 == 0xef and s[idx:idx + 3] == '\xef\xbb\xbf':
      399│                 idx += 3
    → 400│         return self.scan_once(s, idx=_w(s, idx).end())
      401│ 

make[1]: *** [Makefile:4: build] Error 1
make[1]: Leaving directory '/home/alex/Applications/activitywatch/aw-core'
make: *** [Makefile:30: build] Error 2

Additional context

Don’t know… my Linux installation seems to be pretty much normal, I suppose…

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 15 (6 by maintainers)

Most upvoted comments

And what about AppImage / Snap package then, that could be installed on any Linux distribution?

Same status as the deb, would be nice, but nobody is working on it.

And just out of curiosity, if you don’t mind sharing - what did you choose instead of Debian/Ubuntu based distribution and why? Anything you regret about since migration?

I switched to Arch a few years back. Liking the rolling release nature, the wiki, DIY approach, etc. Still run Debian/Ubuntu on servers. No regrets 😃