ActivityWatch / ActivityWatch/activitywatch

Aw window Watcher fail to run on Windows

未关闭
#1,095 7 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
platform: windows type: bug
主要语言
Python
星标
18.9k
派生
1k
平均合并
1 天 4 小时
30 天内合并 PR
28

描述

- [x] I am on the [latest](https://github.com/ActivityWatch/activitywatch/releases/latest) ActivityWatch version.
- [x] I have searched the issues of this repo and believe that this is not a duplicate.

- **OS name and version**: Windows 11 Home, Version: 23H2
- **ActivityWatch version**: v0.13.1

## Describe the bug
Module aw-window-watcher won't run.

## To Reproduce
Steps to reproduce the behavior, for example:
1. Go to C:\Users\\AppData\Local\Programs\ActivityWatch\aw-watcher-window
2. Click on aw-watcher-window.exe
4. See error

## Expected behavior
I expected it to work.

## Documentation
The following constantly repeats:
2024-08-16 09:45:39 [INFO ]: Connection to aw-server established by aw-watcher-window (aw_client.client:447)
2024-08-16 09:45:40 [ERROR]: Exception thrown while trying to get active window (aw_watcher_window.main:124)
Traceback (most recent call last):
File "aw_watcher_window\main.py", line 106, in heartbeat_loop
File "aw_watcher_window\lib.py", line 70, in get_current_window
File "aw_watcher_window\lib.py", line 39, in get_current_window_windows
File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
File "aw_watcher_window\windows.py", line 5, in
ImportError: DLL load failed while importing win32api: The specified procedure could not be found.
## Additional context
I've since installed python and pywin32 but no change. By the way I found data that it worked a year ago even though I didn't install this till yesterday.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。