Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSX: ImportError: cannot import name pointer #8

Open
graphific opened this issue Apr 27, 2015 · 5 comments
Open

OSX: ImportError: cannot import name pointer #8

graphific opened this issue Apr 27, 2015 · 5 comments

Comments

@graphific
Copy link

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

  • edit nodebox/graphics/geometry.py:
    delete "pointer" import and change "pointer(data)" to "POINTER(data)"

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

  • edit nodebox/graphics/shaders.py:
    add "from ctypes import c_uint"
@techtonik
Copy link

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
Copy link

@karstenw
Copy link

karstenw commented Jul 8, 2017

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
Copy link

vkopey commented Feb 23, 2020

Try nodebox-opengl 1.6.1 + pyglet-1.3.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants