Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python kernel crashes after running a simple example #6011

Open
dkobayas-cyber opened this issue May 1, 2024 · 1 comment
Open

Python kernel crashes after running a simple example #6011

dkobayas-cyber opened this issue May 1, 2024 · 1 comment
Labels
installation fails to work on install

Comments

@dkobayas-cyber
Copy link

dkobayas-cyber commented May 1, 2024

Describe the bug, what's wrong, and what you expected.

I installed Pyvista in my Anaconda environment and ran a simple code on JupyterLab but that crashed my Python kernel.

Steps to reproduce the bug.

Installation procedure I followed (on Linux):

conda create -n pyvista_2 python=3.10 numpy=1.23.1 ipython ipykernel
conda activate pyvista_2
conda install -c conda-forge pyvista
ipython kernel install --user --name pyvista_2 --display-name "Pyvista_2"

On Jupyter Lab, I ran the following code:

import pyvista as pv
pv.set_jupyter_backend('static')
sphere = pv.Sphere()
plotter = pv.Plotter(notebook=True)
plotter.add_mesh(sphere)
plotter.show()

Then, the kernel crashed with the following error message:

Error message
ERROR:root:Unable to find a valid OpenGL 3.2 or later implementation. Please update your video card driver to the latest version. If you are using Mesa please make sure you have version 11.2 or later and make sure your driver in Mesa supports OpenGL 3.2 such as llvmpipe or openswr. If you are on windows and using Microsoft remote desktop note that it only supports OpenGL 3.2 with nvidia quadro cards. You can use other remoting software such as nomachine to avoid this issue.
2024-05-01 17:22:31.216 (   2.727s) [        EEED5800]vtkOpenGLRenderWindow.c:575    ERR| vtkXOpenGLRenderWindow (0x2b69100): Unable to find a valid OpenGL 3.2 or later implementation. Please update your video card driver to the latest version. If you are using Mesa please make sure you have version 11.2 or later and make sure your driver in Mesa supports OpenGL 3.2 such as llvmpipe or openswr. If you are on windows and using Microsoft remote desktop note that it only supports OpenGL 3.2 with nvidia quadro cards. You can use other remoting software such as nomachine to avoid this issue.
2024-05-01 17:22:31.218 (   2.729s) [        EEED5800]     vtkOpenGLState.cxx:1380  WARN| Hardware does not support the number of textures defined.
ERROR:root:1: #version 150
2024-05-01 17:22:31.219 (   2.729s) [        EEED5800]     vtkOpenGLState.cxx:1380  WARN| Hardware does not support the number of textures defined.
2024-05-01 17:22:31.289 (   2.800s) [        EEED5800]   vtkShaderProgram.cxx:437    ERR| vtkShaderProgram (0x2ea8eb0): 1: #version 150
2: #ifndef GL_ES
3: #define highp
4: #define mediump
5: #define lowp
6: #endif // GL_ES
7: #define attribute in
8: #define varying out
9: 
10: 
11: /*=========================================================================
12: 
13:   Program:   Visualization Toolkit
14:   Module:    vtkPolyDataVS.glsl
15: 
16:   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
17:   All rights reserved.
18:   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
19: 
20:      This software is distributed WITHOUT ANY WARRANTY; without even
21:      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
22:      PURPOSE.  See the above copyright notice for more infor

System Information

--------------------------------------------------------------------------------
  Date: Wed May 01 17:27:19 2024 EDT

                OS : Linux
            CPU(s) : 64
           Machine : x86_64
      Architecture : 64bit
               RAM : 503.6 GiB
       Environment : Jupyter
       GPU Details : error
  MathText Support : False

  Python 3.10.14 (main, Mar 21 2024, 16:24:04) [GCC 11.2.0]

           pyvista : 0.43.6
               vtk : 9.0.3
             numpy : 1.23.1
        matplotlib : 3.5.2
            scooby : 0.9.2
             pooch : 1.8.1
            pillow : 10.3.0
           IPython : 8.20.0
      nest_asyncio : 1.6.0

  Intel(R) oneAPI Math Kernel Library Version 2021.4-Product Build 20210904
  for Intel(R) 64 architecture applications
--------------------------------------------------------------------------------

Screenshots

No response

@dkobayas-cyber dkobayas-cyber added the bug Uh-oh! Something isn't working as expected. label May 1, 2024
@banesullivan
Copy link
Member

Looks like you are missing GL drivers on your system. Try apt installing libosmesa6

@banesullivan banesullivan added installation fails to work on install and removed bug Uh-oh! Something isn't working as expected. labels May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
installation fails to work on install
Projects
None yet
Development

No branches or pull requests

2 participants