Quantcast
Viewing all articles
Browse latest Browse all 1234

Python • Raspberry PI5 + Python + VTK

I'm not able to find a VTK Python package for Raspberry Pi 5 (Python 3.11.2).
How to install it ?
There is some pre-made package and instructions to install it ?

PS:
I've tried to make VTK from the vtk repository in a virtual env to not touch the original python installation:

Code:

python3 -m venv /home/<user>/develop/venvcd /home/<user>/develop/venv/bin./pip3 install numpy./pip3 install PySide6sudo apt install -y build-essential mesa-common-dev mesa-utils freeglut3-dev ninja-build git cmakecd /home/<user>mkdir developcd developgit clone --recursive https://gitlab.kitware.com/vtk/vtk.gitcd ..mkdir buildcd buildcmake -GNinja -DVTK_WHEEL_BUILD=ON -DVTK_WRAP_PYTHON=ON /data/vtkninjacp -R /home/<user>/develop/build/lib /home/<user>/develop/venv/lib/python3.11/site-packagescp -R /home/<user>/develop/build/lib /home/<user>/develop/venv/lib/python3.11/
Something works but python program crashes after some movements of OpenGL scene and I've got a lot of error logs.
Image may be NSFW.
Clik here to view.
Untitled.jpg
A little piece of logs:

Code:

024-06-05 09:29:13.869 (   8.856s) [    7FFF94FC4700]     vtkOpenGLState.cxx:943   WARN| Error glViewport1 OpenGL errors detected  0 : (1280) Invalid enum with stack trace of0x7fff91025bd4 : ??? [(???) ???:-1]0x7fff91020a40 : vtksys::SystemInformation::GetProgramStack[abi:cxx11](int, int) [(libvtksys-9.3.so.1) ???:-1]0x7fff89feef60 : ??? [(???) ???:-1]0x7fff89ff2aac : vtkOpenGLState::vtkglViewport(int, int, int, int) [(libvtkRenderingOpenGL2-9.3.so.1) ???:-1]0x7fff89fbde4c : vtkOpenGLRenderWindow::Frame() [(libvtkRenderingOpenGL2-9.3.so.1) ???:-1]0x7fff8a0ae4e0 : vtkXOpenGLRenderWindow::Frame() [(libvtkRenderingOpenGL2-9.3.so.1) ???:-1]0x7fff8cd38624 : vtkRenderWindow::CopyResultFrame() [(libvtkRenderingCore-9.3.so.1) ???:-1]0x7fff8cd36e6c : vtkRenderWindow::Render() [(libvtkRenderingCore-9.3.so.1) ???:-1]0x7fff89fc3214 : vtkOpenGLRenderWindow::Render() [(libvtkRenderingOpenGL2-9.3.so.1) ???:-1]0x7fff8a0b3f18 : vtkXOpenGLRenderWindow::Render() [(libvtkRenderingOpenGL2-9.3.so.1) ???:-1]0x7fff8cd41f3c : vtkRenderWindowInteractor::Render() [(libvtkRenderingCore-9.3.so.1) ???:-1]0x7fff8cde8a0c : vtkInteractorStyle::StopState() [(libvtkRenderingCore-9.3.so.1) ???:-1]0x7fff8cde9054 : vtkInteractorStyle::EndRotate() [(libvtkRenderingCore-9.3.so.1) ???:-1]0x7fff8ba8786c : vtkInteractorStyleJoystickCamera::OnLeftButtonUp() [(libvtkInteractionStyle-9.3.so.1) ???:-1]0x7fff8cdeb184 : vtkInteractorStyle::ProcessEvents(vtkObject*, unsigned long, void*, void*) [(libvtkRenderingCore-9.3.so.1) ???:-1]0x7fff92ff7ca0 : vtkCallbackCommand::Execute(vtkObject*, unsigned long, void*) [(libvtkCommonCore-9.3.so.1) ???:-1]0x7fff931184e4 : ??? [(???) ???:-1]0x7fff93118c68 : vtkObject::InvokeEvent(unsigned long, void*) [(libvtkCommonCore-9.3.so.1) ???:-1]0x7fff89636cbc : vtkXRenderWindowInteractor::DispatchEvent(_XEvent*) [(libvtkRenderingUI-9.3.so.1) ???:-1]0x7fff896353d0 : vtkXRenderWindowInteractor::ProcessEvents() [(libvtkRenderingUI-9.3.so.1) ???:-1]0x7fff89635970 : vtkXRenderWindowInteractor::StartEventLoop() [(libvtkRenderingUI-9.3.so.1) ???:-1]0x7fff8cd42108 : vtkRenderWindowInteractor::Start() [(libvtkRenderingCore-9.3.so.1) ???:-1]0x7fff8d1343e4 : ??? [(???) ???:-1]0x4c9d8c : ??? [(???) ???:-1]0x494548 : _PyObject_MakeTpCall [(python3) ???:-1]0x4aa23c : _PyEval_EvalFrameDefault [(python3) ???:-1]0x4a0b60 : PyEval_EvalCode [(python3) ???:-1]0x5fafa8 : ??? [(???) ???:-1]0x5f7bd0 : ??? [(???) ???:-1]0x608760 : ??? [(???) ???:-1]0x608308 : _PyRun_SimpleFileObject [(python3) ???:-1]0x608070 : _PyRun_AnyFileObject [(python3) ???:-1]0x60631c : Py_RunMain [(python3) ???:-1]0x5d0154 : Py_BytesMain [(python3) ???:-1]0x7fff94cb7780 : ??? [(???) ???:-1]0x7fff94cb7858 : __libc_start_main [(libc.so.6) ???:-1]0x5cfff0 : _start [(python3) ???:-1]

Statistics: Posted by shineworld — Wed Jun 05, 2024 7:31 am



Viewing all articles
Browse latest Browse all 1234

Trending Articles