[ERROR] Spectras are not showing 3.3.4

Hi there,

I’m trying to open the spectras from my project and seems like an OPENGL type of errror. I updated to the last version of CCPNMR this morning (18/11/2025) and really appreciate if anyone can help me.

I’m attaching a printscreen.

Renan

Hi Renan,

sorry about this.
What operating system (and version) are you using?
And can you give us the final bit of the traceback, please? It seems to be cut off at the bottom.

Thanks!
Vicky

Hi Vicky,

Sure. I’m attaching the full error here to make it easier to navigate. I tried to open a 1H-15N HSQC but happens with all other spectras.

I’m operating with this version of Linux.
NAME=“Ubuntu”
VERSION_ID=“24.04”
VERSION=“24.04.3 LTS (Noble Numbat)”

It was working couple days ago… don’t know if it was an recently update.

Thanks,
Renan

:~/ccpnmr/bin$ ./analysisassign
Program licence (non-profit) valid until Mon Jan 4 15:34:08 2100

╒═══════════════════════════════════════════════════════════════════════════════════════════════════════════════╕
│ AnalysisAssign, version: 3.3.4 │
│ │
│ Copyright (C) CCPN project (https://www.ccpn.ac.uk) 2014 - 2025 │
│ │
│ CCPN licence. See Licensing - CCPN - Collaborative Computing Project for NMR. Not to be distributed without prior consent! │
│ │
│ Active Developers: Ed Brooksbank, Victoria A Higman, Luca Mureddu, Eliza Płoskoń, │
│ Timothy J Ragan, Brian O Smith, Daniel Thompson, Gary S Thompson & Geerten W Vuister │
│ See People - The Working Group and Executive Committee - CCPN for more information. │
│ │
│ Please cite: Skinner, S.P., Fogh, R.H., Boucher, W., Ragan, T.J., Mureddu, L.G., & Vuister, G.W. │
│ CcpNmr AnalysisAssign: a flexible platform for integrated NMR analysis │
│ J.Biomol.Nmr (2016), 66, 111-124, http://doi.org/10.1007/s10858-016-0060-y
│ │
│ DISCLAIMER: This program is offered ‘as-is’. Under no circumstances will the authors, CCPN, │
│ the Department of Molecular and Cell Biology, or the University of Leicester be │
│ liable of any damage, loss of data, loss of revenue or any other undesired │
│ consequences originating from the usage of this software. │
╘═══════════════════════════════════════════════════════════════════════════════════════════════════════════════╛
==> Getting user preferences
==> Language set to “English-UK”
INFO : Folder may be read-only, or may not exist (ProjectArchiver.archives:93)
==> Checking registration on server
==> Done, AnalysisAssign is starting
WARNING: /home/renanpfreire/Analysis_projects/3D_data_101025_assigned.ccpn Is not a valid dynamic logLevel. MSG: application.loadProject() (Gui.echoCommands:526)
INFO : Closing /tmp/CcpNmr_o7r8wqob/default_uczkyc83.ccpn (Project.close:1420)
INFO : Validating Project integrity… (Project._getAPIObjectsStatus:2339)
INFO : ==> Loaded project PR:3D_data_101025_assigned (Framework._loadData:1316)
WARNING: <SP:15N_HSQC (NMRPipe); 2D (H,N)> Is not a valid dynamic logLevel. MSG: mainWindow.newSpectrumDisplay(axisCodes=(‘H’, ‘N’), stripDirection=‘Y’, position=‘right’, relativeTo=None) (Gui.echoCommands:526)
Traceback (most recent call last):
File “/home/renanpfreire/ccpnmr/src/python/ccpn/ui/gui/lib/OpenGL/CcpnOpenGL.py”, line 3202, in paintGL
self._paintGL()
File “/home/renanpfreire/ccpnmr/src/python/ccpn/ui/gui/lib/OpenGL/CcpnOpenGL.py”, line 3307, in _paintGL
self.drawGrid()
File “/home/renanpfreire/ccpnmr/src/python/ccpn/ui/gui/lib/OpenGL/CcpnOpenGL.py”, line 3546, in drawGrid
self.gridList[0].drawIndexVBO()
File “/home/renanpfreire/ccpnmr/src/python/ccpn/ui/gui/lib/OpenGL/CcpnOpenGLArrays.py”, line 1315, in drawIndexVBO
GL.glVertexPointer(self.dimension, GL.GL_FLOAT, 0, _VOIDPTR0)
File “src/latebind.pyx”, line 40, in OpenGL_accelerate.latebind.LateBind.call
File “src/wrapper.pyx”, line 322, in OpenGL_accelerate.wrapper.Wrapper.call
File “/home/renanpfreire/ccpnmr/miniconda/lib/python3.10/site-packages/OpenGL/arrays/arrayhelpers.py”, line 189, in call
contextdata.setValue(self.constant, pyArgs[self.pointerIndex])
File “/home/renanpfreire/ccpnmr/miniconda/lib/python3.10/site-packages/OpenGL/contextdata.py”, line 58, in setValue
context = getContext( context )
File “/home/renanpfreire/ccpnmr/miniconda/lib/python3.10/site-packages/OpenGL/contextdata.py”, line 40, in getContext
raise error.Error(
OpenGL.error.Error: Attempt to retrieve context when no valid context
Traceback (most recent call last):
File “/home/renanpfreire/ccpnmr/src/python/ccpn/ui/gui/lib/OpenGL/CcpnOpenGL.py”, line 3202, in paintGL
self._paintGL()
File “/home/renanpfreire/ccpnmr/src/python/ccpn/ui/gui/lib/OpenGL/CcpnOpenGL.py”, line 3307, in _paintGL
self.drawGrid()
File “/home/renanpfreire/ccpnmr/src/python/ccpn/ui/gui/lib/OpenGL/CcpnOpenGL.py”, line 3546, in drawGrid
self.gridList[0].drawIndexVBO()
File “/home/renanpfreire/ccpnmr/src/python/ccpn/ui/gui/lib/OpenGL/CcpnOpenGLArrays.py”, line 1315, in drawIndexVBO
GL.glVertexPointer(self.dimension, GL.GL_FLOAT, 0, _VOIDPTR0)
File “src/latebind.pyx”, line 40, in OpenGL_accelerate.latebind.LateBind.call
File “src/wrapper.pyx”, line 322, in OpenGL_accelerate.wrapper.Wrapper.call
File “/home/renanpfreire/ccpnmr/miniconda/lib/python3.10/site-packages/OpenGL/arrays/arrayhelpers.py”, line 189, in call
contextdata.setValue(self.constant, pyArgs[self.pointerIndex])
File “/home/renanpfreire/ccpnmr/miniconda/lib/python3.10/site-packages/OpenGL/contextdata.py”, line 58, in setValue
context = getContext( context )
File “/home/renanpfreire/ccpnmr/miniconda/lib/python3.10/site-packages/OpenGL/contextdata.py”, line 40, in getContext
raise error.Error(
OpenGL.error.Error: Attempt to retrieve context when no valid context
Traceback (most recent call last):
File “/home/renanpfreire/ccpnmr/src/python/ccpn/ui/gui/lib/OpenGL/CcpnOpenGL.py”, line 3202, in paintGL
self._paintGL()
File “/home/renanpfreire/ccpnmr/src/python/ccpn/ui/gui/lib/OpenGL/CcpnOpenGL.py”, line 3307, in _paintGL
self.drawGrid()
File “/home/renanpfreire/ccpnmr/src/python/ccpn/ui/gui/lib/OpenGL/CcpnOpenGL.py”, line 3546, in drawGrid
self.gridList[0].drawIndexVBO()
File “/home/renanpfreire/ccpnmr/src/python/ccpn/ui/gui/lib/OpenGL/CcpnOpenGLArrays.py”, line 1315, in drawIndexVBO
GL.glVertexPointer(self.dimension, GL.GL_FLOAT, 0, _VOIDPTR0)
File “src/latebind.pyx”, line 40, in OpenGL_accelerate.latebind.LateBind.call
File “src/wrapper.pyx”, line 322, in OpenGL_accelerate.wrapper.Wrapper.call
File “/home/renanpfreire/ccpnmr/miniconda/lib/python3.10/site-packages/OpenGL/arrays/arrayhelpers.py”, line 189, in call
contextdata.setValue(self.constant, pyArgs[self.pointerIndex])
File “/home/renanpfreire/ccpnmr/miniconda/lib/python3.10/site-packages/OpenGL/contextdata.py”, line 58, in setValue
context = getContext( context )
File “/home/renanpfreire/ccpnmr/miniconda/lib/python3.10/site-packages/OpenGL/contextdata.py”, line 40, in getContext
raise error.Error(
OpenGL.error.Error: Attempt to retrieve context when no valid context
Traceback (most recent call last):
File “/home/renanpfreire/ccpnmr/src/python/ccpn/ui/gui/lib/OpenGL/CcpnOpenGL.py”, line 3202, in paintGL
self._paintGL()
File “/home/renanpfreire/ccpnmr/src/python/ccpn/ui/gui/lib/OpenGL/CcpnOpenGL.py”, line 3307, in _paintGL
self.drawGrid()
File “/home/renanpfreire/ccpnmr/src/python/ccpn/ui/gui/lib/OpenGL/CcpnOpenGL.py”, line 3546, in drawGrid
self.gridList[0].drawIndexVBO()
File “/home/renanpfreire/ccpnmr/src/python/ccpn/ui/gui/lib/OpenGL/CcpnOpenGLArrays.py”, line 1315, in drawIndexVBO
GL.glVertexPointer(self.dimension, GL.GL_FLOAT, 0, _VOIDPTR0)
File “src/latebind.pyx”, line 40, in OpenGL_accelerate.latebind.LateBind.call
File “src/wrapper.pyx”, line 322, in OpenGL_accelerate.wrapper.Wrapper.call
File “/home/renanpfreire/ccpnmr/miniconda/lib/python3.10/site-packages/OpenGL/arrays/arrayhelpers.py”, line 189, in call
contextdata.setValue(self.constant, pyArgs[self.pointerIndex])
File “/home/renanpfreire/ccpnmr/miniconda/lib/python3.10/site-packages/OpenGL/contextdata.py”, line 58, in setValue
context = getContext( context )
File “/home/renanpfreire/ccpnmr/miniconda/lib/python3.10/site-packages/OpenGL/contextdata.py”, line 40, in getContext
raise error.Error(
OpenGL.error.Error: Attempt to retrieve context when no valid context
Traceback (most recent call last):
File “/home/renanpfreire/ccpnmr/src/python/ccpn/ui/gui/lib/OpenGL/CcpnOpenGL.py”, line 3202, in paintGL
self._paintGL()
File “/home/renanpfreire/ccpnmr/src/python/ccpn/ui/gui/lib/OpenGL/CcpnOpenGL.py”, line 3307, in _paintGL
self.drawGrid()
File “/home/renanpfreire/ccpnmr/src/python/ccpn/ui/gui/lib/OpenGL/CcpnOpenGL.py”, line 3546, in drawGrid
self.gridList[0].drawIndexVBO()
File “/home/renanpfreire/ccpnmr/src/python/ccpn/ui/gui/lib/OpenGL/CcpnOpenGLArrays.py”, line 1315, in drawIndexVBO
GL.glVertexPointer(self.dimension, GL.GL_FLOAT, 0, _VOIDPTR0)
File “src/latebind.pyx”, line 40, in OpenGL_accelerate.latebind.LateBind.call
File “src/wrapper.pyx”, line 322, in OpenGL_accelerate.wrapper.Wrapper.call
File “/home/renanpfreire/ccpnmr/miniconda/lib/python3.10/site-packages/OpenGL/arrays/arrayhelpers.py”, line 189, in call
contextdata.setValue(self.constant, pyArgs[self.pointerIndex])
File “/home/renanpfreire/ccpnmr/miniconda/lib/python3.10/site-packages/OpenGL/contextdata.py”, line 58, in setValue
context = getContext( context )
File “/home/renanpfreire/ccpnmr/miniconda/lib/python3.10/site-packages/OpenGL/contextdata.py”, line 40, in getContext
raise error.Error(
OpenGL.error.Error: Attempt to retrieve context when no valid context
Traceback (most recent call last):
File “/home/renanpfreire/ccpnmr/src/python/ccpn/ui/gui/lib/OpenGL/CcpnOpenGL.py”, line 3202, in paintGL
self._paintGL()
File “/home/renanpfreire/ccpnmr/src/python/ccpn/ui/gui/lib/OpenGL/CcpnOpenGL.py”, line 3307, in _paintGL
self.drawGrid()
File “/home/renanpfreire/ccpnmr/src/python/ccpn/ui/gui/lib/OpenGL/CcpnOpenGL.py”, line 3546, in drawGrid
self.gridList[0].drawIndexVBO()
File “/home/renanpfreire/ccpnmr/src/python/ccpn/ui/gui/lib/OpenGL/CcpnOpenGLArrays.py”, line 1315, in drawIndexVBO
GL.glVertexPointer(self.dimension, GL.GL_FLOAT, 0, _VOIDPTR0)
File “src/latebind.pyx”, line 40, in OpenGL_accelerate.latebind.LateBind.call
File “src/wrapper.pyx”, line 322, in OpenGL_accelerate.wrapper.Wrapper.call
File “/home/renanpfreire/ccpnmr/miniconda/lib/python3.10/site-packages/OpenGL/arrays/arrayhelpers.py”, line 189, in call
contextdata.setValue(self.constant, pyArgs[self.pointerIndex])
File “/home/renanpfreire/ccpnmr/miniconda/lib/python3.10/site-packages/OpenGL/contextdata.py”, line 58, in setValue
context = getContext( context )
File “/home/renanpfreire/ccpnmr/miniconda/lib/python3.10/site-packages/OpenGL/contextdata.py”, line 40, in getContext
raise error.Error(
OpenGL.error.Error: Attempt to retrieve context when no valid context

Hi Renan,

The last time I encountered a problem with OpenGL, I found a successful workaround.
In a shell, run:

export PYOPENGL_PLATFORM=posix

Then, run CCPN as normal.

Hope it helps!

Best wishes,
Rodolpho

Hi Rodolpho,

It did works. Thanks for your tip. Not sure why this happened, since it was everything fine like couple days ago.

Cheers,
Renan

2 Likes

Hi Rodolpho and Vicky,

If I don’t run the command every time that I open ccpnmr, it won’t show the spectras and give the same error.

Any other recommendations?

Best wishes,
Renan

Hi Renan,

we were actually wondering what graphics you are using. At the moment we are not compatible with Weyland, and we wondered whether Rodlopho’s command is in fact a workaround for using Weyland.

Vicky

You should be able to add the export to your .bashrc etc so it gets run every time you start a terminal. what shell are
You using ie if you type echo $SHELL what do you get ?

Regards gary

Gary Thompson & Sarah Blenkin
Yorkshire UK

01924 895408
garyt.and.sarahb@gmail.com

Hi Vicky and Gary,

@varioustoxins when I type echo $shell it doesn’t give me nothing. Maybe its something wrong happening? My concern is bc it was running perfectly before the last update.. but I will put on bashrc. Thanks!

@VickyH I typed lspci -k | grep -EA3 'VGA|3D|Display and it gaves me:

0000:00:02.0 VGA compatible controller: Intel Corporation TigerLake-LP GT2 [Iris Xe Graphics] (rev 03)
Subsystem: Dell TigerLake-LP GT2 [Iris Xe Graphics]
Kernel driver in use: i915
Kernel modules: i915, xe

0000:01:00.0 3D controller: NVIDIA Corporation TU117M [GeForce MX450] (rev a1)
Subsystem: Dell TU117M [GeForce MX450]
Kernel modules: nvidiafb, nouveau
10000:e0:1c.0 System peripheral: Intel Corporation RST VMD Managed Controller

If doesn’t help, please let me know.

Thanks,
Renan

Make sure the capitalisation is right SHELL has to be upper case…

regards
gary

Dr Gary S Thompson NMR Facility Manager
CCPN CoI & Working Group Member
Wellcome Trust Biomolecular NMR Facility
School of Natural Sciences
University of Kent, Canterbury, Kent, England, CT2 7NZ

:telephone::01227 82 7117
:envelope:: g.s.thompson@kent.ac.uk
orchid: ORCID

Hi @varioustoxins

Sorry for that.

I get /bin/bash when typing echo $SHELL

Kind regards,
Renan

The put the

export PYOPENGL_PLATFORM=posix

In .bashrc

Close all terminal windows open a new one and see if thats a permanent fix for you

Regards
Gary

Dr Gary S Thompson NMR Facility Manager
CCPN CoI & Working Group Member
Wellcome Trust Biomolecular NMR Facility
School of Natural Sciences
University of Kent, Canterbury, Kent, England, CT2 7NZ

:telephone::01227 82 7117
:envelope:: g.s.thompson@kent.ac.uk
orchid: ORCID

1 Like