nodebox / nodebox-opengl

Free, cross-platform library for generating 2D animations with Python programming code.
http://www.cityinabottle.org/nodebox/
BSD 3-Clause "New" or "Revised" License
170 stars 29 forks source link

OSX: ImportError: cannot import name pointer #8

Open graphific opened 9 years ago

graphific commented 9 years ago

"ImportError: cannot import name pointer" can be fixed with:

error: "NameError: global name 'c_uint' is not defined" can be fixed with:

techtonik commented 7 years ago

The same problem on Windows.

nodebox-gl-1.7\examples\01-basics>python.exe 01-rect.py
Traceback (most recent call last):
  File "01-rect.py", line 5, in <module>
    from nodebox.graphics import *
  File "..\..\nodebox\graphics\__init__.py", line 1, in <module>
    import bezier
  File "..\..\nodebox\graphics\bezier.py", line 10, in <module>
    from context import BezierPath, PathElement, PathError, Point, MOVETO, LINETO, CURVETO, CLOSE
  File "..\..\nodebox\graphics\context.py", line 29, in <module>
    import geometry
  File "..\..\nodebox\graphics\geometry.py", line 454, in <module>
    from pyglet.gl import \
ImportError: cannot import name pointer
techtonik commented 7 years ago

https://stackoverflow.com/questions/23435690/installing-nodeboxopengl-on-windows

techtonik commented 7 years ago

https://stackoverflow.com/questions/35730631/cannot-import-nodebox-graphics-on-python

karstenw commented 7 years ago

Try my fork: https://github.com/karstenw/nodebox-opengl

It runs nice on OSX with current Python2, current pyglet and is installable. Haven't tested it on win/linux.

vkopey commented 4 years ago

Try nodebox-opengl 1.6.1 + pyglet-1.3.3