[PyOpenGL-Users] [fix] ImportError: No module named _GL__init__
Brought to you by:
mcfletch
From: Mike C. F. <mcf...@ro...> - 2004-06-21 02:24:37
|
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/ |