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

error while running pyautogui in pycharm in linux #170

Open
werewolf1011 opened this issue Jan 26, 2023 · 0 comments
Open

error while running pyautogui in pycharm in linux #170

werewolf1011 opened this issue Jan 26, 2023 · 0 comments

Comments

@werewolf1011
Copy link

werewolf1011 commented Jan 26, 2023

please help me solving this error i get while running pyautogui in pycharm in linux !!!

Traceback (most recent call last):
File "/home/werewolf/PycharmProjects/pythonProject1/main.py", line 1, in
import pyautogui
File "/usr/local/lib/python3.11/dist-packages/pyautogui/init.py", line 249, in
import mouseinfo
File "/usr/local/lib/python3.11/dist-packages/mouseinfo/init.py", line 223, in
_display = Display(os.environ['DISPLAY'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/Xlib/display.py", line 80, in init
self.display = _BaseDisplay(display)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/Xlib/display.py", line 62, in init
display.Display.init(*(self, ) + args, **keys)
File "/usr/local/lib/python3.11/dist-packages/Xlib/protocol/display.py", line 129, in init
raise error.DisplayConnectionError(self.display_name, r.reason)
Xlib.error.DisplayConnectionError: Can't connect to display ":1": b'Authorization required, but no authorization protocol specified\n'

Screenshot from 2023-01-26 15-00-22

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