New code update from aw-watcher-afk issue when build

Hi,

New code update from aw-watcher-afk, makes my application cannot build and makes more problem.
Kindly need your help to fix it, this is the error when I build.

[BadZipFile]
File is not a zip file
make[1]: *** [Makefile:4: build] Error 1
make[1]: Leaving directory 'C:/cygwin64/home/Administrator/activitywatch/aw-watcher-afk'
make: *** [Makefile:36: build] Error 2

Appreciate your help on this matter. thank you!

I’ve never seen this error before and have no idea what could cause it. Can you show the full output of the make build command? (I’d expect a stacktrace)

Hi, even the latest code. I have the same problem, cannot resolve it.

make[1]: Entering directory 'C:/cygwin64/home/Administrator/activitywatch/aw-watcher-afk'
poetry install
Updating dependencies
Resolving dependencies... (1.9s)

[BadZipFile]
File is not a zip file
make[1]: *** [Makefile:4: build] Error 1
make[1]: Leaving directory 'C:/cygwin64/home/Administrator/activitywatch/aw-watcher-afk'
make: *** [Makefile:36: build] Error 2

Appreciate your help on this matter. Thanks!

Make sure you have the latest version of poetry installed and try running poetry cache clear.

$ make build
make --directory=aw-core build
make[1]: Entering directory 'C:/cygwin64/home/Administrator/activitywatch/aw-core'
poetry install
Installing dependencies from lock file

No dependencies to install or update

  - Installing aw-core (0.4.2)
make[1]: Leaving directory 'C:/cygwin64/home/Administrator/activitywatch/aw-core'
make --directory=aw-client build
make[1]: Entering directory 'C:/cygwin64/home/Administrator/activitywatch/aw-client'
poetry install
Installing dependencies from lock file

No dependencies to install or update

  - Installing aw-client (0.3.1)
make[1]: Leaving directory 'C:/cygwin64/home/Administrator/activitywatch/aw-client'
make --directory=aw-watcher-afk build
make[1]: Entering directory 'C:/cygwin64/home/Administrator/activitywatch/aw-watcher-afk'
poetry install
Updating dependencies
Resolving dependencies... (2.0s)

[BadZipFile]
File is not a zip file
make[1]: *** [Makefile:4: build] Error 1
make[1]: Leaving directory 'C:/cygwin64/home/Administrator/activitywatch/aw-watcher-afk'
make: *** [Makefile:36: build] Error 2

Hi, this is the full output of the make build command. thanks!

And did you update poetry and run poetry cache clear like I said?

Hi, this is the result of the cache clear and poetry version installed.

$ poetry cache clear cache --all
No cache entries for cache

Poetry version already updated
$ poetry --version
Poetry version 1.1.4

Thank you!

Hi, anyone can help on this?

Thank you!

Your call to poetry cache clear did not do anything as there is no cache named “cache” which you specified.

I think the poetry cache command is very confusing, see this github issue: https://github.com/python-poetry/poetry/issues/521

poetry cache clear --all . might work.