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

Xlib.error.DisplayConnectionError: Can't connect to display ":0": b'No protocol specified\n' #347

Open
Charles4500 opened this issue Nov 17, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Charles4500
Copy link

Description

A Clear and Concise Description of the Bug

To Reproduce

Steps to Reproduce the Bug

Screenshots

If applicable, add Screenshots to help explain your Problem

Version Information

  • OS: [e.g. Windows 10]
  • Browser: [e.g. Microsoft Edge, Google Chrome]
  • Python: [e.g. 3.10.1]
  • PyWhatKit: [e.g. 5.3]

You can Check the PyWhatKit Version using

print(pywhatkit.__VERSION__)
@Charles4500 Charles4500 added the bug Something isn't working label Nov 17, 2024
@Charles4500
Copy link
Author

So i encountered this error :

Xlib.error.DisplayConnectionError: Can't connect to display ":0": b'No protocol specified\n'

So for the guys using the linux distros, ubuntu to be specific they can just run:

xhost + on the terminal

Then run:
sudo apt-get install python3-tk python3-dev

So this will solve this error Xlib.error.DisplayConnectionError: Can't connect to display ":0": b'No protocol specified\n'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant