Closed Patil-Sagar closed 8 years ago
This is an issue with Pyglet, not the Minecraft code.
Are you using a Raspberry Pi?
https://www.raspberrypi.org/forums/viewtopic.php?t=126421&p=846548
It means you don't have a X server running / the script cannot set it.
No I am using normal ubuntu 14.0 VM How can I solve this problem ? Suggestions are welcomed.
How do you run this script?
python main.py
As per the commands specified
In a X terminal? A tty?
Or through ssh?
on a ubuntu Vm using putty
So you connect to the VM using Putty?
Try this: http://zr6aic.blogspot.fr/2013/09/how-to-setup-putty-to-do-x-forwarding.html
But I suggest you run the game directly in the VM instead of running it through SSH, you will get way better performances. (Putty is a SSH client)
Getting this error: pyglet.canvas.xlib.NoSuchDisplayException: Cannot connect to "None"