Closed NikoMolecule closed 6 months ago
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!
@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
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…
@jeertmans already tried installing pySide6, this didnt solved the problem!
@jeertmans already tried installing pySide6, this didnt solved the problem!
You need to uninstall PyQt6 so PySide6 is actually used :)
@jeertmans
@jeertmans
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
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]'`.
@jeertmans yes
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.
@jeertmans when running
set QT_API=pyside6
python -m manim_slides rectangle
it gave me the same error with same warning
@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?
@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
Description
I wrote code and i tried to run and present manim into presentation but it popped up a really weird error.
i first called:
and after that
This was error it thew up:
and this is my code
Version
5.1.3
Platform
Windows
Screenshots
No response
Additional information
No response