win10安装ActivityWatch

版本

组件版本下载路径

QT

(实测可以不安装这个)

5.14.2https://download.qt.io/archive/qt/5.14/5.14.2/qt-opensource-windows-x86-5.14.2.exe
系统win10
Python3.6.6(64位)
ActivityWatch0.8.3Releases · ActivityWatch/activitywatch · GitHub

Python依赖

执行pip freeze > requirement.txt

导出我安装成功时的依赖如下:

altgraph==0.17.3
aniso8601==9.0.1
argon2-cffi==21.3.0
argon2-cffi-bindings==21.2.0
async-generator==1.10
attrs==22.1.0
backcall==0.2.0
beautifulsoup4==4.11.1
bleach==4.1.0
bs4==0.0.1
certifi==2022.9.24
cffi==1.15.1
charset-normalizer==2.0.12
click==7.1.2
colorama==0.4.5
dataclasses==0.8
decorator==5.1.1
defusedxml==0.7.1
entrypoints==0.4
Flask==2.0.3
flask-restplus==0.13.0
flask-swagger==0.2.14
flask-swagger-ui==4.11.1
idna==3.4
importlib-metadata==4.8.3
ipykernel==5.5.6
ipython==7.16.3
ipython-genutils==0.2.0
ipywidgets==7.7.2
itsdangerous==2.0.1
jedi==0.17.2
Jinja2==3.0.3
joblib==1.1.0
jsonschema==3.2.0
jupyter==1.0.0
jupyter-client==7.1.2
jupyter-console==6.4.3
jupyter-core==4.9.2
jupyterlab-pygments==0.1.2
jupyterlab-widgets==1.1.1
Markdown==3.3.7
MarkupSafe==2.0.1
mistune==0.8.4
nbclient==0.5.9
nbconvert==6.0.7
nbformat==5.1.3
nest-asyncio==1.5.6
notebook==6.4.10
numpy==1.19.5
packaging==21.3
pandas==1.1.5
pandocfilters==1.5.0
parso==0.7.1
pefile==2023.2.7
pickleshare==0.7.5
prometheus-client==0.15.0
prompt-toolkit==3.0.32
pycparser==2.21
Pygments==2.13.0
pyinstaller==4.10
pyinstaller-hooks-contrib==2022.0
pymongo==4.1.1
pyparsing==3.0.7
PyQt5==5.10.1
PyQt5-sip==12.9.1
pyrsistent==0.18.0
python-dateutil==2.8.2
python-dotenv==0.20.0
pytz==2022.6
pywin32==305
pywin32-ctypes==0.2.2
pywinpty==1.1.6
PyYAML==6.0
pyzmq==24.0.1
qt5-applications==5.15.2.2.2
qt5-tools==5.15.2.1.2
qtconsole==5.2.2
QtPy==2.0.1
qtwidgets==1.1
requests==2.27.1
scikit-learn==0.24.2
scipy==1.5.4
Send2Trash==1.8.0
sip==4.19.8
six==1.16.0
sklearn==0.0
soupsieve==2.3.2.post1
swagger-ui-bundle==0.0.9
swagger-ui-py==22.7.13
terminado==0.12.1
testpath==0.6.0
threadpoolctl==3.1.0
tornado==6.1
traitlets==4.3.3
typing_extensions==4.1.1
urllib3==1.26.12
wcwidth==0.2.5
webencodings==0.5.1
Werkzeug==2.0.3
widgetsnbextension==3.6.1
xlrd==2.0.1
xlwt==1.3.0
zipp==3.6.0

启动方式

①C:\Users\75374\AppData\Local\Programs\ActivityWatch\aw-qt.exe

http://localhost:5600/#/

③点击左上方的Activity

效果如下(下面的界面尝尝会处于loading状态而无法加载图形,显示为loading,只能F5不断刷新):

使用体验,从性能上来讲,感觉不如ManicTime,主要是因为底层是flask做的。

QT下载备注

版本下载链接
商用版本Download Qt: Get Qt Online Installer
gpl版本https://download.qt.io/

【1】中建议选择mingw的版本,安装的时候把mingw选上

我的下载路径是:

Index of /archive/qt/5.14/5.14.2

启动失败-调试举例

例子一

具体内容如下:

Traceback (most recent call last):
  File "aw_qt\__main__.py", line 3, in <module>
  File "click\core.py", line 1130, in __call__
  File "click\core.py", line 1055, in main
  File "click\core.py", line 1404, in invoke
  File "click\core.py", line 760, in invoke
  File "aw_qt\main.py", line 81, in main
  File "PyInstaller\loader\pyimod02_importers.py", line 499, in exec_module
  File "aw_qt\trayicon.py", line 11, in <module>
ImportError: DLL load failed while importing QtWidgets: 找不到指定的程序。

根据报错内容前往https://github.com/ActivityWatch/aw-qt

找到aw_qt/trayicon.py的第11行内容是:

from PyQt6.QtWidgets import (
    QApplication,
    QSystemTrayIcon,
    QMessageBox,
    QMenu,
    QWidget,
    QPushButton,
)

通过cmd命令行排查得到:
>>> from PyQt6 import QtCore
>>> from PyQt6.QtWidgets import *
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: DLL load failed while importing QtWidgets: 找不到指定的程序。
>>>

由此复现上述报错信息是因为试图导入PyQt6时的QtWidgets找不到。

可以直接在python交互模式中进行复现。

折腾一天了,没有进展,放弃。

Reference

【1】QT在官网怎么下载啊?只能下试用版吗【qt吧】_百度贴吧

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值