我有一个python3.3应用程序,它使用PyOpenGL可视化结构。 它具有将图形保存在图像文件中的功能。你知道吗
def save_image(self, filename):
glPixelStorei(GL_PACK_ALIGNMENT, 1)
data = glReadPixelsui(0, 0, width, height, GL_RGB, GL_UNSIGNED_BYTE)
...
在我使用cx\u-freeze为Windows创建一个独立的应用程序之前,它可以正常工作。然后我得到以下错误:
File "C:\mmpe\programming\python\h2-visualization\gui\StructureVisualizationWidget.py", line 97, in save_image
data = glReadPixelsui(0, 0, self.width, self.height, GL_RGB, GL_UNSIGNED_BYTE)
File "C:\WinPython-64bit-3.3.3.2\python-3.3.3.amd64\lib\site-packages\OpenGL\GL\images.py", line 253, in glReadPixels
imageData
ctypes.ArgumentError: argument 7: <class 'TypeError'>: No array-type handler for type <class 'ctypes.c_void_p'> (value: c_void_p(198443072)) registered
如果我提取图书馆.zip文件并使用普通python.exe你知道吗
我必须明确包括:
在cx\u冻结分布中
相关问题 更多 >
编程相关推荐