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

Exception thrown while trying to get active window #742

Closed
2 tasks done
finnove opened this issue May 30, 2022 · 7 comments
Closed
2 tasks done

Exception thrown while trying to get active window #742

finnove opened this issue May 30, 2022 · 7 comments

Comments

@finnove
Copy link

finnove commented May 30, 2022

  • I am on the latest ActivityWatch version.

  • I have searched the issues of this repo and believe that this is not a duplicate.

  • OS name and version: macOS Monterey

  • ActivityWatch version: 0.12.0b2

Describe the bug

No data is gathered. I get a lot of exceptions in the log file. I have tried to add ActivityWatch to Accessibility in security, as requested in another thread. Does not help.
2022-05-30 11:46:32 [INFO ]: aw-watcher-window started (aw_watcher_window.main:50)
2022-05-30 11:46:33 [INFO ]: Connection to aw-server established by aw-watcher-window (aw_client.client:429)
2022-05-30 11:46:34 [ERROR]: Exception thrown while trying to get active window (aw_watcher_window.main:75)
Traceback (most recent call last):
File "aw_watcher_window/main.py", line 72, in heartbeat_loop
File "aw_watcher_window/lib.py", line 55, in get_current_window
File "aw_watcher_window/lib.py", line 27, in get_current_window_macos
File "aw_watcher_window/macos_jxa.py", line 64, in getInfo
Exception: jxa error: Error: Error: An error occurred.
2022-05-30 11:46:35 [ERROR]: Exception thrown while trying to get active window (aw_watcher_window.main:75)
Traceback (most recent call last):
File "aw_watcher_window/main.py", line 72, in heartbeat_loop
File "aw_watcher_window/lib.py", line 55, in get_current_window
File "aw_watcher_window/lib.py", line 27, in get_current_window_macos
File "aw_watcher_window/macos_jxa.py", line 64, in getInfo
Exception: jxa error: Error: Error: An error occurred.

To Reproduce

Consistent. Will not work.

Expected behavior

Installation should work without any special hacks or prior knowledge.

Documentation

Additional context

@github-actions
Copy link

Hi there!
As you're new to this repo, please make sure you've used an appropriate issue template and searched for duplicates (it helps us focus on actual development!). We'd also like to suggest that you read our contribution guidelines and our code of conduct.
Thanks a bunch for opening your first issue! 🙏

@msiwik-epruf
Copy link

Same bug on me.

@krlmlr
Copy link

krlmlr commented Sep 6, 2022

Is this the same as ActivityWatch/aw-watcher-window#60?

@finnove
Copy link
Author

finnove commented Sep 6, 2022

Different error message. Tried a new install. Does not work. Tried both brew and dmg. Is there any official steps beyond the basic install that we are missing?

@BelKed
Copy link
Contributor

BelKed commented Sep 6, 2022

I think this may help: #334 (comment)
(At least, in my case, it helped)

@ErikBjare
Copy link
Member

There's a fix in the works, see here: #334 (comment)

@finnove
Copy link
Author

finnove commented Oct 17, 2022

There's a fix in the works, see here: #334 (comment)

Thank you. Data is coming in now, using v0.12.1.

@finnove finnove closed this as completed Oct 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants