You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'
The text was updated successfully, but these errors were encountered:
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'
The text was updated successfully, but these errors were encountered: