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

AttributeError: 'DarwinPlatform' object has no attribute 'GLX' #17

Closed
CARASO opened this issue Sep 25, 2018 · 1 comment
Closed

AttributeError: 'DarwinPlatform' object has no attribute 'GLX' #17

CARASO opened this issue Sep 25, 2018 · 1 comment

Comments

@CARASO
Copy link

CARASO commented Sep 25, 2018

py27-num0-accel0 develop-inst-noop: /Users/huangjiewen/pyopengl
py27-num0-accel0 installed: atomicwrites==1.2.1,attrs==18.2.0,funcsigs==1.0.2,more-itertools==4.3.0,pathlib2==2.3.2,pluggy==0.7.1,py==1.6.0,pygame==1.9.4,-e git+https://github.com/mcfletch/pyopengl.git@beea4e5987aa5c0cb4c480961fbe5be5fae5a759#egg=PyOpenGL,pytest==3.8.1,scandir==1.9.0,six==1.11.0
py27-num0-accel0 run-test-pre: PYTHONHASHSEED='508435173'
py27-num0-accel0 runtests: commands[0] | pytest -sv tests/
======================================================================================================================== test session starts ========================================================================================================================
platform darwin -- Python 2.7.15, pytest-3.8.1, py-1.6.0, pluggy-0.7.1 -- /Users/huangjiewen/pyopengl/.tox/py27-num0-accel0/bin/python2.7
cachedir: .pytest_cache
rootdir: /Users/huangjiewen/pyopengl, inifile:
collecting 0 items pygame 1.9.4
Hello from the pygame community. https://www.pygame.org/contribute.html
INFO:OpenGL.acceleratesupport:No OpenGL_accelerate module loaded: No module named OpenGL_accelerate
collected 56 items / 1 errors

============================================================================================================================== ERRORS ===============================================================================================================================
_____________________________________________________________________________________________________________ ERROR collecting tests/test_glx_pygame.py _____________________________________________________________________________________________________________
tests/test_glx_pygame.py:5: in
from OpenGL.GLX import *
OpenGL/GLX/init.py:3: in
from OpenGL.GLX.VERSION.GLX_1_0 import *
OpenGL/GLX/VERSION/GLX_1_0.py:14: in
from OpenGL.raw.GLX.VERSION.GLX_1_0 import *
OpenGL/raw/GLX/VERSION/GLX_1_0.py:43: in
@_p.types(ctypes.POINTER(_cs.XVisualInfo),ctypes.POINTER(_cs.Display),_cs.c_int,ctypes.POINTER(_cs.c_int))
OpenGL/raw/GLX/VERSION/GLX_1_0.py:13: in _f
return _p.createFunction( function,_p.PLATFORM.GLX,'GLX_VERSION_GLX_1_0',error_checker=_errors._error_checker)
E AttributeError: 'DarwinPlatform' object has no attribute 'GLX'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
====================================================================================================================== 1 error in 1.68 seconds ======================================================================================================================
ERROR: InvocationError for command '/Users/huangjiewen/pyopengl/.tox/py27-num0-accel0/bin/pytest -sv tests/' (exited with code 2)

@mcfletch
Copy link
Owner

mcfletch commented Nov 5, 2018

So this particular test is a GLX-specific test. It should be marked as skipped for darwin platform.

@CARASO CARASO closed this as completed Nov 5, 2018
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

2 participants