Hamza Khan
Hamza Khan

Reputation: 1481

_tkinter.TclError: couldn't connect to display "127.0.0.1:0.0"

I have written a Python Scraper with Selenium and in that I have to tackle the 2FA,so, I am prompting for the user input to get the code and move forward, everything is working smoothly in local machine and the whole script is executing correctly and providing the desired output.

Now, as I have deployed the Application to Ubuntu Server on Linode machine, the pymsgbox is not opening on the server and I am getting the following error,

couldn't connect to display "127.0.0.1:0.0"

I downloaded the library from the following command,

sudo apt-get install python3-tk

I have tried all the possible solutions whether that is on Stackoverflow, superuser, reddit, ASK etc but not working.

Please let me know if I am missing something.

Upvotes: 0

Views: 797

Answers (0)

Related Questions