Open gitagogaming opened 2 years ago
This may be an issue in the future for other Linux Machines so I figured I would mention now.
[root@fedora SystemTools]# cd /home/hp-laptop/Downloads/WinTools-Dev/SystemTools ; /usr/bin/env /bin/python /home/hp-laptop/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/lib/python/debugpy/adapter/../../debugpy/launcher 34737 -- /home/hp-laptop/Downloads/WinTools-Dev/SystemTools/main.py Traceback (most recent call last): File "/home/hp-laptop/Downloads/WinTools-Dev/SystemTools/main.py", line 8, in <module> import pyautogui File "/usr/local/lib/python3.10/site-packages/pyautogui/__init__.py", line 249, in <module> import mouseinfo File "/usr/local/lib/python3.10/site-packages/mouseinfo/__init__.py", line 223, in <module> _display = Display(os.environ['DISPLAY']) File "/usr/local/lib/python3.10/site-packages/Xlib/display.py", line 89, in __init__ self.display = _BaseDisplay(display) File "/usr/local/lib/python3.10/site-packages/Xlib/display.py", line 71, in __init__ protocol_display.Display.__init__(self, *args, **keys) File "/usr/local/lib/python3.10/site-packages/Xlib/protocol/display.py", line 166, in __init__ raise error.DisplayConnectionError(self.display_name, r.reason) Xlib.error.DisplayConnectionError: Can't connect to display ":10.0": b'No protocol specified\n'
I was able to resolve this by running xhost +local 127.0.0.0 inside the terminal details
xhost +local 127.0.0.0
This may be an issue in the future for other Linux Machines so I figured I would mention now.
I was able to resolve this by running
xhost +local 127.0.0.0
inside the terminal details