Git Product home page Git Product logo

Comments (7)

adamlwgriffiths avatar adamlwgriffiths commented on May 27, 2024

This looks like a PyOpenGL issue.
The only OMGL code that has been run is the import from OpenGL import GL.
If you open up a python REPL and just enter in that import, I'm sure you'll see the same error.
The last time I ran the code I didn't have any issues, so it looks like they've broken something.
I'd raise an issue, although they seem to use sourceforge..... for some god-forsaken reason.

You could try an older version:
https://pypi.python.org/pypi/PyOpenGL

Alternatively, you could try this code I found to disable their error checking code:

import OpenGL
OpenGL.ERROR_CHECKING = False

from omgl.

stuaxo avatar stuaxo commented on May 27, 2024

I had a fiddle around and got to an error about sub_mesh being missing

$ python examples/mesh.py 
Traceback (most recent call last):
  File "examples/mesh.py", line 37, in <module>
    from omgl.mesh import Mesh
  File "examples/../omgl/mesh/__init__.py", line 5, in <module>
    from .sub_mesh import *
ImportError: No module named sub_mesh

Indeed there is no mesh/sub_mesh.py

I'm still going to try and break it in the original way again to see if I can track down whats happening there.

from omgl.

adamlwgriffiths avatar adamlwgriffiths commented on May 27, 2024

Ah yes, the old "still works because of lingering .pyc files", my nemesis.

from omgl.

adamlwgriffiths avatar adamlwgriffiths commented on May 27, 2024

Removed invalid import in 5c64cf1

from omgl.

adamlwgriffiths avatar adamlwgriffiths commented on May 27, 2024

I just did a fresh install from pypi of all dependencies and have no trouble running OMGL examples running Python 2.7 on OS-X.

from omgl.

adamlwgriffiths avatar adamlwgriffiths commented on May 27, 2024

Assuming closed

from omgl.

stuaxo avatar stuaxo commented on May 27, 2024

Confirming this works, cheers :)

from omgl.

Related Issues (4)

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.