I have a visualisation package, written using pyopengl and pyqt.
When I use Anaconda to create a python environment with python 2.7.11-0 (in OSX Yosemite v10.10.5) everything works fine:
conda create -n dep_test python=2.7.11=0 six numpy scipy matplotlib pandas ipython ipython-notebook pillow pyopengl pyqt
conda list -n dep_test
python 2.7.11 0
numpy 1.11.1 py27_0
pyopengl 3.1.1a1 np111py27_0
qt 4.8.7 4
pyqt 4.11.4 py27_4
…
However, when I create an environment with the next available version of python 2.7.11-5, I get a frame buffer error:
conda create -n dep_test python=2.7.11=5 six numpy scipy matplotlib pandas ipython ipython-notebook pillow pyopengl pyqt
conda list -n dep_test
python 2.7.11 5
numpy 1.11.1 py27_0
pyopengl 3.1.1a1 np111py27_0
qt 4.8.7 4
pyqt 4.11.4 py27_4
…
---------------------------------------------------------------------------
GLError Traceback (most recent call last)
<ipython-input-4-bc4aa6ba358d> in <module>()
1 vis = ipymd.visualise_sim.Visualise_Sim()
2 vis.add_atoms(df)
----> 3 img1 = vis.get_image(size=400,quality=5)
4 img1
/Users/cjs14/GitHub/ipymd/ipymd/visualise/visualise_sim.pyc in get_image(self, xrot, yrot, zrot, fov, size, quality, zoom_extents, trim_whitespace)
433
434 # convert scene to image
--> 435 image = w.toimage(int(size*quality), int(size*quality))
436 image.thumbnail((int(size),int(size)),Image.ANTIALIAS)
437
/Users/cjs14/GitHub/ipymd/ipymd/visualise/opengl/qchemlabwidget.pyc in toimage(self, width, height)
366 height = self.height()
367
--> 368 self.paintGL()
369 self.post_processing.remove(effect)
370 coltex = effect.texture
/Users/cjs14/GitHub/ipymd/ipymd/visualise/opengl/qchemlabwidget.pyc in paintGL(self)
214
215 else:
--> 216 self.post_processing[0].render(DEFAULT_FRAMEBUFFER, self.textures)
217
218 # Draw the UI at the very last step
/Users/cjs14/GitHub/ipymd/ipymd/visualise/opengl/postprocessing/noeffect.pyc in render(self, fb, textures)
41
42 glBindFramebuffer(GL_FRAMEBUFFER, fb)
---> 43 glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT)
44
45 glUseProgram(self.quad_program)
//anaconda/envs/dep_test/lib/python2.7/site-packages/OpenGL/error.pyc in glCheckError(self, result, baseOperation, cArguments, *args)
230 result,
231 cArguments = cArguments,
--> 232 baseOperation = baseOperation,
233 )
234 return result
GLError: GLError(
err = 1286,
description = 'invalid framebuffer operation',
baseOperation = glClear,
cArguments = (16640,)
)
The same error also occurs if trying python 3 versions. All package versions are identical, so what has changed between 2.7.11-0 and 2.7.11-5 to cause this error, and how can I fix it?