Open GrahamBenHarper opened 6 years ago
Yes, I too am facing the exact same issue. Trying to run the python extract_scene.py
returns the same error:
ValueError: too many values to unpack
.
Have you found any fix for this issue? Or is it that this is a deprecated feature now and newer versions of Manim don't work with highlighted_quote_terms? @3b1b Any thoughts?
Maybe it doesn't access the quote
I know I'm more than a year late, but adding .items() to the end of for term, color in self.highlighted_quote_terms:
which is at almost at the end of the get_quote function
in the OpeningQuote
class like so:
for term, color in self.highlighted_quote_terms.items():
should fix the problem, since self_highlighted_quote_terms.items()
actually returns the items in the dictionary, unlike self.highlighted_quote_terms
. Hope this helps!
I'm running through some of the older examples and playing with opening quotes. It seems like opening quote highlighting isn't working.
Consider the toy example (although any opening quote from the eoc/eola projects does this):
When generating a video from this with
python extract_scene.py my_scenes.py FunnyOpeningQuote -pl
the following error occursThis seems like a string parsing error on the part of library, so I looked a little further into it and if I were to provide the following example:
Then the error provides more useful information:
To me, this is telling me that instead of reading it as a string followed by a color value, this is reading the entire thing as a sequence of characters followed by a color at the end. I'm not strong on python language, but I'm assuming that this means the following line from
common_scenes.py
needs to be modified in some wayfor term, color in self.highlighted_quote_terms: quote.set_color_by_tex(term, color)
Let me know if this is a real issue or if I've gone completely bananas here.