Re: [PyOpenGL-Users] [fix] ImportError: No module named _GL__init__
Brought to you by:
mcfletch
|
From: Richi P. <ri...@ri...> - 2004-06-21 03:07:51
|
Hi,
I tried the two (2) line change (2 occurences of next lines) from a from
scratch extractioin of the source, and I still get:
>>> import OpenGL
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "OpenGL/__init__.py", line 26, in ?
from GL.GL__init___ import __numeric_present__, __numeric_support__
File "OpenGL/GL/__init__.py", line 2, in ?
from GL__init__ import *
ImportError: No module named GL__init__
I'm just glad that someone who understands what's going on has posted.
Now that I know what to look for, I'll try my best to help.
On Sun, 2004-06-20 at 20:24, Mike C. Fletcher wrote:
> Okay, I just got finished building PyOpenGL 2.0.1.07 on Gentoo linux. I
> had to make a one-line change to setup/build_w.py, in the method "run":
>
> if not check_swig_version(swig_name):
> handle_wrong_swig_version()
> + self.swig_name = None
>
> The code was assuming that, if you have any SWIG installed, then you are
> going to use it. With older distros the only SWIG you'd be likely to
> have was the one for PyOpenGL, so the bug never came up, but newer
> distros apparently are all including it.
>
> You will likely need to delete the source-directory and re-extract your
> .tar.gz file in order to eliminate the messed-up wrapper files that will
> have been created by the previous failed attempts.
>
> HTH,
> Mike
>
> BTW, I only had time to check that dots.py is running with the compiled
> version, there may be further problems that particular test didn't
> reveal. I also didn't have Fedora Core handy, so it could be there's
> further problems there that aren't showing up on Gentoo.
>
>
> Mike C. Fletcher wrote:
>
> > I'll try to get some time to play and see what's going wrong on Sunday
> > afternoon (he says, hoping he actually has *some* free time this
> > weekend). _GL__init__ versus GL__init___ was a change between
> > versions, so something to try in the meantime might be killing
> > lib/python23/site-packages/OpenGL and recompiling, but if I'm reading
> > your (and Dan's) mail correctly, you're both doing your first installs
> > now, so that's not too likely to help.
> >
> > Good luck,
> > Mike
>
>
> ________________________________________________
> Mike C. Fletcher
> Designer, VR Plumber, Coder
> http://members.rogers.com/mcfletch/
> blog: http://zope.vex.net/~mcfletch/plumbing/
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
> Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
> Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
> REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
> _______________________________________________
> PyOpenGL Homepage
> http://pyopengl.sourceforge.net
> _______________________________________________
> PyOpenGL-Users mailing list
> PyO...@li...
> https://lists.sourceforge.net/lists/listinfo/pyopengl-users
|