Giter Site home page Giter Site logo

Comments (9)

rish-hyun avatar rish-hyun commented on July 22, 2024 13

I got the same error, I resolved by installing PyOpenGL

pip install PyOpenGL

And later imported these two statements

from OpenGL.GL import *
from OpenGL.GLU import *

Import and NameError are resolved but now I'm getting another error

raise GLException('(0x%x): %s' % (error, msg))
pyglet.gl.lib.GLException: (0x500): Invalid enum. An unacceptable value is specified for an enumerated argument.

I've downgraded to pyglet==1.5.27, and it's working! No need to install PyOpenGL

from minecraft.

rish-hyun avatar rish-hyun commented on July 22, 2024 2

I got the same error,
I resolved by installing PyOpenGL

pip install PyOpenGL

And later imported these two statements

from OpenGL.GL import *
from OpenGL.GLU import *

Import and NameError are resolved but now I'm getting another error

raise GLException('(0x%x): %s' % (error, msg))
pyglet.gl.lib.GLException: (0x500): Invalid enum. An unacceptable value is specified for an enumerated argument.

from minecraft.

michaelboerman avatar michaelboerman commented on July 22, 2024 1

I got the same error, I resolved by installing PyOpenGL

pip install PyOpenGL

And later imported these two statements

from OpenGL.GL import *
from OpenGL.GLU import *

Import and NameError are resolved but now I'm getting another error

raise GLException('(0x%x): %s' % (error, msg))
pyglet.gl.lib.GLException: (0x500): Invalid enum. An unacceptable value is specified for an enumerated argument.

I've downgraded to pyglet==1.5.27, and it's working! No need to install PyOpenGL

Thank you for posting your solution! Your steps worked for me.

For others downgrading pyglet, you can do so by running pip install pyglet==1.5.27

from minecraft.

iTSiolinux avatar iTSiolinux commented on July 22, 2024 1

i guess git pull the pyglet version in the how to run in the README.md add ' pip install pyglet==1.5.27 '

from minecraft.

captain-explain-wangrun-chn avatar captain-explain-wangrun-chn commented on July 22, 2024

me too

from minecraft.

dzx825 avatar dzx825 commented on July 22, 2024

me too

from minecraft.

Dada010101 avatar Dada010101 commented on July 22, 2024

me too...

from minecraft.

Sjxooooooooooooooooooooooooooo avatar Sjxooooooooooooooooooooooooooo commented on July 22, 2024

Me too.
I move it to my new laptop,but it got this error…
What can I do?

[Running] python -u "e:\Minecraft-master\main.py"
Traceback (most recent call last):
  File "e:\Minecraft-master\main.py", line 902, in <module>
    main()
  File "e:\Minecraft-master\main.py", line 897, in main
    setup()
  File "e:\Minecraft-master\main.py", line 890, in setup
    setup_fog()
  File "e:\Minecraft-master\main.py", line 861, in setup_fog
    glEnable(GL_FOG)
             ^^^^^^
NameError: name 'GL_FOG' is not defined

[Done] exited with code=1 in 0.776 seconds

from minecraft.

RequiemxOP avatar RequiemxOP commented on July 22, 2024

Screenshot 2024-04-08 120628

from minecraft.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.