fogleman / Minecraft

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

error #151

Closed JaydenStudio closed 4 months ago

JaydenStudio commented 1 year ago

Traceback (most recent call last): File "/media/jayden/My Passport/pygame/Minecraft/main.py", line 902, in main() File "/media/jayden/My Passport/pygame/Minecraft/main.py", line 897, in main setup() File "/media/jayden/My Passport/pygame/Minecraft/main.py", line 890, in setup setup_fog() File "/media/jayden/My Passport/pygame/Minecraft/main.py", line 861, in setup_fog glEnable(GL_FOG) NameError: name 'GL_FOG' is not defined

michaelboerman commented 1 year ago

Solution provided in #147; please try it and close this issue.

Python-Sargent commented 1 year ago

[RESOLVED ISSUE]

I got the same thing.

Traceback (most recent call last): File "C:\Users\Samuel\Documents\GitHub\Minecraft\main.py", line 902, in main() File "C:\Users\Samuel\Documents\GitHub\Minecraft\main.py", line 897, in main setup() File "C:\Users\Samuel\Documents\GitHub\Minecraft\main.py", line 890, in setup setup_fog() File "C:\Users\Samuel\Documents\GitHub\Minecraft\main.py", line 861, in setup_fog glEnable(GL_FOG) NameError: name 'GL_FOG' is not defined

must've gotten the wrong pyglet version.

trying to get the specified version gives:

ERROR: HTTP error 404 while getting https://pyglet.googlecode.com/files/pyglet-1.2alpha1.tar.gz ERROR: Could not install requirement https://pyglet.googlecode.com/files/pyglet-1.2alpha1.tar.gz because of HTTP error 404 Client Error: Not Found for url: https://pyglet.googlecode.com/files/pyglet-1.2alpha1.tar.gz for URL https://pyglet.googlecode.com/files/pyglet-1.2alpha1.tar.gz

there are two other ways to do this, mentioned in #147 both work.