Ankit404butfound / PyWhatKit

Send WhatsApp message at certain time and many other things.
MIT License
1.37k stars 299 forks source link

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

Open Charles4500 opened 2 hours ago

Charles4500 commented 2 hours ago

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

You can Check the PyWhatKit Version using

print(pywhatkit.__VERSION__)
Charles4500 commented 2 hours ago

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'