fogleman / Minecraft

Simple Minecraft-inspired program using Python and Pyglet
MIT License
5.22k stars 1.23k forks source link

Error in getdisplay method. #68

Closed Patil-Sagar closed 8 years ago

Patil-Sagar commented 8 years ago

Getting this error: pyglet.canvas.xlib.NoSuchDisplayException: Cannot connect to "None"

fogleman commented 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

progval commented 8 years ago

It means you don't have a X server running / the script cannot set it.

Patil-Sagar commented 8 years ago

No I am using normal ubuntu 14.0 VM How can I solve this problem ? Suggestions are welcomed.

progval commented 8 years ago

How do you run this script?

Patil-Sagar commented 8 years ago

python main.py

Patil-Sagar commented 8 years ago

As per the commands specified

progval commented 8 years ago

In a X terminal? A tty?

progval commented 8 years ago

Or through ssh?

Patil-Sagar commented 8 years ago

on a ubuntu Vm using putty

progval commented 8 years ago

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

progval commented 8 years ago

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)