Tim's upgrade just finished and it's working for him. Another thing to
try at the Python prompt:
>>> import OpenGL
>>> OpenGL.__version__
For Tim it is 3.0.1b2, for me on my Mac it's 3.0.1.
Wayne
On Tue, 1 May 2012, Wayne Boucher wrote:
> Hello,
>
> That is an odd one. It's a PyOpenGL problem. Tim is just now upgrading his
> Ubuntu to 12.04 but it is taking ages (hours and hours), so cannot try this
> out yet. But in the old Ubuntu it worked. If you run python (so just
> itself, interactively), can you try:
>
> > python
> >>> import OpenGL
> >>> OpenGL.__file__
>
> That should say something like .../lib/OpenGL/__init__.pyo. If you then edit
> .../lib/OpenGL/raw/OpenGL/__init__.py (assuming that file exists, which
> hopefully it does) then presumably it does not have lines like:
>
> # /usr/include/GL/gl.h 1328
> glColor4f = platform.createBaseFunction(
> 'glColor4f', dll=platform.GL, resultType=None,
> argTypes=[GLfloat,GLfloat,GLfloat,GLfloat],
> doc='glColor4f( GLfloat(red), GLfloat(green), GLfloat(blue),
> GLfloat(alpha) ) -> None',
> argNames=('red', 'green', 'blue', 'alpha'),
> )
>
> It's an auto-generated file so it's hard to know how it could possibly have
> gone wrong.
>
> Wayne
>
> On Mon, 30 Apr 2012, Matthias Huber wrote:
>
>> Dear all,
>> I tried installing SpecView under Ubutu 12.04 64bit. I managed to get
>> PySide and PyOpenGL installed and the installer script installSpecView.py
>> ran without an error.
>> When I try to start SpecView I get the following error message though. Any
>> ideas what the problem could be?
>>
>> Matthias
>>
>>
>> mahu@mahu-desktop:~/bin/ccpnmr/ccpnmr3.0/bin$ ./specView3
>> Model read finished. Duration 1.74243617058
>> Model validity check skipped
>> Traceback (most recent call last):
>> File "/home/mahu/bin/ccpnmr/ccpnmr3.0/python/ccpnmr/specView/SpecView.py",
>> line 4, in <module>
>> from ccpnmr.specView.gui.DisplayPanel import DEFAULT_COLORS
>> File
>> "/home/mahu/bin/ccpnmr/ccpnmr3.0/python/ccpnmr/specView/gui/DisplayPanel.py",
>> line 25, in <module>
>> from ccpnmr.specView.gui.Spec1dPanel import Spectrum1dPanel
>> File
>> "/home/mahu/bin/ccpnmr/ccpnmr3.0/python/ccpnmr/specView/gui/Spec1dPanel.py",
>> line 49, in <module>
>> glColor4f = raw.glColor4f
>> AttributeError: 'module' object has no attribute 'glColor4f'
>> Error in sys.excepthook:
>> Traceback (most recent call last):
>> File "/usr/lib/python2.7/dist-packages/apport_python_hook.py", line 64, in
>> apport_excepthook
>> from apport.fileutils import likely_packaged, get_recent_crashes
>> File "/usr/lib/python2.7/dist-packages/apport/__init__.py", line 1, in
>> <module>
>> from apport.report import Report
>> File "/usr/lib/python2.7/dist-packages/apport/report.py", line 18, in
>> <module>
>> import problem_report
>> File "/usr/lib/python2.7/dist-packages/problem_report.py", line 14, in
>> <module>
>> import zlib, base64, time, sys, gzip, struct, os
>> File "/usr/lib/python2.7/gzip.py", line 36, in <module>
>> class GzipFile(io.BufferedIOBase):
>> AttributeError: 'module' object has no attribute 'BufferedIOBase'
>>
>> Original exception was:
>> Traceback (most recent call last):
>> File "/home/mahu/bin/ccpnmr/ccpnmr3.0/python/ccpnmr/specView/SpecView.py",
>> line 4, in <module>
>> from ccpnmr.specView.gui.DisplayPanel import DEFAULT_COLORS
>> File
>> "/home/mahu/bin/ccpnmr/ccpnmr3.0/python/ccpnmr/specView/gui/DisplayPanel.py",
>> line 25, in <module>
>> from ccpnmr.specView.gui.Spec1dPanel import Spectrum1dPanel
>> File
>> "/home/mahu/bin/ccpnmr/ccpnmr3.0/python/ccpnmr/specView/gui/Spec1dPanel.py",
>> line 49, in <module>
>> glColor4f = raw.glColor4f
>> AttributeError: 'module' object has no attribute 'glColor4f'
>>
>
|