Python 3.9 TypeError: argument of type 'int' is not iterable window.py
- 主要語言
- Python
- 星號
- 93.9k
- 分支
- 7.7k
- 平均合併
- 2 天 13 小時
- 30 天內合併 PR
- 4
描述
Issue validating the installation of manimgl after following the installation instructions for windows.
manim execution 'manimgl start.py SquareToCircle' results in a python TypeError
File "c:\manim\manimlib\window.py", line 47, in find_initial_position
if "," in custom_position:
TypeError: argument of type 'int' is not iterable
C:\manim>manimgl start.py SquareToCircle
Traceback (most recent call last):
File "C:\Python39\Scripts\manimgl-script.py", line 33, in
sys.exit(load_entry_point('manimgl', 'console_scripts', 'manimgl')())
File "c:\manim\manimlib\__main__.py", line 14, in main
scenes = manimlib.extract_scene.main(config)
File "c:\manim\manimlib\extract_scene.py", line 115, in main
scenes = get_scenes_to_render(all_scene_classes, scene_config, config)
File "c:\manim\manimlib\extract_scene.py", line 76, in get_scenes_to_render
scene = scene_class(**scene_config)
File "c:\manim\manimlib\scene\scene.py", line 46, in __init__
self.window = Window(scene=self, **self.window_config)
File "c:\manim\manimlib\window.py", line 35, in __init__
initial_position = self.find_initial_position(size)
File "c:\manim\manimlib\window.py", line 47, in find_initial_position
if "," in custom_position:
TypeError: argument of type 'int' is not iterable
Microsoft Windows 10 Pro
Version 10.0.19042 Build 19042
Python 3.9.5
start.py
from manimlib import *
class SquareToCircle(Scene):
def construct(self):
circle = Circle()
circle.set_fill(BLUE, opacity=0.5)
circle.set_stroke(BLUE_E, width=4)
self.add(circle)
C:\manim>ffmpeg -version
ffmpeg version 4.4-essentials_build-www.gyan.dev Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 10.2.0 (Rev6, Built by MSYS2 project)
configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband
libavutil 56. 70.100 / 56. 70.100
libavcodec 58.134.100 / 58.134.100
libavformat 58. 76.100 / 58. 76.100
libavdevice 58. 13.100 / 58. 13.100
libavfilter 7.110.100 / 7.110.100
libswscale 5. 9.100 / 5. 9.100
libswresample 3. 9.100 / 3. 9.100
libpostproc 55. 9.100 / 55. 9.100
C:\manim>latex
This is pdfTeX, Version 3.141592653-2.6-1.40.22 (MiKTeX 21.2)
**
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
錯誤出現在 manimlib/window.py 的第47行,此處 custom_position 應為 string 但實際是 int。查看 custom_position 是如何從 config 或 environment 設定的,可能在 scene.py 或 config parsing 中。檢查預設值並確保 custom_position 是像 '0,0' 的 string。用 debug prints 執行失敗的命令以查看傳入的是哪個值。
由索引模型根據 Issue 內容生成。
評估
- 領域
- desktop
- Issue 類型
- 缺陷
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 活躍度
- 停滯
- 描述清晰度
- 描述清楚
- 新手友好度
- 65/100