Comments (6)
The module missing is pyuserinput (which contains pykeyboard), you can try installing it in the venv with poetry run pip install pyuserinput
.
It's not being installed since aw-watcher-afk doesn't require it on Windows (it uses another approach for AFK detection), but aw-watcher-input needs it on all platforms to function, so it should probably be added to the dependencies. I'll look into it.
from aw-watcher-input.
That's an issue with PyHook/PyWinHook which doesn't have any Python 3.9 compatible version on PyPI. See these lines in aw-watcher-afk: https://github.com/ActivityWatch/aw-watcher-afk/blob/9fc0e788e89e0982065d04e96dcf2abb5a44aa83/pyproject.toml#L18-L19
Try using Python 3.8 instead.
I also updated the pyproject.toml in 3f88423, so pyuserinput should now be installed correctly on poetry install
.
from aw-watcher-input.
@ErikBjare thank your for your help, unfortunately I think I can not further test the project, as I am not really familiar with handling multiple versions of python as I just installed my python with chocolatey and I need python 3.9 for other project.
I really appreaciate your time anyway.
from aw-watcher-input.
Thanks, thant worked, but again I have a new one:
PS C:\Users\myuser\activity_monitor\aw-watcher-input> poetry run aw-watcher-input
INFO:aw_watcher_input.main:Starting watcher...
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\myuser\AppData\Local\pypoetry\Cache\virtualenvs\aw-watcher-input-SuTwwcev-py3.9\lib\site-packages\click\core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "C:\Users\myuser\AppData\Local\pypoetry\Cache\virtualenvs\aw-watcher-input-SuTwwcev-py3.9\lib\site-packages\click\core.py", line 782, in main
rv = self.invoke(ctx)
File "C:\Users\myuser\AppData\Local\pypoetry\Cache\virtualenvs\aw-watcher-input-SuTwwcev-py3.9\lib\site-packages\click\core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Users\myuser\AppData\Local\pypoetry\Cache\virtualenvs\aw-watcher-input-SuTwwcev-py3.9\lib\site-packages\click\core.py", line 610, in invoke
return callback(*args, **kwargs)
File "C:\Users\myuser\activity_monitor\aw-watcher-input\src\aw_watcher_input\main.py", line 27, in main
keyboard = KeyboardListener()
File "C:\Users\myuser\AppData\Local\pypoetry\Cache\virtualenvs\aw-watcher-input-SuTwwcev-py3.9\lib\site-packages\aw_watcher_afk\listeners.py", line 23, in __init__
PyKeyboardEvent.__init__(self)
File "C:\Users\myuser\AppData\Local\pypoetry\Cache\virtualenvs\aw-watcher-input-SuTwwcev-py3.9\lib\site-packages\pykeyboard\windows.py", line 232, in __init__
import pyHook
ModuleNotFoundError: No module named 'pyHook'
PS C:\Users\myuser\activity_monitor\aw-watcher-input> poetry run pip install pyHook
ERROR: Could not find a version that satisfies the requirement pyHook
ERROR: No matching distribution found for pyHook
from aw-watcher-input.
@nck974 That's okay. Thanks for being the first to test it out on Windows!
from aw-watcher-input.
The switch to pynput was completed in a232b68.
Should work on Windows now, but let me know if it doesn't!
from aw-watcher-input.
Related Issues (20)
- Bucket not created HOT 5
- Where is the data stored? HOT 1
- visualization doesnt work HOT 13
- Holding a key leads to repeat presses
- ModuleNotFoundError: No module named 'setuptools'
- Exec Format error for aw-watcher-input.spec file
- No input HOT 1
- Add barchart visualization of clicks & presses using Chart.js
- Solving rendering delay in timeline
- python 3.11
- Wayland HOT 2
- Error starting the watcher HOT 2
- Where is the "dist" folder? HOT 3
- jsonschema-specifications File Not Found HOT 1
- Data from this watcher doesn't show up as a bucket in the web UI HOT 1
- How can you connect aw-watcher-input wth activity watcher? HOT 6
- poetry problem HOT 2
- How to install? HOT 1
- Activity not showing in Raw Data tab HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aw-watcher-input.