Giter Site home page Giter Site logo

Comments (5)

adam-grant-hendry avatar adam-grant-hendry commented on July 21, 2024

@mkondratyev85 I would recommend a couple quick checks to get you started fixing the issue:

  1. If able, look to see if you can update your graphics driver. e.g. I have seen this error occur with older NVIDIA GPU drivers
  2. If able, update your version of pyvista. The current version is 0.36.1, so there are likely to have been several fixes in place since then (e.g. I believe PySide2 support was added to pyvistaqt after 0.9.0. Similar support may have been added for PyQt6)
  3. Specifically with PySide6 version 6.4.0 (i.e. the latest), there is a known bug (see qtpy #377) that is causing many downstream libraries to fail. The current solution is to use PySide6 < 6.4.0 (i.e. 6.3.1 or older) until the issue is resolved. Something similar may be occurring with the latest versions of PyQt6.
  4. Check the version of qtpy you are using, and if able, update to the latest version.

from pyvistaqt.

adam-grant-hendry avatar adam-grant-hendry commented on July 21, 2024

@mkondratyev85 Also, if you can, would you please provide us with some system information so we can help you debug the issue further? e.g. If you run:

import pyvista as pv
pv.Report()

in a terminal and copy and paste the output here, that will help us.

Second, can you confirm for us that the script you tried to run was the [`Example PyQt5 PyVista QtInteractor`](https://qtdocs.pyvista.org/usage.html#example-pyqt5-pyvista-qtinteractor) script?

Update: I see you wrote that in your original post after reading further; my mistake.

Thank you for taking the time to report an issue!

from pyvistaqt.

mkondratyev85 avatar mkondratyev85 commented on July 21, 2024

@adam-grant-hendry thank you for helping me.

System informations after pv.Report():

                OS : Linux
            CPU(s) : 8
           Machine : x86_64
      Architecture : 64bit
               RAM : 5.7 GiB
       Environment : Python
       File system : ext4
        GPU Vendor : AMD
      GPU Renderer : AMD Radeon Vega 8 Graphics (raven, LLVM 13.0.1, DRM 3.42, 5.15.0-47-generic)
       GPU Version : 4.6 (Core Profile) Mesa 22.0.1

  Python 3.10.4 (main, Jun 29 2022, 12:14:53) [GCC 11.2.0]

           pyvista : 0.36.1
               vtk : 9.2.2
             numpy : 1.21.5
           imageio : 2.22.1
           appdirs : 1.4.4
            scooby : 0.5.12
        matplotlib : 3.5.1
         pyvistaqt : 0.9.0
             PyQt5 : 5.15.6
           IPython : 8.5.0
             scipy : 1.8.0
        jupyterlab : 3.4.8

My version of drivers are updated. And it looks like I'm using the latest versions of pyvista and pyvistaqt.

from pyvistaqt.

mkondratyev85 avatar mkondratyev85 commented on July 21, 2024

@adam-grant-hendry Can you confirm the issue? Does this example work on your side when you switch to PyQt6?

from pyvistaqt.

mkondratyev85 avatar mkondratyev85 commented on July 21, 2024

Finally I've figured out what was the source of the problem!

I was using the Wayland display server on my Ubuntu 22.04. After switching from the Wayland to X the code works without a problem now!

I'll keep this issue open as I'm not sure if this an intended behavior or not.

from pyvistaqt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.