Git Product home page Git Product logo

Comments (6)

ErikBjare avatar ErikBjare commented on June 4, 2024 1

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.

ErikBjare avatar ErikBjare commented on June 4, 2024 1

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.

nck974 avatar nck974 commented on June 4, 2024 1

@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.

nck974 avatar nck974 commented on June 4, 2024

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.

ErikBjare avatar ErikBjare commented on June 4, 2024

@nck974 That's okay. Thanks for being the first to test it out on Windows!

from aw-watcher-input.

ErikBjare avatar ErikBjare commented on June 4, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.