[visionegg] Re: error: OpenGL.ctypes

Hi Andrew,

If I double click I see the Python console to show up for a sec and then 
nothing. This is the reason to write the code in the console mode, so I can 
track the point at which I get an error. So far I`m stacked at the import _vegl
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> ImportError: No module named _veglDoes this mean that the VisionEgg is 
> incompatible with win32? 

Iliya

--- On Sat, 2/14/09, Andrew Straw <astraw@xxxxxxxxxxx> wrote:
From: Andrew Straw <astraw@xxxxxxxxxxx>
Subject: [visionegg] Re: error: OpenGL.ctypes
To: visionegg@xxxxxxxxxxxxx
Date: Saturday, February 14, 2009, 11:36 PM

Hi Ilia,

I think there's something else going on. The VE (1.1.2) works with both
OpenGL 3 (except for one known small bug[1]) and OpenGL 2. So I don't
think that's the issue.

I think you're not running the demos properly. What you emailed looks
like a Python console session -- but to run a VE demo you would not be
in the Python console. I haven't used EPD before, but if it's like the
normal python.org Python distribution, you should either double-click on
the .py file or perhaps right-click it and select "Run as Python" or
something like that.

Are there any Windows users out there that have experience running the
VE demos with the EPD that can chime in?

-Andrew

[1]
https://sourceforge.net/tracker/index.php?func=detail&aid=2561765&group_id=5988&atid=105988

ilia ivanov wrote:
> Hello Andrew,
> 
> Thanks for your fast reply.
> I tried to implement your suggestion but I got yet another error:
> 
> EPD Py25 (4.1.30101) -- http://www.enthought.com/epd
> 
> Python 2.5.2 |EPD Py25 4.1.30101| (r252:60911, Dec 19 2008, 13:49:12)
> [MSC v.131
> 0 32 bit (Intel)] on win32
> Type "help", "copyright", "credits" or
"license" for more information.
>>>> import logging
>>>> logging.basicConfig()
>>>> import VisionEgg
>>>> import VisionEgg.Core
> INFO:OpenGL.ctypes:Failed on util.find_library( 'glut32' ): list
index
> out of ra
> nge
> INFO:OpenGL.ctypes:Failed on util.find_library( 'gle32' ): list
index
> out of ran
> ge
> INFO:OpenGL.ctypes:Failed on util.find_library( 'opengle32' ):
list
> index out of
>  range
>>>>
> 
> I uninstalled the   PyOpenGL v.3 and installed v.2, then I got something
> different, but still an error:
> 
> EPD Py25 (4.1.30101) -- http://www.enthought.com/epd
> 
> Python 2.5.2 |EPD Py25 4.1.30101| (r252:60911, Dec 19 2008, 13:49:12)
> [MSC v.131
> 0 32 bit (Intel)] on win32
> Type "help", "copyright", "credits" or
"license" for more information.
>>>> import VisionEgg
>>>> import VisionEgg.Core
>>>> import VisionEgg.Textures
>>>> import VisionEgg.ParameterTypes as ve_types
>>>> import numpy
>>>> import math, types, string
>>>> import VisionEgg.GL as gl # get all OpenGL stuff in one
namespace
>>>> import _vegl
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> ImportError: No module named _vegl
>>>>
> 
> Is it possible to get all these error because of previous installation
> of EPD Py25 distribution? It shouldn't be that difficult to run the
> demos but obviously I'm doing something totally wrong.
> 
> Cheers,
> Iliya
> 
> --- On *Sat, 2/14/09, Andrew Straw /<astraw@xxxxxxxxxxx>/* wrote:
> 
>     From: Andrew Straw <astraw@xxxxxxxxxxx>
>     Subject: [visionegg] Re: error: OpenGL.ctypes
>     To: visionegg@xxxxxxxxxxxxx
>     Date: Saturday, February 14, 2009, 9:37 PM
> 
>     Hi Ilia,
> 
>     That's a warning from the standard Python library
"logging". I
>     guess
>     that PyOpenGL (I presume you're using version 3) is sending a
message to
>     be logged, but there is not logging handler installed for it. To use
the
>     logging
>      module's default logging settings, call the following at the
>     start of your program:
> 
>     import logging
>     logging.basicConfig()
> 
>     Otherwise, you could disable the warning and any logging output by
using
>     the following, but you may miss some relevant information that way:
> 
>     import logging
>     logger = logging.getLogger('OpenGL')
>     logger.setLevel( logging.CRITICAL )
> 
> 
> 
>     ilia ivanov wrote:
>     > Hello guys,
>     > 
>     > Whenever I`m trying to run the .py demos or import from
VisionEgg.Core I
>     > got a nasty error message "No handler could be found for
logger
>     > "OpenGL.ctypes"...
>     > Im running Windows XP, Python 2.5.4, and all the packages that
are
>     > required for visionegg are installed.
>     > Any suggestions?
>     > Thanks.
>     > 
>     > 
> 
> 
>     -- 
>     Dr. Andrew D. Straw
>     California Institute of
>      Technology
>     http://www.its.caltech.edu/~astraw/
>     ======================================
>     The Vision Egg mailing list
>     Archives: http://www.freelists.org/archives/visionegg
>     Website: http://www.visionegg.org/mailinglist.html
> 
> 


-- 
Dr. Andrew D. Straw
California Institute of Technology
http://www.its.caltech.edu/~astraw/
======================================
The Vision Egg mailing list
Archives: http://www.freelists.org/archives/visionegg
Website: http://www.visionegg.org/mailinglist.html



      

Other related posts: