Code Monkey home page Code Monkey logo

Comments (13)

jeertmans avatar jeertmans commented on June 11, 2024

This is because you need Qt bindings, and you can install them using extras. Read more about this here: https://manim-slides.eertmans.be/latest/installation.html#when-you-need-a-qt-backend.

I hope it helps!

from manim-slides.

NikoMolecule avatar NikoMolecule commented on June 11, 2024

@jeertmans Well i installed Qt bindings but new problem arose. manim slides application was successfully runned but it only contained 4 black screens and nothing more. can you help me out?

[04/05/24 22:18:52] WARNING  You are using API = 'pyqt6', QT_VERSION = '6.6.1', but we recommend installing 'PySide6==6.5.2', mainly to avoid flashing        __init__.py:23
                             screens between slides, see issue https://github.com/jeertmans/manim-slides/issues/293. You can do so with `pip install
                             'manim-slides[pyside6]'`.
qt.qpa.window: QtWindows::DpiAwareness::PerMonitorVersion2 is not supported by current system.
QWindowsVistaStylePrivate: Load OpenThemeDataForDpi in uxtheme.dll failed
No QtMultimedia backends found. Only QMediaDevices, QAudioDevice, QSoundEffect, QAudioSink, and QAudioSource are available.
Failed to create QVideoSink "Not available"
Failed to initialize QMediaPlayer "Not available"
Failed to create QVideoSink "Not available"
Failed to create QVideoSink "Not available"
Failed to initialize QMediaPlayer "Not available"

this was the cmd output until the manim-slides started running

from manim-slides.

jeertmans avatar jeertmans commented on June 11, 2024

Hello, can you try to install PySide6 instead? As you can see, there is a warning that is here for a reason :)

However, this does not explain your issue in #402

from manim-slides.

NikoMolecule avatar NikoMolecule commented on June 11, 2024

@jeertmans already tried installing pySide6, this didnt solved the problem!

from manim-slides.

jeertmans avatar jeertmans commented on June 11, 2024

@jeertmans already tried installing pySide6, this didnt solved the problem!

You need to uninstall PyQt6 so PySide6 is actually used :)

from manim-slides.

NikoMolecule avatar NikoMolecule commented on June 11, 2024

@jeertmans
@jeertmans
image
It didnt solved the problem i ran this two commands

pip uninstall pyqt6

and

pip install pyqt6

even tho i have pyside6=6.5.2 version it still gives same error

from manim-slides.

jeertmans avatar jeertmans commented on June 11, 2024

But do you still get that warning?

[04/05/24 22:18:52] WARNING  You are using API = 'pyqt6', QT_VERSION = '6.6.1', but we recommend installing 'PySide6==6.5.2', mainly to avoid flashing        __init__.py:23
                             screens between slides, see issue https://github.com/jeertmans/manim-slides/issues/293. You can do so with `pip install
                             'manim-slides[pyside6]'`.

from manim-slides.

NikoMolecule avatar NikoMolecule commented on June 11, 2024

@jeertmans yes

from manim-slides.

jeertmans avatar jeertmans commented on June 11, 2024

This means you either (1) did not uninstall PyQT6 correctly or (2) manim-slides is installed on a separate Python environment. This is probably because pip command is not using the same Python as python. You can solve that by using python -m pip ... instead.

You can also change the QT API for the current session with:

set QT_API=pyside6
python -m manim_slides rectangle

But you will need to do that every time you restart your shell.

from manim-slides.

NikoMolecule avatar NikoMolecule commented on June 11, 2024

@jeertmans when running

set QT_API=pyside6
python -m manim_slides rectangle

it gave me the same error with same warning

from manim-slides.

jeertmans avatar jeertmans commented on June 11, 2024

@jeertmans when running

set QT_API=pyside6
python -m manim_slides rectangle

it gave me the same error with same warning

Humm, I guess this is because you did not (un)install PyQT6 and PySide6 correctly.

Can you run:

python -m pip uninstall pyqt6
python -m pip install -U "manim-slides[pyside6-full]"
python -m manim_slides render  .\example_scenes.py rectangle
python -m manim_slides rectangle

And put the output here?

from manim-slides.

NikoMolecule avatar NikoMolecule commented on June 11, 2024

@jeertmans alr so it outputed this:

qt.qpa.window: SetProcessDpiAwarenessContext(DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2) failed: COM error 0x57: The parameter is incorrect.
Qt's default DPI awareness context is DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2. If you know what you are doing you can overwrite this default using qt.co
nf (https://doc.qt.io/qt-6/highdpi.html#configuring-windows)
QWindowsVistaStylePrivate: Load OpenThemeDataForDpi in uxtheme.dll failed
    failed to get textures for frame; format: 172 textureConverter null
Device loss detected in Present()
Failed to create srv: COM error 0x887a0005: The GPU device instance has been suspended. Use GetDeviceRemovedReason to determine the appropriate action.
Failed to initialize QRhiTexture wrapper for native texture object 2337814336080

and after that it rendered part of animation and went non responding

from manim-slides.

jeertmans avatar jeertmans commented on June 11, 2024

See #315 (and #402 (comment)).

from manim-slides.

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.