ValueError: Invalid markup string - when entering characters in Interactive mode
- Lingua principale
- Python
- Stelle
- 93.8k
- Fork
- 7.7k
- Metriche di merge delle PR
- Metriche PR in attesa
Descrizione
### Describe the error
Trying to play around with the wordle scene but ValueError comes popping up when I try and enter any character. Anyone else experiencing this or know what the problem might be?
### Code and Error
**Code**:
manimgl videos/_2022/wordle/scenes.py WordleScene
**Error**:
File "_ctypes/callbacks.c", line 239, in 'calling callback function'
File "/Users/thegif/Code/manim/env/lib/python3.8/site-packages/pyglet/libs/darwin/cocoapy/runtime.py", line 1141, in objc_method
result = f(py_self, *args)
File "/Users/thegif/Code/manim/env/lib/python3.8/site-packages/pyglet/window/cocoa/pyglet_view.py", line 199, in pygletKeyDown_
self._window.dispatch_event('on_key_press', symbol, modifiers)
File "/Users/thegif/Code/manim/env/lib/python3.8/site-packages/pyglet/window/__init__.py", line 1352, in dispatch_event
if EventDispatcher.dispatch_event(self, *args) != False:
File "/Users/thegif/Code/manim/env/lib/python3.8/site-packages/pyglet/event.py", line 408, in dispatch_event
if handler(*args):
File "/Users/thegif/Code/manim/manimlib/window.py", line 124, in on_key_press
self.scene.on_key_press(symbol, modifiers)
File "videos/_2022/wordle/scenes.py", line 301, in on_key_press
self.add_letter(char)
File "videos/_2022/wordle/scenes.py", line 90, in add_letter
letter_mob = self.get_letter_in_square(letter, self.get_curr_square())
File "videos/_2022/wordle/scenes.py", line 95, in get_letter_in_square
letter_mob = Text(letter.upper(), font="Consolas", font_size=font_size)
File "/Users/thegif/Code/manim/manimlib/mobject/svg/text_mobject.py", line 123, in __init__
super().__init__(text, **kwargs)
File "/Users/thegif/Code/manim/manimlib/mobject/svg/string_mobject.py", line 78, in __init__
super().__init__(**kwargs)
File "/Users/thegif/Code/manim/manimlib/mobject/svg/svg_mobject.py", line 62, in __init__
self.init_svg_mobject()
File "/Users/thegif/Code/manim/manimlib/mobject/svg/svg_mobject.py", line 73, in init_svg_mobject
self.generate_mobject()
File "/Users/thegif/Code/manim/manimlib/mobject/svg/string_mobject.py", line 90, in generate_mobject
super().generate_mobject()
File "/Users/thegif/Code/manim/manimlib/mobject/svg/svg_mobject.py", line 88, in generate_mobject
file_path = self.get_file_path()
File "/Users/thegif/Code/manim/manimlib/mobject/svg/string_mobject.py", line 83, in get_file_path
return self.get_file_path_by_content(original_content)
File "/Users/thegif/Code/manim/manimlib/mobject/svg/text_mobject.py", line 188, in get_file_path_by_content
self.markup_to_svg(content, svg_file)
File "/Users/thegif/Code/manim/manimlib/mobject/svg/text_mobject.py", line 192, in markup_to_svg
self.validate_markup_string(markup_str)
File "/Users/thegif/Code/manim/manimlib/mobject/svg/text_mobject.py", line 227, in validate_markup_string
raise ValueError(
ValueError: Invalid markup string "K"
Value of 'size' attribute on tag on line 1 could not be parsed; should be an integer, or a string such as 'small', not '61439.999999999985'
### Environment
**OS System**: macOS bigSur
**manim version**: 1.6.1
**python version**: 3.8
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.