ompl / ompl

The Open Motion Planning Library (OMPL)
https://ompl.kavrakilab.org
Other
1.48k stars 591 forks source link

Problem with ompl_app.py #180

Closed mamoll closed 10 years ago

mamoll commented 10 years ago

Original report by Anonymous.


Hi

I can't start the gui using "python ompl_app.py". The error is:

No handlers could be found for logger "OpenGL.arrays.numpymodule"
Traceback (most recent call last):
  File "ompl_app.py", line 28, in <module>
    from OpenGL import GL, GLU
  File "/usr/lib/pymodules/python2.7/OpenGL/GL/__init__.py", line 3, in <module>
    from OpenGL.raw.GL.annotations import *
  File "/usr/lib/pymodules/python2.7/OpenGL/raw/GL/annotations.py", line 40, in <module>
    'v',
  File "/usr/lib/pymodules/python2.7/OpenGL/arrays/arrayhelpers.py", line 177, in setInputArraySizeType
    function.setPyConverter( argName, asArrayTypeSize(type, size) )
  File "arraydatatype.pyx", line 393, in OpenGL_accelerate.arraydatatype.AsArrayTypedSizeChecked.__init__ (src/arraydatatype.c:7688)
AttributeError: 'module' object has no attribute 'sizeof'
mamoll commented 10 years ago

Original comment by Mark Moll (Bitbucket: mamoll, GitHub: mamoll).


Your Py-OpenGL installation is probably broken. From http://matthew-4gl.wikispaces.com/python_modules:

If you encounter the following:

No handlers could be found for logger OpenGL.arrays.numpymodule

Place the following code at the beginning of your Python program

import logging
logging.basicConfig()
mamoll commented 10 years ago

Original comment by Fran Marquez (Bitbucket: framarbon, GitHub: framarbon).


Hi again! I did it, and I have a new error. I use Ubuntu 12.04 WARNING:OpenGL.arrays.numpymodule:Unable to load numpy_formathandler accelerator from OpenGL_accelerate Traceback (most recent call last): File "ompl_app.py", line 31, in from OpenGL import GL, GLU File "/usr/lib/pymodules/python2.7/OpenGL/GL/init.py", line 3, in from OpenGL.raw.GL.annotations import * File "/usr/lib/pymodules/python2.7/OpenGL/raw/GL/annotations.py", line 40, in 'v', File "/usr/lib/pymodules/python2.7/OpenGL/arrays/arrayhelpers.py", line 177, in setInputArraySizeType function.setPyConverter( argName, asArrayTypeSize(type, size) ) File "arraydatatype.pyx", line 393, in OpenGL_accelerate.arraydatatype.AsArrayTypedSizeChecked.init (src/arraydatatype.c:7688) AttributeError: 'module' object has no attribute 'sizeof'

mamoll commented 10 years ago

Original comment by Mark Moll (Bitbucket: mamoll, GitHub: mamoll).


This is not an error in OMPL.app but in PyOpenGL. Please check the URL I mentioned.

mamoll commented 10 years ago

Original comment by Mark Moll (Bitbucket: mamoll, GitHub: mamoll).


Issue #66 was marked as a duplicate of this issue.