-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
[BUG] ValueError: [Errno 22] Invalid argument #483
Comments
Hello @JoacoAnselmo, thanks for reporting your bug!
Can you try running manim-slides render -pqh scene.py EjemploSlides instead? As indicated by the last line in your error traceback, the JSON file does not exist, which indicates that the rendering failed. |
Hi, thanks for answering! After running that coide, I get this output: Render SCENE(s) from the input FILE, using the specified renderer. Use Options: It's as if it didn't really run at all, I think. A couple things that may be of interest: At first I installed manim_presentation, but after some quality issues I decided to try this instead, so maybe there's some clash there. One other thing, I've noticed that the import doesn't get properly colored in VSCode, maybe it's just visual but I thought it was worth mentioning. The "Slide" stays not colored. |
My bad, this is because manim-slides render -p --quality=h scene.py EjemploSlides For your example, I can't say much unless you include a full code that I can run locally :-) |
Same output :( |
Which error message, the first one of the second one? |
Sorry, the first one. |
I think the error comes from Manim, not Manim Slides, but maybe I am wrong. Can you try rendering the animations without Manim Slides (so with Scene as a base class)? If possible, use the same Python environnement, and put the output here :) |
Hi! Got a similar issue, but with ThreeDSlide instead. Changing to ThreeDScene allowed the scene to render without errors, but I (as expected) cannot use the mp4 output alone to do a presentation (no json is generated). When I use ThreeDSlide and not ThreeDScene, I get the same error that Joaco described above, except it redirects me to a temporary video file that doesn't exist:
Checking the directory it tries getting Invalid argument from, I get a bunch of short <1sec clips on which nothing is happening, which is much less than the total animation. What is interesting, is that the entire animation gets generated (i.e. when I run with preview, it works and displays everything perfectly). But still that hashed video file is not present, so json isn't getting created. For me, this happens when I have a "complex" 3D scene - i.e. with camera rotation in 3D mainly. When I use ThreeDSlide, but work on 2D animation, this issue doesn't appear and the code performs 100% as expected. Any ideas what might be causing this? I'm on |
Hi @Vasissualiyp, could you provide a |
Hi @jeertmans and @JoacoAnselmo! I have had the same problem, and I think I know the cause of the problem. It is something that happens frequently to Spanish speakers and gives us a lot of problems: tildes and blank spaces in absolute paths. In @JoacoAnselmo case, he has a tilde in the word "Joaquín" in the path. If you open the temporary file, you will see a question mark in the path. In my case, something like: In my case, I solved the problem by modifying the
by
This has fixed the error. I hope you find this helpful. |
Hi @candreuv, that's an interesting bug! If that's okay for you, I would happily receive a pull request fixing this bug :-) We could also include a test, I think, inside the |
Terms
Describe the issue
Hi! I installed manim slides, everything went well, but whenever I try to render my scene it gives an error message (although it does render, so manim is working).
Then, if I try to run manim-slides, it tells me the JSON doesn't exist.
I haven't found anything on the other issues about this. Any help would be appreciated!
(I inserted the corresponding code and error messages below, I'm hoping it shows up on the issue report, it is my first time submitting one).
Command
manim -pqh scene.py EjemploSlides
Issue Type
Other
Python version
Python 3.11.3
Python environment
What is your platform?
Windows
Other platform
No response
Manim Slides Python code
Relevant log output
Screenshots
No response
Additional information
This is the first time I'm using it, so there may be an installation bug or something like that
Recommended fix or suggestions
No response
The text was updated successfully, but these errors were encountered: