[英]manim does not create an output file
如果我跑
python -m manimlib scene.py ket_bra
我的場景在交互式查看器中渲染得很好,但我沒有得到任何 output 文件,終端打印以下內容
ManimGL v1.6.1
[13:55:48] INFO Using the default configuration file, which you can modify in `c:\users\miika\manim\manimlib\default_config.yml` config.py:323
INFO If you want to create a local configuration file, you can create a file named `custom_config.yml`, or run `manimgl --config` config.py:324
WARNING You may be using Windows platform and have not specified the path of `temporary_storage`, which may cause OSError. So it is recommended to specify the `temporary_storage` in the config file config.py:290
(.yml)
(process:3548): GLib-GIO-WARNING **: 13:55:49.613: Unexpectedly, UWP app `Clipchamp.Clipchamp_2.3.0.0_neutral__yxz26nhyzhsrt' (AUMId `Clipchamp.Clipchamp_yxz26nhyzhsrt!App') supports 46 extensions but has no verbs
如果我將參數 -p 添加到命令中,則交互式 window 保持空白並且不渲染場景,在任何情況下我都不會得到一個 output 文件,這是我正在尋找的文件,終端 Z78E6221F6393D1356ZFD 與之前相同. 此外,如果值得注意的是背景是灰色的,即使在我能找到的所有樣本中它看起來都是黑色的。 我完全不知道發生了什么,因為我找不到其他有類似問題的人。 我正在使用 windows 10 和 v1.6.1 of 3b1b manim。 本案例中的場景如下(雖然無論場景是什么都會出現這個問題)
from manimlib import *
class ket_bra(Scene):
def construct(self):
ket_q0 = Tex(r"|q_0\rangle")
ket_0 = Tex(r"|0\rangle")
ket_1 = Tex(r"|1\rangle")
ket_0_v2 = Tex(r"|0\rangle")
ket_1_v2 = Tex(r"|1\rangle")
ket_0_v3 = Tex(r"""|0\rangle=\begin{pmatrix}
1\\
0
\end{pmatrix}""")
ket_1_v3 = Tex(r"""|1\rangle=\begin{pmatrix}
0\\
1
\end{pmatrix}""")
bra_kets = VGroup(ket_q0, ket_0, ket_1).arrange(RIGHT, buff=1)
v_bra_kets = VGroup(ket_0_v2, ket_1_v2).arrange(RIGHT, buff=1.5)
bra_kets_def = VGroup(ket_0_v3, ket_1_v3).arrange(RIGHT, buff=1.5)
self.play(Write(ket_q0), Write(ket_0), Write(ket_1))
self.wait(0.5)
self.play(FadeOut(ket_q0))
self.play(Transform(ket_0, ket_0_v2), Transform(ket_1, ket_1_v2))
self.wait(1)
self.play(Transform(ket_0, ket_0_v3), Transform(ket_1, ket_1_v3))
好吧,我解決了問題,沒有解決問題,我只是切換到 manim 的社區版,它完全按照預期工作,所以如果你遇到同樣的問題並且你使用的是 3b1b manim 版本,我建議只是切換到社區manim 的版本,它們在功能上大部分是等效的,但至少對我來說,社區版的錯誤似乎更少。 這是一個超級簡單的安裝指南https://docs.manim.community/en/stable/installation/windows.html
但是,我不會將此標記為最佳答案,因為我並沒有真正解決問題,而且我仍然收到以下警告並且不知道它是什么。 但是,它似乎不會影響功能,所以很好,哈哈。
來自: https://github.com/3b1b/manim/issues/1661#issuecomment-996575974
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.