Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Recording.task_description; recording.py types and documentation #16

Merged
merged 1 commit into from
Apr 17, 2023

Conversation

abrichr
Copy link
Member

@abrichr abrichr commented Apr 17, 2023

Implements #4.

@abrichr
Copy link
Member Author

abrichr commented Apr 17, 2023

Current generates the following exception:

2023-04-17 13:30:20.293 | INFO     | __main__:read_window_events:389 - starting
2023-04-17 13:30:20.298 | INFO     | __main__:read_screen_events:360 - starting
Exception in thread Thread-5 (read_mouse_events):
Traceback (most recent call last):
  File "/usr/local/Cellar/python@3.10/3.10.11/Frameworks/Python.framework/Versions/3.10/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
2023-04-17 13:30:20.303 | INFO     | __main__:process_events:91 - starting
    self.run()
  File "/usr/local/Cellar/python@3.10/3.10.11/Frameworks/Python.framework/Versions/3.10/lib/python3.10/threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
  File "/Users/abrichr/MLDSAI/src/puterbot/puterbot/record.py", line 562, in read_mouse_events
    mouse_listener = mouse.Listener(
  File "/Users/abrichr/MLDSAI/src/puterbot/.venv/lib/python3.10/site-packages/pynput/mouse/_darwin.py", line 170, in __init__
    super(Listener, self).__init__(*args, **kwargs)
  File "/Users/abrichr/MLDSAI/src/puterbot/.venv/lib/python3.10/site-packages/pynput/mouse/_base.py", line 271, in __init__
    on_move=self._wrap(on_move, 3),
  File "/Users/abrichr/MLDSAI/src/puterbot/.venv/lib/python3.10/site-packages/pynput/_util/__init__.py", line 283, in _wrap
    argspec = inspect.getargspec(f)
  File "/usr/local/Cellar/python@3.10/3.10.11/Frameworks/Python.framework/Versions/3.10/lib/python3.10/inspect.py", line 1237, in getargspec
    raise ValueError("Function has keyword-only parameters or annotations"
ValueError: Function has keyword-only parameters or annotations, use inspect.signature() API which can support them

@abrichr
Copy link
Member Author

abrichr commented Apr 17, 2023

Fixed in OpenAdaptAI/pynput@5d72567

@abrichr abrichr merged commit 0325fc3 into main Apr 17, 2023
@abrichr abrichr deleted the feat/task_description branch April 17, 2023 23:06
R-ohit-B-isht pushed a commit to R-ohit-B-isht/OpenAdapt that referenced this pull request Jun 21, 2024
add Recording.task_description; recording.py types and documentation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants