Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Argument 'indent' has incorrect type (expected float, got int) #2111

Open
yuanxj opened this issue Mar 17, 2024 · 0 comments
Open

Comments

@yuanxj
Copy link

yuanxj commented Mar 17, 2024

Describe the error

meet error when I run command "manimgl example_scenes.py OpeningManimExample"

Code and Error

Code:
❯ manimgl example_scenes.py OpeningManimExample

ManimGL v1.6.1
[22:51:25] INFO Using the default configuration file, which you can config.py:265
modify in
/opt/homebrew/lib/python3.11/site-packages/manimli b/default_config.yml
INFO If you want to create a local configuration file, config.py:266
you can create a file named custom_config.yml, or
run manimgl --config
2024-03-17 22:51:25.425 Python[16365:187313] ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to /var/folders/55/451gkvyx6_x1y7pkwsql0m2w0000gn/T/org.python.python.savedState
Traceback (most recent call last):
File "/opt/homebrew/bin/manimgl", line 8, in
sys.exit(main())
^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/manimlib/main.py", line 25, in main
scene.run()
File "/opt/homebrew/lib/python3.11/site-packages/manimlib/scene/scene.py", line 91, in run
self.construct()
File "/Users/bytedance/tmp/manim/example_scenes.py", line 14, in construct
intro_words = Text("""
^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/manimlib/mobject/svg/text_mobject.py", line 149, in init
super().init(text, **kwargs)
File "/opt/homebrew/lib/python3.11/site-packages/manimlib/mobject/svg/labelled_string.py", line 64, in init
super().init()
File "/opt/homebrew/lib/python3.11/site-packages/manimlib/mobject/svg/svg_mobject.py", line 65, in init
self.init_svg_mobject()
File "/opt/homebrew/lib/python3.11/site-packages/manimlib/mobject/svg/svg_mobject.py", line 76, in init_svg_mobject
self.generate_mobject()
File "/opt/homebrew/lib/python3.11/site-packages/manimlib/mobject/svg/labelled_string.py", line 79, in generate_mobject
super().generate_mobject()
File "/opt/homebrew/lib/python3.11/site-packages/manimlib/mobject/svg/svg_mobject.py", line 91, in generate_mobject
file_path = self.get_file_path()
^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/manimlib/mobject/svg/labelled_string.py", line 68, in get_file_path
return self.get_file_path_(use_plain_file=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/manimlib/mobject/svg/labelled_string.py", line 72, in get_file_path_
return self.get_file_path_by_content(content)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/manimlib/mobject/svg/text_mobject.py", line 208, in get_file_path_by_content
self.markup_to_svg(content, svg_file)
File "/opt/homebrew/lib/python3.11/site-packages/manimlib/mobject/svg/text_mobject.py", line 220, in markup_to_svg
return MarkupUtils.text2svg(
^^^^^^^^^^^^^^^^^^^^^
TypeError: Argument 'indent' has incorrect type (expected float, got int)
Error:

Environment

OS System:
macos apple silicon
Darwin KHGXDDVHFV 23.4.0 Darwin Kernel Version 23.4.0: Wed Feb 21 21:44:54 PST 2024; root:xnu-10063.101.15~2/RELEASE_ARM64_T6030 arm64

manim version: master
ManimGL v1.6.1
python version:
Python 3.11.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant