Search code examples
pythontensorflowgoogle-colaboratoryyoloxserver

Cannot connect to X server in Google Colab


I have tried running this python file: detectvideo_counter.py

However, the python file does not completely run and gives this output:

: cannot connect to X server

I have tried the suggestions from this link

However, I still had no luck.

Could you please tell me how to solve this (other than running it locally)?


Solution

  • Posting answer here for the benefit of the community, since the user has already solved the issue.

    This program can be run locally by changing the Tensorflow version to 2.2.0.
    However, it is not possible to run this on colab due to one of the reasons listed in this post.
    You can find the error details from this GitHub link.