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

Unable to run pyautogui scripts from remote headless server, I can run them fine from the linux machine #87

Closed
ghost opened this issue May 20, 2016 · 3 comments

Comments

@ghost
Copy link

ghost commented May 20, 2016

this is the output that I get when I try to run the script remotely:

qauser@sf-live-ep:~$ ./Automation2.sh
Traceback (most recent call last):
File "./createMalwarePolicyFtpDown.py", line 9, in
import pyautogui
File "/usr/local/lib/python3.4/dist-packages/pyautogui/init.py", line 81, in
import pyautogui._pyautogui_x11 as platformModule
File "/usr/local/lib/python3.4/dist-packages/pyautogui/_pyautogui_x11.py", line 153, in
_display = Display(None) # TODO - Display() can have other values passed to it. Implement that later.
File "/usr/local/lib/python3.4/dist-packages/Xlib/display.py", line 80, in init
self.display = BaseDisplay(display)
File "/usr/local/lib/python3.4/dist-packages/Xlib/display.py", line 62, in init
display.Display.init(
(self, ) + args, *_keys)
File "/usr/local/lib/python3.4/dist-packages/Xlib/protocol/display.py", line 53, in init
name, host, displayno, screenno = connect.get_display(display)
File "/usr/local/lib/python3.4/dist-packages/Xlib/support/connect.py", line 62, in get_display
return mod.get_display(display)
File "/usr/local/lib/python3.4/dist-packages/Xlib/support/unix_connect.py", line 47, in get_display
raise error.DisplayNameError(display)
Xlib.error.DisplayNameError: Bad display name ""

@thaffenden
Copy link

thaffenden commented Jun 29, 2016

Removed my previous comment, as comments on #54 suggest it's doable.

@dragon788
Copy link

@Malak33 This may be a duplicate of #54, I'd suggest copying you comments over there and closing this one to increase the "weight" of that issue.

@asweigart
Copy link
Owner

Currently PyAutoGUI doesn't support remote/headless machines. I've created a master issue #133 to track the development of this feature.

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

3 participants