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
Using iPython Notebook on OSX Yosemite to test pyatom - <atomac.AXClasses.NativeUIElement <No role!> ''> #132
Comments
I'm also seeing the same issue when i run the script from the remote terminal using plink, but not when i ran it locally. |
Also getting this in El Capitan......... it was working fine in Yosemite |
Ok got it fixed by adding Terminal (or iTerm, the one I use) to the Accesibility app list. I forgot about that |
Even I have added my app to the Accessibility app list, I still met this issue: <atomac.AXClasses.NativeUIElement <No role!> ''> |
If you were using an embedded terminal of an application other than "Terminal.app" you have to add that to accessibility as well. I was using Coda2 and not everything works. |
Thanks a lot!
…--
发自我的网易邮箱手机智能版
在 2017-01-18 05:01:22,Ralph <notifications@github.com> 写道:
If you was using an embedded terminal of an application other than "Terminal.app" you have to add that to accessibility as well. I was using Coda2 and not everything works.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
No problem :D |
The cleanest way to handle this is to check for accessibility permissions in your script, and prompt the user to grant permissions if they're not found:
This will pop up an OS dialog box to open settings and grant permissions to the appropriate app. Objc code is via the pyobjc mailing list. |
I am getting this error when I try to run atomac.getAppRefByBundleId('net.app.app'):
<atomac.AXClasses.NativeUIElement <No role!> ''>
I believe it is because of Yosemite's OSX Accessibility settings/permissions. I tried adding Chrome and terminal to the "Allow the apps to control your computer" section of Security & Privacy but no luck.
Anyone know which application I need to approve in order to get iPython Notebook to work?
The text was updated successfully, but these errors were encountered: