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

Cannot even import the library if X11 is not available #893

Open
SamStephens opened this issue Nov 21, 2024 · 0 comments
Open

Cannot even import the library if X11 is not available #893

SamStephens opened this issue Nov 21, 2024 · 0 comments

Comments

@SamStephens
Copy link

I have an application that uses pyautogui that I've been asked to modify so that it doesn't use pyautogui for certain use cases where it's not required (getting more specific than this would be quite verbose).

The problem that I'm facing is import pyautogui fails with the error

XauthError: ~/.Xauthority: [Errno 2] No such file or directory: '/home/sam/.Xauthority'

if X11 is not available.

I'd argue this failure should not occur at import time; it should occur when attempts to actually use pyautogui functionality are made.

See also #111

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

No branches or pull requests

1 participant