Build problem

Hello, trying to build form sources (on a Macbook/latest Catalina) using these instructions.

First got an error that this dependency is missing (referenced by poetry.lock and pyproject.toml).

Updated it to:

Then got this build error:
Getting this build error. Thoughts?

(venv) ➜ aw-watcher-afk git:(cf4168a) poetry install
Installing dependencies from lock file
Warning: The lock file is not up to date with the latest changes in pyproject.toml. You may be getting outdated dependencies. Run update to update them.


File is not a zip file

at ~/.pyenv/versions/3.7.9/lib/python3.7/ in _RealGetContents
1321│ endrec = _EndRecData(fp)
1322│ except OSError:
1323│ raise BadZipFile(“File is not a zip file”)
1324│ if not endrec:
→ 1325│ raise BadZipFile(“File is not a zip file”)
1326│ if self.debug > 1:
1327│ print(endrec)
1328│ size_cd = endrec[_ECD_SIZE] # bytes in central directory
1329│ offset_cd = endrec[_ECD_OFFSET] # offset of central directory

It’s quite hard to figure out what’s wrong since the message doesn’t say which zip file it fails to read, only that some zip file failed to be read.

One thing that is quite odd though is that it fails when trying to download the pyHook files as you say that you are running macOS but that dependency is only for windows. Rather than changing that dependency i would look into finding out why it’s being downloaded, or temporarily just removing it from poetry.toml

Thanks for the feedback. I do want to build it on Windows at some point but for now removed that dependency. Then I got this error:

Installing the current project: aw-watcher-afk (0.2.0)
make --directory=aw-watcher-window build
poetry install
Installing dependencies from lock file


  Because aw-client (0.3.1 git rev master) depends on click (^7.1.1) which doesn't match any versions, aw-client is forbidden.
  So, because aw-watcher-window depends on aw-client (0.3.1 git branch master), version solving failed.

  at ~/git/ot/activitywatch/venv/lib/python3.7/site-packages/poetry/puzzle/ in _solve
      237│             packages = result.packages
      238│         except OverrideNeeded as e:
      239│             return self.solve_in_compatibility_mode(e.overrides, use_latest=use_latest)
      240│         except SolveFailure as e:
    → 241│             raise SolverProblemError(e)
      243│         results = dict(
      244│             depth_first_search(
      245│                 PackageNode(self._package, packages), aggregate_package_nodes
make[1]: *** [build] Error 1
make: *** [build] Error 2
(venv) ➜  activitywatch git:(master)

Pulled the latest code today and it’s building now and not giving that error about We can consider this closed. Thanks.

1 Like