Giter Club home page Giter Club logo

adventures_in_opencl's Issues

cll.h typo

part1/cll.h comment on line ~24 calls the destructor a constructor.

Site is down

'GLXPlatform' object has no attribute 'WGL'

I'm trying to execute the second Python example code (adventures_in_opencl / python / part2 / main.py), but I got an error:

Traceback (most recent call last):
  File "main.py", line 135, in <module>
    p2 = window()
  File "main.py", line 58, in __init__
    self.cle = part2.Part2(num, dt)
  File "/home/anka-rybalko/Downloads/adventures_in_opencl/python/part2/part2.py", line 15, in __init__
    self.clinit()
  File "/home/anka-rybalko/Downloads/adventures_in_opencl/python/part2/part2.py", line 89, in clinit
    + get_gl_sharing_context_properties(), devices=None)
  File "/usr/lib64/python2.7/site-packages/pyopencl-2014.1-py2.7-linux-x86_64.egg/pyopencl/tools.py", line 422, in get_gl_sharing_context_properties
    from OpenGL import platform as gl_platform, GLX, WGL
  File "/usr/lib/python2.7/site-packages/OpenGL/WGL/__init__.py", line 1, in <module>
    from OpenGL.raw.WGL.VERSION.WGL_1_0 import *
  File "/usr/lib/python2.7/site-packages/OpenGL/raw/WGL/VERSION/WGL_1_0.py", line 48, in <module>
    @_p.types(_cs.c_int,_cs.HDC,ctypes.POINTER(_cs.PIXELFORMATDESCRIPTOR))
  File "/usr/lib/python2.7/site-packages/OpenGL/raw/WGL/VERSION/WGL_1_0.py", line 13, in _f
    return _p.createFunction( function,_p.PLATFORM.WGL,'WGL_VERSION_WGL_1_0',error_checker=_errors._error_checker)
AttributeError: 'GLXPlatform' object has no attribute 'WGL'

Is it a problem of my PC or of the code? Could you tell how it can be fixed?
Thanks in advance!

P.S. I use OpenSUSE OS
P.P.S. Thank you for your tutorial, it's really helpful.

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.