What does this error mean and how do I resolve it?

Greg Landrum glandrum at my-deja.com
Fri Sep 22 03:33:03 CEST 2000


In article <8qdqtt$lqn$1 at nnrp1.deja.com>,
  vbMark <vbmark at my-deja.com> wrote:
> OS: Win98
> Python: 2.0b1
> Script and Error:
>
> >>> def go():
> 	from opengl import *
> 	def redraw(o):
> 		gl.ClearColor(0, 0, 1, 0)
> 		gl.Clear(GL_COLOR_BUFFER_BIT)
>
> 		o = Opengl(width = 200, height = 200, double = 1)
> 		o.redraw = redraw
> 		o.pack(side = 'top', expand = 1, fill = 'both')
> 		o.mainloop()
>
> >>> go()
> Traceback (innermost last):
>   File "<pyshell#11>", line 1, in ?
>     go()
>   File "<pyshell#9>", line 2, in go
>     from opengl import *
> NameError: Case mismatch for module name opengl
> (filename c:\python20\Opengl.pyc)
>

You need to do:
from Opengl import *
windows is not case sensitive, but Python is... this error is
telling you that.

-greg


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list